Home | History | Annotate | Download | only in tests

Lines Matching full:calc

33 # Produce `calc.y'.  Don't call this macro directly, because it contains
40 AT_DATA_GRAMMAR([calc.y],
41 [[/* Infix notation calculator--calc */
134 fprintf (stderr, "calc: error: %d != %d\n", $1, $3);
350 # Produce `calc.y'.
359 # Run `calc' on INPUT and expect no STDOUT nor STDERR.
372 AT_PARSER_CHECK([./calc input], 0, [], [stderr])
380 # Run `calc' on INPUT, and expect a `syntax error' message.
399 [AT_PARSER_CHECK([./calc $3], $2, [], [stderr])],
403 AT_PARSER_CHECK([./calc input], $2, [], [stderr])])
441 # Start a testing chunk which compiles `calc' grammar with
455 [AT_CHECK([bison -o calc.cc calc.y])
456 AT_COMPILE_CXX([calc])],
457 [AT_CHECK([bison -o calc.c calc.y])
458 AT_COMPILE([calc])])
518 calc: error: 4444 != 1])
524 calc: error: 2222 != 1])
528 calc: error: 2222 != 1])
545 # Start a testing chunk which compiles `calc' grammar with
554 AT_CHECK_CALC_LALR([%name-prefix="calc"])
562 AT_CHECK_CALC_LALR([%error-verbose %locations %defines %name-prefix="calc" %verbose %yacc])
565 AT_CHECK_CALC_LALR([%error-verbose %debug %locations %defines %name-prefix="calc" %verbose %yacc])
567 AT_CHECK_CALC_LALR([%pure-parser %error-verbose %debug %locations %defines %name-prefix="calc" %verbose %yacc])
569 AT_CHECK_CALC_LALR([%pure-parser %error-verbose %debug %locations %defines %name-prefix="calc" %verbose %yacc %parse-param {semantic_value *result} %parse-param {int *count}])
580 # Start a testing chunk which compiles `calc' grammar with
590 AT_CHECK_CALC_GLR([%name-prefix="calc"])
598 AT_CHECK_CALC_GLR([%error-verbose %locations %defines %name-prefix="calc" %verbose %yacc])
601 AT_CHECK_CALC_GLR([%error-verbose %debug %locations %defines %name-prefix="calc" %verbose %yacc])
603 calc" %verbose %yacc])
605 AT_CHECK_CALC_GLR([%pure-parser %error-verbose %debug %locations %defines %name-prefix="calc" %verbose %yacc %parse-param {semantic_value *result} %parse-param {int *count}])
616 # Start a testing chunk which compiles `calc' grammar with
622 AT_CHECK_CALC_LALR1_CC([%error-verbose %name-prefix="calc" %verbose %yacc])
624 AT_CHECK_CALC_LALR1_CC([%error-verbose %debug %name-prefix="calc" %verbose %yacc])
626 AT_CHECK_CALC_LALR1_CC([%pure-parser %error-verbose %debug %name-prefix="calc" %verbose %yacc])
628 AT_CHECK_CALC_LALR1_CC([%pure-parser %error-verbose %debug %name-prefix="calc" %verbose %yacc %parse-param {semantic_value *result} %parse-param {int *count}])
640 # Start a testing chunk which compiles `calc' grammar with
646 #AT_CHECK_CALC_GLR_CC([%error-verbose %name-prefix="calc" %verbose %yacc])
649 #AT_CHECK_CALC_GLR_CC([%error-verbose %debug %name-prefix="calc" %verbose %yacc])
651 AT_CHECK_CALC_GLR_CC([%pure-parser %error-verbose %debug %name-prefix="calc" %verbose %yacc])
653 AT_CHECK_CALC_GLR_CC([%pure-parser %error-verbose %debug %name-prefix="calc" %verbose %yacc %parse-param {semantic_value *result} %parse-param {int *count}])