aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorherbelin2002-11-29 10:33:03 +0000
committerherbelin2002-11-29 10:33:03 +0000
commitebbe84707d6a082b3eef6c9e40a9c1b7b24bc03b (patch)
tree2ffa0713eebc36654d2d3d7f00084e150c3665dd
parent709bc3db0d2faa9d877e0ca45f1f9d91276b31bc (diff)
Re-échappement des \ et " dans les token string
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@3339 85f007b7-540e-0410-9357-904b9bb8a0f7
-rw-r--r--parsing/lexer.ml42
-rw-r--r--theories/Init/LogicSyntax.v4
2 files changed, 2 insertions, 4 deletions
diff --git a/parsing/lexer.ml4 b/parsing/lexer.ml4
index 8d23a9ce85..d2a46fcf48 100644
--- a/parsing/lexer.ml4
+++ b/parsing/lexer.ml4
@@ -190,10 +190,8 @@ let escape len c = store len c
let rec string bp len = parser
| [< ''"' >] -> len
-(* Uncomment to allow '"' in strings
| [< ''\\'; c = (parser [< ' ('"' | '\\' as c) >] -> c | [< >] -> '\\'); s >]
-> string bp (escape len c) s
-*)
| [< _ = Stream.empty >] ep -> err (bp, ep) Unterminated_string
| [< 'c; s >] -> string bp (store len c) s
diff --git a/theories/Init/LogicSyntax.v b/theories/Init/LogicSyntax.v
index fa5d8b958c..fda1cde030 100644
--- a/theories/Init/LogicSyntax.v
+++ b/theories/Init/LogicSyntax.v
@@ -17,8 +17,8 @@ Notation "< P , Q > { p , q }" := (conj P Q p q) (at level 1).
Notation "~ x" := (not x) (at level 5, right associativity).
Notation "x = y" := (eq ? x y) (at level 5, no associativity).
-Infix RIGHTA 6 "/\" and.
-Infix RIGHTA 7 "\/" or.
+Infix RIGHTA 6 "/\\" and.
+Infix RIGHTA 7 "\\/" or.
Infix RIGHTA 8 "<->" iff.
Notation "'IF' c1 'then' c2 'else' c3" := (IF c1 c2 c3)