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
cduce
cduce
Commits
ef25acc9
Commit
ef25acc9
authored
Jul 10, 2007
by
Pietro Abate
Browse files
[r2003-11-27 10:47:33 by afrisch] Eviter d'avoir false et true comme keyword
Original author: afrisch Date: 2003-11-27 10:47:33+00:00
parent
664dc87a
Changes
1
Hide whitespace changes
Inline
Side-by-side
query/query_parse.ml
View file @
ef25acc9
...
...
@@ -45,10 +45,14 @@ EXTEND
]
];
cond
:
[
[
"`"
;
"true"
->
Query
.
True
|
"`"
;
"false"
->
Query
.
False
|
a
=
expr
->
Query
.
Varb
(
a
)
[
[
a
=
expr
->
(
match
a
with
|
LocatedExpr
(
_
,
Atom
at
)
->
(
match
U
.
get_str
at
with
|
"true"
->
Query
.
True
|
"false"
->
Query
.
False
|
_
->
Query
.
Varb
a
)
|
_
->
Query
.
Varb
a
)
|
"not"
;
a
=
cond
->
Query
.
Not
(
a
)
|
a
=
cond
;
"or"
;
b
=
cond
->
Query
.
Ou
(
a
,
b
)
|
a
=
cond
;
"and"
;
b
=
cond
->
Query
.
Et
(
a
,
b
)
...
...
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