pieuvre/lexer.mll
Adrien Vannson 40ac538cc1
Assumption
2022-05-09 00:42:33 +02:00

23 lines
695 B
OCaml

{
open Parser
}
rule token_ty = parse
| [' ' '\t' '\n'] { token_ty lexbuf }
| eof { EOF }
| '(' { LPAREN }
| ')' { RPAREN }
| "->" { RARROW }
| '~' { TILDE }
| "False" { FALSE }
| ['A'-'Z']+['0'-'9']* as s { TYPE_NAME s }
and token_tactic = parse
| [' ' '\t' '\n'] { token_tactic lexbuf }
| eof { EOF }
| "intro" { INTRO }
| "assumption" { ASSUMPTION }
| ['a'-'z']+['0'-'9']* as s { VAR_NAME s }
| '.' { DOT }