package nice_parser

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

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.