Class: Journey::NFA::Builder
- Inherits:
-
Object
- Object
- Journey::NFA::Builder
- Defined in:
- lib/journey/nfa/builder.rb
Instance Method Summary collapse
-
#initialize(ast) ⇒ Builder
constructor
A new instance of Builder.
- #transition_table ⇒ Object
Constructor Details
#initialize(ast) ⇒ Builder
Returns a new instance of Builder.
63 64 65 |
# File 'lib/journey/nfa/builder.rb', line 63 def initialize ast @ast = ast end |
Instance Method Details
#transition_table ⇒ Object
67 68 69 70 71 |
# File 'lib/journey/nfa/builder.rb', line 67 def transition_table tt = TransitionTable.new Visitor.new(tt).accept @ast tt end |