X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=src%2Flexer.mll;h=ae4a030c3a12db241d2c87149429d40931fb3051;hb=c07380a3a4dca44a29df4cb09265d10442c1d06f;hp=f2d083063258da907818ec93939309a44712a302;hpb=cd5cb328d707b89caad44b038422d6456c1aee03;p=goals.git diff --git a/src/lexer.mll b/src/lexer.mll index f2d0830..ae4a030 100644 --- a/src/lexer.mll +++ b/src/lexer.mll @@ -52,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) }