%{ %} (* Tokens (mirroring thise defined in module LexToken) *) (* Literals *) %token String %token <(LexToken.lexeme * MBytes.t) Region.reg> Bytes %token <(LexToken.lexeme * Z.t) Region.reg> Int %token Ident %token Constr (* Symbols *) %token SEMI (* ";" *) %token COMMA (* "," *) %token LPAR (* "(" *) %token RPAR (* ")" *) %token LBRACE (* "{" *) %token RBRACE (* "}" *) %token LBRACKET (* "[" *) %token RBRACKET (* "]" *) %token CONS (* "#" *) %token VBAR (* "|" *) %token ARROW (* "->" *) %token ASS (* ":=" *) %token EQUAL (* "=" *) %token COLON (* ":" *) %token OR (* "||" *) %token AND (* "&&" *) %token LT (* "<" *) %token LEQ (* "<=" *) %token GT (* ">" *) %token GEQ (* ">=" *) %token NEQ (* "=/=" *) %token PLUS (* "+" *) %token MINUS (* "-" *) %token SLASH (* "/" *) %token TIMES (* "*" *) %token DOT (* "." *) %token WILD (* "_" *) %token CAT (* "^" *) (* Keywords *) %token Begin (* "begin" *) %token Const (* "const" *) %token Copy (* "copy" *) %token Down (* "down" *) %token Fail (* "fail" *) %token If (* "if" *) %token In (* "in" *) %token Is (* "is" *) %token Entrypoint (* "entrypoint" *) %token For (* "for" *) %token Function (* "function" *) %token Type (* "type" *) %token Of (* "of" *) %token Var (* "var" *) %token End (* "end" *) %token Then (* "then" *) %token Else (* "else" *) %token Match (* "match" *) %token Null (* "null" *) %token Procedure (* "procedure" *) %token Record (* "record" *) %token Step (* "step" *) %token To (* "to" *) %token Mod (* "mod" *) %token Not (* "not" *) %token While (* "while" *) %token With (* "with" *) (* Data constructors *) %token C_False (* "False" *) %token C_None (* "None" *) %token C_Some (* "Some" *) %token C_True (* "True" *) %token C_Unit (* "Unit" *) (* Virtual tokens *) %token EOF %%