nice_parser

Nice parsers without the boilerplate
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library nice_parser
Module type Nice_parser . RAW_PARSER

Types

type token

Tokens produced by lexer and consumed by auto-generated parser. For menhir-generated parsers, type token = Menhir_parser.token.

type result

Your parser produces results of this type.

Exceptions

exception LexError of string

Exception (with error message) thrown by lexer in case of errors.

exception ParseError

Exception thrown by auto-generated parser. For menhir-generated parsers, exception ParseError = Menhir_parser.Error

Entrypoints

val next_token : Lexing.lexbuf -> token

Entrypoint to auto-generated lexer.

val parse : ( Lexing.lexbuf -> token ) -> Lexing.lexbuf -> result

Entrypoint to auto-generated parser.