X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=src%2Flexer.mll;h=ae4a030c3a12db241d2c87149429d40931fb3051;hb=c07380a3a4dca44a29df4cb09265d10442c1d06f;hp=4a316a0cc18aa14b418e3c39009379b3fbc56be9;hpb=5c8290d1d50fdda7b69641242aced87eea0c267b;p=goals.git diff --git a/src/lexer.mll b/src/lexer.mll index 4a316a0..ae4a030 100644 --- a/src/lexer.mll +++ b/src/lexer.mll @@ -43,6 +43,7 @@ rule read = | newline { new_line lexbuf; read lexbuf } | "," { COMMA } | ":" { COLON } + | ";" { SEMICOLON } | "=" { EQUALS } | "(" { LEFT_PAREN } | ")" { RIGHT_PAREN } @@ -51,10 +52,23 @@ rule read = | '"' { read_string (Ast.Substs.create ()) lexbuf } | "{" { read_code (Ast.Substs.create ()) (ref 1) lexbuf } | "goal" { GOAL } - | "tactic" { TACTIC_KEYWORD } + | "tactic" + { TACTIC_KEYWORD } + | "function" + { FUNCTION } | "let" { LET } - | "include" { INCLUDE } - | "-include" { OPTINCLUDE } + | "include" + { INCLUDE } + | "-include" + { OPTINCLUDE } + | "returning" + { RETURNING } + | "expression" + { EXPRESSION } + | "string" + { STRING_KEYWORD } + | "strings" + { STRINGS } | "*" id { (* NB: The initial '*' is part of the name. *) TACTIC (Lexing.lexeme lexbuf) } | id { ID (Lexing.lexeme lexbuf) }