module Parse:Linking lexer and parser function, with (basic) error messagessig
..end
exception Lex_error
val lex_eol : Lexing.lexbuf -> unit
val parse_lexbuf : lexer:(Lexing.lexbuf -> 'token) ->
parser:((Lexing.lexbuf -> 'token) -> Lexing.lexbuf -> 'ast) ->
Lexing.lexbuf -> 'ast
lexbuf
,
Returns the AST built by the parser.
val parse_string : lexer:(Lexing.lexbuf -> 'token) ->
parser:((Lexing.lexbuf -> 'token) -> Lexing.lexbuf -> 'ast) -> string -> 'ast
lexbuf
from the given string.val parse_file : lexer:(Lexing.lexbuf -> 'token) ->
parser:((Lexing.lexbuf -> 'token) -> Lexing.lexbuf -> 'ast) -> string -> 'ast
lexbuf
from the given filename.