Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
POTTIER Francois
menhir
Commits
03210211
Commit
03210211
authored
Sep 23, 2015
by
POTTIER Francois
Browse files
Removed also the production declaration -> rule_specific_token.
parent
5474699e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/fancy-parser.mly
View file @
03210211
...
...
@@ -96,17 +96,6 @@ declaration:
|
PARAMETER
t
=
OCAMLTYPE
{
[
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
:
LEFT
{
LeftAssoc
}
...
...
@@ -115,13 +104,6 @@ priority_keyword:
|
NONASSOC
{
NonAssoc
}
rule_specific_token
:
|
PUBLIC
|
INLINE
|
COLON
|
EOF
{
()
}
/*
-------------------------------------------------------------------------
*/
/*
Our
lists
of
symbols
are
separated
with
optional
commas
.
Order
is
irrelevant
.
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment