Commit b8c9ef2d authored by POTTIER Francois's avatar POTTIER Francois

Updated expected output of bad tests

(which should have been done when parserMessages.messages was changed).
parent 00ba0830
......@@ -5,3 +5,4 @@ Examples of well-formed declarations:
%token FOO
%token DOT SEMICOLON
%token <string> LID UID
%token FOO [@cost 0]
......@@ -11,3 +11,4 @@ Examples of well-formed producers:
es = list(terminated(expr, SEMI))
es = list(e = expr SEMI { e })
xs = list(x = var { Some x } | WILDCARD { None })
expr [@cost 0]
......@@ -5,3 +5,4 @@ Examples of well-formed declarations:
%token FOO
%token DOT SEMICOLON
%token <string> LID UID
%token FOO [@cost 0]
......@@ -11,3 +11,4 @@ Examples of well-formed producers:
es = list(terminated(expr, SEMI))
es = list(e = expr SEMI { e })
xs = list(x = var { Some x } | WILDCARD { None })
expr [@cost 0]
......@@ -5,3 +5,4 @@ Examples of well-formed declarations:
%token FOO
%token DOT SEMICOLON
%token <string> LID UID
%token FOO [@cost 0]
......@@ -5,3 +5,4 @@ Examples of well-formed declarations:
%token FOO
%token DOT SEMICOLON
%token <string> LID UID
%token FOO [@cost 0]
......@@ -5,3 +5,4 @@ Examples of well-formed declarations:
%token FOO
%token DOT SEMICOLON
%token <string> LID UID
%token FOO [@cost 0]
......@@ -2,8 +2,10 @@ File "nonsense.mly", line 1, characters 47-50:
Error: syntax error.
Ill-formed rule.
Either a parenthesized, comma-delimited list of formal parameters
or an attribute
or a colon is expected at this point.
Examples of well-formed rules:
main: e = expr EOL { e }
expr: i = INT { i } | e1 = expr PLUS e2 = expr { e1 + e2 }
option(X): { None } | x = X { Some x }
main [@cost 0]: e = expr EOL { e }
......@@ -11,3 +11,4 @@ Examples of well-formed producers:
es = list(terminated(expr, SEMI))
es = list(e = expr SEMI { e })
xs = list(x = var { Some x } | WILDCARD { None })
expr [@cost 0]
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