Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
menhir
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
12
Issues
12
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
POTTIER Francois
menhir
Commits
68b12c4c
Commit
68b12c4c
authored
Jun 30, 2015
by
Yann Régis-Gianas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Lexer: Forbid producer identifier of the form _[0-9]+.
parent
c781e458
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
src/lexer.mll
src/lexer.mll
+5
-0
No files found.
src/lexer.mll
View file @
68b12c4c
...
...
@@ -312,6 +312,11 @@ 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