;;
}
let num = ['1'-'9']['0'-'9']* | '0'
-let alfa = ['A'-'Z' 'a'-'z' '_' '-']
+let alfa = ['A'-'Z' 'a'-'z' '_' ''' '-']
let ident = alfa (alfa | num)*
let baseuri = '/'(ident '/')* ident '.'
let conuri = baseuri ("con" | "var")
| 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 }
| '(' { LPAREN }
| ')' { RPAREN }
+ | '[' { LBRACKET }
+ | ']' { RBRACKET }
| '{' { LCURLY }
| '}' { RCURLY }
| ';' { SEMICOLON }
| ':' { COLON }
| '.' { DOT }
| "->" { ARROW }
+ | "_" { NONE }
| eof { EOF }
{}