jon.recoil.org

Parameter Make.Parser

include Ocaml_preprocess.MenhirLib.IncrementalEngine.INCREMENTAL_ENGINE
type token
type production
type 'a env
type 'a checkpoint = private
  1. | InputNeeded of 'a Parser.env
  2. | Shifting of 'a Parser.env * 'a Parser.env * bool
  3. | AboutToReduce of 'a Parser.env * Parser.production
  4. | HandlingError of 'a Parser.env
  5. | Accepted of 'a
  6. | Rejected
type strategy = [
  1. | `Legacy
  2. | `Simplified
]
val resume : ?strategy:Parser.strategy -> 'a Parser.checkpoint -> 'a Parser.checkpoint
val lexer_lexbuf_to_supplier : (Stdlib.Lexing.lexbuf -> Parser.token) -> Stdlib.Lexing.lexbuf -> Parser.supplier
val loop : ?strategy:Parser.strategy -> Parser.supplier -> 'a Parser.checkpoint -> 'a
val loop_handle : ('a -> 'answer) -> ('a Parser.checkpoint -> 'answer) -> Parser.supplier -> 'a Parser.checkpoint -> 'answer
val loop_handle_undo : ('a -> 'answer) -> ('a Parser.checkpoint -> 'a Parser.checkpoint -> 'answer) -> Parser.supplier -> 'a Parser.checkpoint -> 'answer
val shifts : 'a Parser.checkpoint -> 'a Parser.env option
type 'a lr1state
val number : _ Parser.lr1state -> int
val production_index : Parser.production -> int
val find_production : int -> Parser.production
val stack : 'a Parser.env -> Parser.stack
val top : 'a Parser.env -> Parser.element option
val pop_many : int -> 'a Parser.env -> 'a Parser.env option
val get : int -> 'a Parser.env -> Parser.element option
val current_state_number : 'a Parser.env -> int
val equal : 'a Parser.env -> 'a Parser.env -> bool
val env_has_default_reduction : 'a Parser.env -> bool
val state_has_default_reduction : _ Parser.lr1state -> bool
val pop : 'a Parser.env -> 'a Parser.env option
val force_reduction : Parser.production -> 'a Parser.env -> 'a Parser.env
val input_needed : 'a Parser.env -> 'a Parser.checkpoint
include Ocaml_preprocess.MenhirLib.IncrementalEngine.INSPECTION with type 'a lr1state := 'a Parser.lr1state with type production := Parser.production with type 'a env := 'a Parser.env
include Ocaml_preprocess.MenhirLib.IncrementalEngine.SYMBOLS
type 'a terminal
type 'a nonterminal
type 'a symbol =
  1. | T : 'a Parser.terminal -> 'a Parser.symbol
  2. | N : 'a Parser.nonterminal -> 'a Parser.symbol
type xsymbol =
  1. | X : 'a Parser.symbol -> Parser.xsymbol
type item = Parser.production * int
val compare_terminals : _ Parser.terminal -> _ Parser.terminal -> int
val compare_nonterminals : _ Parser.nonterminal -> _ Parser.nonterminal -> int
val compare_symbols : Parser.xsymbol -> Parser.xsymbol -> int
val compare_productions : Parser.production -> Parser.production -> int
val compare_items : Parser.item -> Parser.item -> int
val incoming_symbol : 'a Parser.lr1state -> 'a Parser.symbol
val items : _ Parser.lr1state -> Parser.item list
val nullable : _ Parser.nonterminal -> bool
val first : _ Parser.nonterminal -> _ Parser.terminal -> bool
val xfirst : Parser.xsymbol -> _ Parser.terminal -> bool
val foreach_terminal : (Parser.xsymbol -> 'a -> 'a) -> 'a -> 'a
val foreach_terminal_but_error : (Parser.xsymbol -> 'a -> 'a) -> 'a -> 'a