package nice_parser

  1. Overview
  2. Docs

Module type Nice_parser.RAW_PARSERSource

The raw interface to an auto-generated parser/lexer pair.

Types

Sourcetype token

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

Sourcetype result

Your parser produces results of this type.

Exceptions

Sourceexception LexError of string

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

Sourceexception ParseError

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

Entrypoints

Sourceval next_token : Lexing.lexbuf -> token

Entrypoint to auto-generated lexer.

Entrypoint to auto-generated parser.

OCaml

Innovation. Community. Security.