Info.Lr0SourceLR(0) state information. LR(0) states represent the "core" of LR(1) states, ignoring lookahead information.
incoming g s returns the symbol that labels the transition into state s. Returns None for initial states (which have no incoming transition). For non-initial states, returns Some sym where sym is the symbol that was parsed to reach this state.
items g s returns the set of LR(0) items in state s. These are the core items before closure is applied.
val is_entrypoint :
'g grammar ->
'g n Fix.Indexing.index ->
'g production Fix.Indexing.index optionis_entrypoint g s returns Some prod if s is an initial state corresponding to an entrypoint, where prod is the pseudo (start) production for that entrypoint. Returns None for non-initial states.