]> matita.cs.unibo.it Git - helm.git/commitdiff
META parsing was completely broken. Fixed.
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Mon, 29 Apr 2002 10:06:06 +0000 (10:06 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Mon, 29 Apr 2002 10:06:06 +0000 (10:06 +0000)
helm/ocaml/cic_textual_parser/cicTextualLexer.mll

index 3e256b2cf7aab75b055b2c0f012589b8d6ae91e9..8c1a5b4aed55f0067a0a337d89690a17f08a2404 100644 (file)
@@ -71,7 +71,10 @@ rule token =
   | indtyuri    { INDTYURI (indtyuri_of_uri ("cic:" ^ L.lexeme lexbuf)) }
   | indconuri   { INDCONURI (indconuri_of_uri("cic:" ^ L.lexeme lexbuf)) }
   | num         { NUM (int_of_string (L.lexeme lexbuf)) }
-  | '?' num     { META (int_of_string (L.lexeme lexbuf)) }
+  | '?' num     { let lexeme = L.lexeme lexbuf in
+                   META
+                    (int_of_string
+                     (String.sub lexeme 1 (String.length lexeme - 1))) }
   | ":>"        { CAST }
   | ":="        { LETIN }
   | '?'         { IMPLICIT }