Commit 03210211 authored by POTTIER Francois's avatar POTTIER Francois

Removed also the production declaration -> rule_specific_token.

parent 5474699e
...@@ -96,17 +96,6 @@ declaration: ...@@ -96,17 +96,6 @@ declaration:
| PARAMETER t = OCAMLTYPE | PARAMETER t = OCAMLTYPE
{ [ with_poss $startpos $endpos (DParameter t) ] } { [ with_poss $startpos $endpos (DParameter t) ] }
/* This production recognizes tokens that are valid in the rules section,
but not in the declarations section. This is a hint that a %% was
forgotten. */
| rule_specific_token
{
Error.error (Positions.two $startpos $endpos)
"syntax error inside a declaration.\n\
Did you perhaps forget the %% that separates declarations and rules?"
}
priority_keyword: priority_keyword:
LEFT LEFT
{ LeftAssoc } { LeftAssoc }
...@@ -115,13 +104,6 @@ priority_keyword: ...@@ -115,13 +104,6 @@ priority_keyword:
| NONASSOC | NONASSOC
{ NonAssoc } { NonAssoc }
rule_specific_token:
| PUBLIC
| INLINE
| COLON
| EOF
{ () }
/* ------------------------------------------------------------------------- */ /* ------------------------------------------------------------------------- */
/* Our lists of symbols are separated with optional commas. Order is /* Our lists of symbols are separated with optional commas. Order is
irrelevant. */ irrelevant. */
......
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