Home | History | Annotate | Download | only in tests

Lines Matching full:error

134       fprintf (stderr, "calc: error: %d != %d\n", $1, $3);
144 | '(' error ')' { $$ = 1111; }
146 | '-' error { $$ = 0; YYERROR; }
153 [/* A C++ error reporting function. */
155 AT_NAME_PREFIX::parser::error (const location& l, const std::string& m)
378 # [VERBOSE-AND-LOCATED-ERROR-MESSAGE])
380 # Run `calc' on INPUT, and expect a `syntax error' message.
388 # If BISON-OPTIONS contains `%location', then make sure the ERROR-LOCATION
391 # If BISON-OPTIONS contains `%error-verbose', then make sure the
392 # IF-YYERROR-VERBOSE message is properly output after `syntax error, '
405 # Normalize the observed and expected error messages, depending upon the
416 /^Error:/d
422 # 2. Create the reference error message.
430 # 4. If error-verbose is not used, strip the`, unexpected....' part.
431 m4_bmatch([$1], [%error-verbose], [],
432 [[sed 's/syntax error, .*$/syntax error/' expout >at-expout
479 [1.2: syntax error, unexpected number])
481 [1.2: syntax error, unexpected '/', expecting number or '-' or '(' or '!'])
482 _AT_CHECK_CALC_ERROR([$1], [1], [error], [5],
483 [1.0: syntax error, unexpected $undefined])
485 [1.6: syntax error, unexpected '='])
490 [2.0: syntax error, unexpected '+'])
491 # Exercise error messages with EOF: work on an empty file.
493 [1.0: syntax error, unexpected end of input])
495 # Exercise the error token: without it, we die at the first error,
504 # - test the action associated to `error'
506 # - check the look-ahead that triggers an error is not discarded
507 # when we enter error recovery. Below, the look-ahead causing the
508 # first error is ")", which is needed to recover from the error and
509 # produce the "0" that triggers the "0 != 1" error.
514 [1.1: syntax error, unexpected ')', expecting number or '-' or '(' or '!'
515 1.17: syntax error, unexpected ')', expecting number or '-' or '(' or '!'
516 1.22: syntax error, unexpected '*', expecting number or '-' or '(' or '!'
517 1.40: syntax error, unexpected '*', expecting number or '-' or '(' or '!'
518 calc: error: 4444 != 1])
521 # POSIX says the look-ahead causing the error should not be discarded.
523 [1.9: syntax error, unexpected number
524 calc: error: 2222 != 1])
526 [1.3: syntax error, unexpected '*', expecting number or '-' or '(' or '!'
527 1.11: syntax error, unexpected number
528 calc: error: 2222 != 1])
557 AT_CHECK_CALC_LALR([%error-verbose])
560 AT_CHECK_CALC_LALR([%error-verbose %locations])
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}])
593 AT_CHECK_CALC_GLR([%error-verbose])
596 AT_CHECK_CALC_GLR([%error-verbose %locations])
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 AT_CHECK_CALC_GLR([%pure-parser %error
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}])
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}])
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}])