Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Raphaël Cauderlier
Sigmaid
Commits
587e472f
Commit
587e472f
authored
Jun 30, 2014
by
Raphaël Cauderlier
Browse files
Comment on desambiguation at lexing
parent
b4b6631d
Changes
1
Hide whitespace changes
Inline
Side-by-side
lexer.mll
View file @
587e472f
...
...
@@ -8,9 +8,10 @@ let id = [ 'a'-'z' '_' '0'-'9' ] ['a'-'z' 'A'-'Z' '_' '0'-'9']*
rule
token
=
parse
|
[
'
'
'\t'
]
{
token
lexbuf
}
|
'\n'
{
token
lexbuf
}
|
'.'
(
id
as
s
)
"<="
{
UPDATE
(
s
)
}
|
'.'
(
id
as
s
)
":="
{
FUPD
(
s
)
}
|
'.'
(
id
as
s
)
{
SELECT
(
s
)
}
(* The several meanings of "." are disambiguated at lexing *)
|
'.'
(
id
as
s
)
'
'
*
"<="
{
UPDATE
(
s
)
}
|
'.'
(
id
as
s
)
'
'
*
":="
{
FUPD
(
s
)
}
|
'.'
(
id
as
s
)
{
SELECT
(
s
)
}
|
'
[
'
{
LBRACK
}
|
'
]
'
{
RBRACK
}
|
'
:
'
{
COLUMN
}
...
...
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