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 |
|
|
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 |
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]) |
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 |
# ----------------------- # |
# ----------------------- # |
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]) |