diff options
-rw-r--r-- | parsing/lexer.ml4 | 5 | ||||
-rw-r--r-- | theories/Init/LogicSyntax.v | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/parsing/lexer.ml4 b/parsing/lexer.ml4 index a3ea85e02..8d23a9ce8 100644 --- a/parsing/lexer.ml4 +++ b/parsing/lexer.ml4 @@ -190,7 +190,10 @@ let escape len c = store len c let rec string bp len = parser | [< ''"' >] -> len - | [< ''\\'; 'c; s >] -> string bp (escape len c) s +(* 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 fda1cde03..fa5d8b958 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) |