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
ad920472
Commit
ad920472
authored
Jul 06, 2015
by
Yann Régis-Gianas
Browse files
Revert "Lexer: Forbid producer identifier of the form _[0-9]+."
This reverts commit fc203a594b2d68f40b18966550e9c23460fc20e9.
parent
4093bc82
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lexer.mll
View file @
ad920472
...
...
@@ -312,11 +312,6 @@ rule main = parse
{
STAR
}
|
"+"
{
PLUS
}
|
"_"
[
'
0
'
-
'
9
'
]
+
{
Error
.
errorp
(
Positions
.
with_poss
(
lexeme_start_p
lexbuf
)
(
lexeme_end_p
lexbuf
)
()
)
"identifiers of the form _0, _1, _2, ..., are reserved."
}
|
(
lowercase
identchar
*
)
as
id
{
if
Hashtbl
.
mem
reserved
id
then
Error
.
errorp
...
...
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