| 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 }
{}