Module Excmd.Parser
type 'a ttype script= AST.t
exceptionParseError of Tokens.token Lexer.located
Accessors
val error_loctoken_exn : exn -> Tokens.token Lexer.located
Parsing entry-points
val script : ?exn:bool -> Lexer.buffer -> script optionInvoke the Excmd parser with intent to consume, and produce, an entire Excmd-
script.
val expression : ?exn:bool -> Lexer.buffer -> Expression.t optionInvoke the Excmd parser with intent to consume, and produce, a single Excmd
Expression.t.
val expression_of_string : ?exn:bool -> string -> Expression.t optionHelper to invoke
expressionwith astring.
Menhir-generated parsing automata
val script_automaton : AST.t tAlias to
ParserAutomaton.script.
val expression_automaton : AST.expression tAlias to
ParserAutomaton.expression.
Helpers
val parse : ?exn:bool -> Lexer.buffer -> 'a t -> 'a optionA simple helper for Menhir-style parsers. Applies the given parser to the given lexbuf.
val parse_string : ?exn:bool -> string -> 'a t -> 'a optionA helper to apply the given Menhir-style parser to a string directly.