Commit 79781bc7 by POTTIER Francois

Updated bench/bad to succeed again.

parent 98561952
File "declaration-error-01.mly", line 1, characters 0-20:
Error: syntax error in a %token declaration.
Here are sample valid declarations:
%token DOT SEMICOLON
%token <string> LID UID
%token FOO BAR
%type <int> INT
%token BAZ::::: QUUX /* the error is the colon */
%token HOP
%%
main: HOP BAZ QUUX { () }
File "declaration-error.mly", line 1, characters 0-20:
Syntax error in a %token declaration.
Error: Syntax error in a %token declaration.
Here are sample valid declarations:
%token DOT SEMICOLON
%token <string> LID UID
File "declaration-error.mly", line 3, characters 10-11:
Syntax error inside a declaration.
Did you perhaps forget the %% that separates declarations and rules?
File "double-equals.mly", line 6, characters 7-10:
Error: syntax error inside a production.
%token FOO BAR
%%
prod:
x == FOO /* intentional syntax error */
{ () }
File "invalid-declarations-01.mly", line 3, characters 0-14:
Error: syntax error in a %token declaration.
Here are sample valid declarations:
%token DOT SEMICOLON
%token <string> LID UID
%token <int> FOO
%token BAZ QUUX HOP
%token BAR int BAT /* error */
%%
main:
FOO BAR
%token <int> FOO
%token BAZ QUUX HOP
%token BAR BAT
%token FOO QWD ASFLJ QWKJH QWDK
%start RAT /* error */
%%
main:
FOO BAR
%token <int> FOO
%token BAZ QUUX HOP
%token BAR BAT
%token FOO QWD ASFLJ QWKJH QWDK
%start<int> RAT
%type (int) date time /* error */
%%
main:
FOO BAR
%token <int> FOO
%token BAZ QUUX HOP
%token BAR BAT
%token FOO QWD ASFLJ QWKJH QWDK
%start<int> RAT
%type<int> date time
%token BAZAR
%left FOO BAR
%right /* error */
%nonassoc BAR QWD QWD QWD ASD QWD D QWD WQD QWD
%token BAR
%%
main:
{}
%token <int> FOO
%token BAZ QUUX HOP
%token BAR int BAT
%token BAR BAT
%token FOO QWD ASFLJ QWKJH QWDK
%start RAT
%type (int) date time
%start<int> RAT
%type<int> date time
%token BAZAR
%left FOO BAR
%right
%nonassoc BAR QWD QWD QWD ASD QWD D QWD WQD QWD
%token BAR
%%
main:
FOO BAR
FOO BAR /* error */
File "lots-of-errors-01.mly", line 1, characters 0-1:
Error: syntax error inside a declaration.
( idiot )
%token FOO BAR <int> /* the error is the type */
%type <int> INT
%token ( BAZ: QUUX , %start /* the error is the opening parenthesis */
%token HOP
%%
......
%token FOO BAR <int> /* the error is the type */
%%
main: HOP BAZ QUUX { () }
%type <int> INT
%token ( BAZ QUUX /* the error is the opening parenthesis */
%token HOP
%%
main: HOP BAZ QUUX { () }
File "lowercase-token.mly", line 1, characters 0-10:
Syntax error in a %token declaration.
Error: syntax error in a %token declaration.
Here are sample valid declarations:
%token DOT SEMICOLON
%token <string> LID UID
File "lowercase-token.mly", line 3, characters 0-10:
Syntax error in a %start declaration.
Here are sample valid declarations:
%start expression phrase
%start <int> date time
File "lowercase-token.mly", line 8, characters 5-6:
Syntax error inside a production.
%token bla
%token FOO
%start Bla
%%
prod:
x == X /* intentional syntax error */
x = X
{ () }
File "missing-percentpercent.mly", line 4, characters 4-5:
Syntax error inside a declaration.
Error: syntax error inside a declaration.
Did you perhaps forget the %% that separates declarations and rules?
File "nonsense.mly", line 1, characters 47-50:
Syntax error inside the definition of a nonterminal symbol.
Error: syntax error inside the definition of a nonterminal symbol.
File "resync-on-action-prec.mly", line 4, characters 9-10:
Syntax error inside a production.
File "resync-on-action-prec.mly", line 5, characters 9-10:
Syntax error inside a production.
File "resync-on-action-prec.mly", line 7, characters 9-10:
Error: syntax error inside a production.
/* This example was supposed to illustrate resynchronization in Menhir's
own fancy-parser, but we no longer do it. */
%token A B C
%%
bof:
......
File "rule-error.mly", line 7, characters 8-9:
Syntax error inside a production.
File "rule-error.mly", line 7, characters 12-13:
Error: syntax error inside a production.
File "uppercase-start.mly", line 2, characters 0-10:
Error: syntax error in a %start declaration.
Here are sample valid declarations:
%start expression phrase
%start <int> date time
%token FOO
%start Bla
%%
prod:
x = X
{ () }
File "uppercase.mly", line 1, characters 0-18:
Syntax error in a %start declaration.
Error: syntax error in a %start declaration.
Here are sample valid declarations:
%start expression phrase
%start <int> date time
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment