package morbig

  1. Overview
  2. Docs

Module Morbig.ExtMenhirLibSource

Sourcetype 'a status =
  1. | AcceptedNow of 'a
  2. | Fine
  3. | Wrong

finished checkpoint is true if the current checkpoint can move the LR(1) automaton to an accepting state with no extra input.

nonterminal_production p returns the non terminal of p. The nonterminals of Menhir API are a too precisely typed for our needs. Hence, we introduce an extential type for weaken this precision.

Sourceval nonterminal_of_production : Parser.MenhirInterpreter.production -> nonterminal
Sourceexception EmptyStack
Sourcetype 'b top_symbol_processor = {
  1. perform : 'a. ('a Parser.MenhirInterpreter.symbol * 'a) -> 'b;
}
Sourceval on_top_symbol : 'a Parser.MenhirInterpreter.env -> 'b top_symbol_processor -> 'b
OCaml

Innovation. Community. Security.