Module Kernel.AutomataSource

This module is responsible for generating a deterministic finite automaton (DFA) from a given grammar and lookahead set. The DFA is used to perform pattern matching on input tokens according to the grammar rules. The module includes several stages:

Sourcetype ('g, 'n) stacks = {
  1. domain : 'n Fix.Indexing.cardinal;
  2. tops : 'n Utils.Misc.indexset;
  3. prev : 'n Fix.Indexing.index -> 'n Utils.Misc.indexset;
  4. label : 'n Fix.Indexing.index -> 'g Info.lr1 Fix.Indexing.index;
}
Sourcetype priority = int
Sourceval label_to_short_string : 'a Kernel__Info.grammar -> 'a Info.Lr1.n Utils.IndexSet.t -> string
Sourceval string_of_cap : Regexp.Capture.t -> string
Sourcemodule NFA : sig ... end
Sourcemodule DFA : sig ... end
Sourcemodule Dataflow : sig ... end
Sourcemodule Machine : sig ... end