Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ACG
dev
ACGtk
Commits
32d0fa35
Commit
32d0fa35
authored
Jan 31, 2019
by
POGODALLA Sylvain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the datalog prover lexer correspond to the acg one
parent
13191082
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
src/datalog.prover/db_lexer.mll
src/datalog.prover/db_lexer.mll
+5
-2
No files found.
src/datalog.prover/db_lexer.mll
View file @
32d0fa35
...
...
@@ -3,14 +3,16 @@
}
let
newline
=
(
'\010'
|
'\013'
|
"
\013\010
"
)
let
letter
=
[
'
a'
-
'
z'
'
A'
-
'
Z'
]
let
letter
=
[
'
a'
-
'
z'
'
A'
-
'
Z'
'
µ
'
'
À
'
-
'
Ö
'
'
Ø
'
-
'
Ý
'
'
ß
'
-
'
ö
'
'
ø
'
-
'
ÿ
'
]
let
digit
=
[
'
0
'
-
'
9
'
]
let
string
=
(
letter
|
digit
|
'
_'
)
*
'\''
*
let
symbol
=
[
'
|
'
'
!
'
'
"' '#' '$' '%' '&' '
\'
' '*' '+' '-' '/' '<' '>' '?' '@' '
\\
' '^' '`' '~' ]
rule lexer =
parse
| [' ' '
\t
'] {lexer lexbuf}
|
newline
{
lexer
lexbuf
}
| newline {
let () = Lexing.new_line lexbuf in
lexer lexbuf}
| "
(*" {comment 1 lexbuf}
| "*)
" {failwith "
Unstarted
comments
"}
| eof {EOI}
...
...
@@ -22,6 +24,7 @@ let string = (letter|digit|'_')*'\''*
| "
/
" {SLASH}
| "
?
" {QUESTION_MARK}
| letter string {IDENT (Lexing.lexeme lexbuf)}
| symbol {IDENT (Lexing.lexeme lexbuf)}
| '-'?digit+ {let s = Lexing.lexeme lexbuf in
INT (int_of_string s)}
and comment level =
...
...
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