X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=src%2Flexer.mll;h=9ea2f741f191a83066ffa1313ccd61df6d9e2114;hb=98b795ddf06271fa8018edcd0bd15960871828fd;hp=2b6c4e8020f9afa321d21e8b290ac746e73c0614;hpb=a27fa75b6854fa3f75e34817cb0bf63646d644e4;p=goals.git diff --git a/src/lexer.mll b/src/lexer.mll index 2b6c4e8..9ea2f74 100644 --- a/src/lexer.mll +++ b/src/lexer.mll @@ -53,8 +53,8 @@ rule read = | "{" { read_code false (Ast.Substs.create ()) (ref 1) lexbuf } | "@{" { read_code true (Ast.Substs.create ()) (ref 1) lexbuf } | "goal" { GOAL } - | "tactic" - { TACTIC_KEYWORD } + | "predicate" + { PREDICATE } | "function" { FUNCTION } | "pure" { PURE } @@ -71,8 +71,9 @@ rule read = { STRING_KEYWORD } | "strings" { STRINGS } - | "*" id { (* NB: The initial '*' is part of the name. *) - TACTIC (Lexing.lexeme lexbuf) } + | "is-" id + { (* NB: The initial 'is-' is part of the name. *) + PRED (Lexing.lexeme lexbuf) } | id { ID (Lexing.lexeme lexbuf) } | _ { raise (SyntaxError ("unexpected character: " ^ Lexing.lexeme lexbuf)) }