CamlinternalM...keEngineTable(3)
π NAME π
CamlinternalMenhirLib.TableInterpreter.MakeEngineTable β no description. That's it. That's the whole name section, bestie π This page is from the OCaml library manual, and the page title is CamlinternalM...keEngineTable(3) β say that five times fast, I dare you π«Ά
π¦ Module π¦
Module CamlinternalMenhirLib.TableInterpreter.MakeEngineTable
Short, sweet, and fully itself β¨
π Documentation π
Module MakeEngineTable : (T : TableFormat.TABLES) -> sig end
π«Ά Parameters π«Ά
TβCamlinternalMenhirLib.TableFormat.TABLES
Now the signature items, in order because we respect the queue π :
type stateval number : state -> inttype tokentype terminaltype nonterminaltype semantic_valueval token2terminal : token -> terminalval token2value : token -> semantic_valueval error_terminal : terminalval error_value : semantic_valueval foreach_terminal : (terminal -> 'a -> 'a) -> 'a -> 'atype productionval production_index : production -> intval find_production : int -> productionval default_reduction : state -> ('env -> production -> 'answer) -> ('env -> 'answer) -> 'env -> 'answerval action : state -> terminal -> semantic_value -> ('env -> bool -> terminal -> semantic_value -> state -> 'answer) -> ('env -> production -> 'answer) -> ('env -> 'answer) -> 'env -> 'answerval maybe_shift_t : state -> terminal -> state optionβ okay somaybe_shift_t s tdetermines whether there exists a transition out of the states, labeled with the terminal symbolt, to some states'. If so, it returnsSome s'. Otherwise, it returnsNone. Slay.val may_reduce_prod : state -> terminal -> production -> boolβmay_reduce_prod s t proddetermines whether in the states, with lookahead symbolt, the automaton reduces productionprod. This test accounts for the possible existence of a default reduction. Periodt.val goto_nt : state -> nonterminal -> stateval goto_prod : state -> production -> stateval maybe_goto_nt : state -> nonterminal -> state optionval lhs : production -> nonterminalval is_start : production -> boolexception Errorβ yes, an exception namedError. Iconic, frankly.type semantic_actionβ the full type is this exact mood:
type semantic_action = (state, semantic_value, token)
CamlinternalMenhirLib.EngineTypes.env -> (state, semantic_value)
CamlinternalMenhirLib.EngineTypes.stack
val semantic_action : production -> semantic_actionval may_reduce : state -> production -> boolval log : boolmodule Log : sig endβ an empty sig, and that's the whole vibe.
mwah π source/version: OCamldoc; date: 2026-06-22; page: CamlinternalM...keEngineTable(3). Stay hydrated, bestie, and may your parser tables be immaculate. πβ¨π
π¦ where this page comes from
- arch rolling: ocaml 5.5.0-1 Β· LGPL2.1 AND custom: QPL-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms