Commit c4ba979b authored by POTTIER Francois's avatar POTTIER Francois

Update the expected test results for the new syntax error messages.

parent 4a3face8
File "declaration-error-a.mly", line 1, characters 15-20:
Error: syntax error.
Error: syntax error after 'BAR' and before '<int>'.
Ill-formed %token declaration.
Examples of well-formed declarations:
%token FOO
......
File "double-equals.mly", line 6, characters 5-6:
Error: syntax error.
Error: syntax error after '=' and before '='.
Ill-formed production.
A production is a sequence of producers, followed with a semantic action.
Examples of well-formed producers:
......
File "invalid-declarations-a.mly", line 3, characters 11-14:
Error: syntax error.
Error: syntax error after 'BAR' and before 'int'.
Ill-formed %token declaration.
Examples of well-formed declarations:
%token FOO
......
File "invalid-declarations-b.mly", line 5, characters 7-10:
Error: syntax error.
Error: syntax error after '%start' and before 'RAT'.
Ill-formed %start declaration.
A start symbol must begin with a lowercase letter.
Examples of well-formed declarations:
......
File "invalid-declarations-c.mly", line 6, characters 6-7:
Error: syntax error.
Error: syntax error after '%type' and before '('.
Ill-formed declaration.
Examples of well-formed declarations:
%type <Syntax.expression> expression
......
File "invalid-declarations-d.mly", line 10, characters 0-9:
Error: syntax error.
Error: syntax error after '%right' and before '%nonassoc'.
Ill-formed precedence declaration.
Examples of well-formed declarations:
%left PLUS
......
File "invalid-declarations-e.mly", line 17, characters 0-0:
Error: syntax error.
Error: syntax error after 'BAR' and before ''.
Ill-formed production.
A production is a sequence of producers, followed with a semantic action.
Examples of well-formed producers:
......
File "lots-of-errors-a.mly", line 1, characters 0-1:
Error: syntax error.
Error: syntax error before '('.
Either a declaration or %% is expected at this point.
File "lots-of-errors-b.mly", line 1, characters 15-20:
Error: syntax error.
Error: syntax error after 'BAR' and before '<int>'.
Ill-formed %token declaration.
Examples of well-formed declarations:
%token FOO
......
File "lots-of-errors-c.mly", line 2, characters 7-8:
Error: syntax error.
Error: syntax error after '%token' and before '('.
Ill-formed %token declaration.
Examples of well-formed declarations:
%token FOO
......
File "lowercase-token.mly", line 1, characters 7-10:
Error: syntax error.
Error: syntax error after '%token' and before 'bla'.
Ill-formed %token declaration.
Examples of well-formed declarations:
%token FOO
......
File "nonsense.mly", line 1, characters 47-50:
Error: syntax error.
File "nonsense.mly", line 1, characters 43-50:
Error: syntax error after 'A' and before 'Grammar'.
Ill-formed rule.
Either a parenthesized, comma-delimited list of formal parameters
or an attribute
......
%token Je Ne Crois Pas Que Ceci Ressemble %% à une grammaire ah non oh non mais ça: si { () } %%
%token I DO NOT Think This Looks Like %% A Grammar, Oh Really No But This: does { () } %%
File "parameterized-start-weird.mly", line 4, characters 17-18:
Error: syntax error.
Error: syntax error after 'main' and before '('.
Ill-formed %start declaration.
A start symbol must begin with a lowercase letter.
Examples of well-formed declarations:
......
File "resync-on-action-prec.mly", line 7, characters 9-10:
Error: syntax error.
Error: syntax error after 'erreur1' and before ':'.
Ill-formed production.
A production is a sequence of producers, followed with a semantic action.
Examples of well-formed producers:
......
File "rule-error.mly", line 11, characters 0-3:
Error: syntax error.
Error: syntax error after '{ () }' and before 'bar'.
Either another production | ...
or a comma or a closing parenthesis
is expected at this point.
File "uppercase-start.mly", line 2, characters 7-10:
Error: syntax error.
Error: syntax error after '%start' and before 'Bla'.
Ill-formed %start declaration.
A start symbol must begin with a lowercase letter.
Examples of well-formed declarations:
......
File "uppercase.mly", line 1, characters 14-18:
Error: syntax error.
Error: syntax error after '<unit>' and before 'Main'.
Ill-formed %start declaration.
A start symbol must begin with a lowercase letter.
Examples of well-formed declarations:
......
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