/[bison]/bison/tests/calc.at
ViewVC logotype

Diff of /bison/tests/calc.at

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.37 by eggert, Fri Oct 25 05:13:44 2002 UTC revision 1.38 by akim, Sun Nov 3 12:16:25 2002 UTC
# Line 323  main (int argc, const char **argv) Line 323  main (int argc, const char **argv)
323  # -------------------------------  # -------------------------------
324  # Produce `calc.y'.  # Produce `calc.y'.
325  m4_define([AT_DATA_CALC_Y],  m4_define([AT_DATA_CALC_Y],
326  [_AT_DATA_CALC_Y($[1], $[2], $[3],  [_AT_DATA_CALC_Y($[1], $[2], $[3], [$1])
                  [m4_bpatsubst([$1], [--[^ ]*])])  
327  ])  ])
328    
329    
# Line 360  m4_bmatch([$1], Line 359  m4_bmatch([$1],
359  # If INPUT starts with a slash, it is used as absolute input file name,  # If INPUT starts with a slash, it is used as absolute input file name,
360  # otherwise as contents.  # otherwise as contents.
361  #  #
362  # If BISON-OPTIONS contains `--location', then make sure the ERROR-LOCATION  # If BISON-OPTIONS contains `%location', then make sure the ERROR-LOCATION
363  # is correctly output on stderr.  # is correctly output on stderr.
364  #  #
365  # If BISON-OPTIONS contains `%error-verbose', then make sure the  # If BISON-OPTIONS contains `%error-verbose', then make sure the
# Line 426  AT_SETUP([Calculator $1]) Line 425  AT_SETUP([Calculator $1])
425  AT_DATA_CALC_Y([$1])  AT_DATA_CALC_Y([$1])
426    
427  # Specify the output files to avoid problems on different file systems.  # Specify the output files to avoid problems on different file systems.
428  AT_CHECK([bison -o calc.c m4_bpatsubst([$1], [%[^ ]*]) calc.y],  AT_CHECK([bison -o calc.c calc.y],
429           [0], [], [])           [0], [], [])
430    
431  AT_COMPILE([calc])  AT_COMPILE([calc])
# Line 495  m4_define([AT_CHECK_CALC_LALR], Line 494  m4_define([AT_CHECK_CALC_LALR],
494    
495  AT_CHECK_CALC_LALR()  AT_CHECK_CALC_LALR()
496    
497  AT_CHECK_CALC_LALR([--defines])  AT_CHECK_CALC_LALR([%defines])
498  AT_CHECK_CALC_LALR([%locations])  AT_CHECK_CALC_LALR([%locations])
499  AT_CHECK_CALC_LALR([--name-prefix=calc])  AT_CHECK_CALC_LALR([%name-prefix="calc"])
500  AT_CHECK_CALC_LALR([--verbose])  AT_CHECK_CALC_LALR([%verbose])
501  AT_CHECK_CALC_LALR([--yacc])  AT_CHECK_CALC_LALR([%yacc])
502  AT_CHECK_CALC_LALR([%error-verbose])  AT_CHECK_CALC_LALR([%error-verbose])
503    
504  AT_CHECK_CALC_LALR([%error-verbose %locations])  AT_CHECK_CALC_LALR([%error-verbose %locations])
505    
506  AT_CHECK_CALC_LALR([%error-verbose %locations --defines --name-prefix=calc --verbose --yacc])  AT_CHECK_CALC_LALR([%error-verbose %locations %defines %name-prefix="calc" %verbose %yacc])
507    
508  AT_CHECK_CALC_LALR([%debug])  AT_CHECK_CALC_LALR([%debug])
509  AT_CHECK_CALC_LALR([%error-verbose %debug %locations --defines --name-prefix=calc --verbose --yacc])  AT_CHECK_CALC_LALR([%error-verbose %debug %locations %defines %name-prefix="calc" %verbose %yacc])
510    
511  # FIXME: Not ready yet.  # AT_CHECK_CALC_LALR([%pure-parser %error-verbose %debug %locations %defines %name-prefix="calc" %verbose %yacc])
 # AT_CHECK_CALC_LALR([%pure-parser %error-verbose %debug %locations --defines --name-prefix=calc --verbose --yacc])  
512    
513    
514  # ----------------------- #  # ----------------------- #
# Line 529  m4_define([AT_CHECK_CALC_GLR], Line 527  m4_define([AT_CHECK_CALC_GLR],
527    
528  AT_CHECK_CALC_GLR()  AT_CHECK_CALC_GLR()
529    
530  AT_CHECK_CALC_GLR([--defines])  AT_CHECK_CALC_GLR([%defines])
531  AT_CHECK_CALC_GLR([%locations])  AT_CHECK_CALC_GLR([%locations])
532  AT_CHECK_CALC_GLR([--name-prefix=calc])  AT_CHECK_CALC_GLR([%name-prefix="calc"])
533  AT_CHECK_CALC_GLR([--verbose])  AT_CHECK_CALC_GLR([%verbose])
534  AT_CHECK_CALC_GLR([--yacc])  AT_CHECK_CALC_GLR([%yacc])
535  AT_CHECK_CALC_GLR([%error-verbose])  AT_CHECK_CALC_GLR([%error-verbose])
536    
537  AT_CHECK_CALC_GLR([%error-verbose %locations])  AT_CHECK_CALC_GLR([%error-verbose %locations])
538    
539  AT_CHECK_CALC_GLR([%error-verbose %locations --defines --name-prefix=calc --verbose --yacc])  AT_CHECK_CALC_GLR([%error-verbose %locations %defines %name-prefix="calc" %verbose %yacc])
540    
541  AT_CHECK_CALC_GLR([%debug])  AT_CHECK_CALC_GLR([%debug])
542  AT_CHECK_CALC_GLR([%error-verbose %debug %locations --defines --name-prefix=calc --verbose --yacc])  AT_CHECK_CALC_GLR([%error-verbose %debug %locations %defines %name-prefix="calc" %verbose %yacc])
543    
544  # AT_CHECK_CALC_GLR([%pure-parser %error-verbose %debug %locations --defines --name-prefix=calc --verbose --yacc])  # AT_CHECK_CALC_GLR([%pure-parser %error-verbose %debug %locations %defines %name-prefix="calc" %verbose %yacc])

Legend:
Removed from v.1.37  
changed lines
  Added in v.1.38

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26