package dolmen

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

Module Make.ParserSource

The Parser module for the language.

Main interface

Sourceexception Error

Exception raised by the parser when it encounters an error.

A function that parses an entire file, i.e until the end-of-file token, and return the list of parsed statements.

Sourceval input : (Lexing.lexbuf -> token) -> Lexing.lexbuf -> statement option

A function to parse a single statement. Reutnrs None if it encounters the end-of-file token. Used for incremental parsing.

Menhir incremental interface

Sourcemodule MenhirInterpreter : sig ... end
Sourcemodule Incremental : sig ... end
OCaml

Innovation. Community. Security.