X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=src%2Flexer.mll;h=8f56d5b51ea238fd9d8c0e10b86a273e800c9380;hb=70a08a62b9312ed1bbcb7c89d47f9a25fa221e34;hp=66c6b9feef221ef2b0d22b58c5a52123222ed972;hpb=976bb1b35d77f3058df3c25c1e2a4767147d606b;p=goals.git diff --git a/src/lexer.mll b/src/lexer.mll index 66c6b9f..8f56d5b 100644 --- a/src/lexer.mll +++ b/src/lexer.mll @@ -28,7 +28,7 @@ exception SyntaxError of string let new_line lexbuf = let pos = lexbuf.lex_curr_p in lexbuf.lex_curr_p <- - { pos with pos_bol = lexbuf.lex_curr_pos; pos_lnum = pos.pos_lnum + 1 } + { pos with pos_bol = pos.pos_cnum; pos_lnum = pos.pos_lnum + 1 } } let white = [' ' '\t']+ @@ -61,6 +61,14 @@ rule read = { 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) }