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