Camlinternal...neTypes.TABLE(3)
π NAME π
Okay so this is the OCaml library manual page for CamlinternalMenhirLib.EngineTypes.TABLE, and the description is literally no description. That's the whole NAME section, bestie. No cap. It's giving "module type with main character energy" β¨.
π§ Module type π§
The module type is CamlinternalMenhirLib.EngineTypes.TABLE. That's the full name, periodt. It's a module type, so it's the signature situation, not a runnable module. The page doesn't give any extra description for it, so we're not inventing one π«Ά.
β¨ Documentation β¨
The signature opener is exactly:
Module type TABLE
= sig end
Then inside TABLE, here's every type, value, exception, and module in the order the page lists them. We're keeping the whole roster β no skipping, no "TL;DR" π
.
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 tis the transition vibe check: does there exist a transition out of states, labeled with terminal symbolt, to some states'? If yes, you getSome s'. If not, you getNone. Slay.val may_reduce_prod : state -> terminal -> production -> boolβmay_reduce_prod s t prodasks whether in states, with lookahead symbolt, the automaton reduces productionprod. This test accounts for the possible existence of a default reduction. So yes, the default-reduction possibility is included in the check, fr fr.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 Errortype semantic_actionβ the full definition is exactly this, and yes it's a whole multi-line moment:
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β yep, empty signature. That's the whole line, bestie π.
One tiny thing to keep in mind: the two prose notes above are the only explanatory bits the page gives for those entries. Everything else is the bare signature, so we're not adding extra lore.
That's the whole page, bestie π¦. The footer/source/version line credits OCamldoc, dated 2026-06-22, and the page tag is Camlinternal...neTypes.TABLE(3). Bye π
.
π¦ 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