A deterministic finite‐state automaton. The automaton is defined in TableGen; this object drives an automaton defined by tblgen‐emitted tables.

Synopsis

Declared in <llvm/Support/Automaton.h>

template<typename ActionT>
class Automaton;

Description

An automaton accepts a sequence of input tokens ("actions"). This class is templated on the type of these actions.

Member Functions

Name

Description

Automaton [constructor]

Constructors

add

Transition the automaton based on input symbol A.

canAdd

Return true if the automaton can be transitioned based on input symbol A.

enableTranscription

Enable or disable transcription. Transcription is only available if TranscriptionTable was provided to the constructor.

getNfaPaths

Return possible NFA paths for the actions accepted so far.

reset

Reset the automaton to its initial state.

Created with MrDocs