Class: Dhaka::LexerSupport::RootNode
- Inherits:
-
CatNode
- Object
- ASTNode
- BinaryNode
- CatNode
- Dhaka::LexerSupport::RootNode
- Defined in:
- lib/lexer/regex_grammar.rb
Instance Attribute Summary
Attributes inherited from BinaryNode
Instance Method Summary collapse
- #head_node? ⇒ Boolean
-
#initialize(left) ⇒ RootNode
constructor
A new instance of RootNode.
- #label ⇒ Object
Methods inherited from CatNode
#calculate_follow_sets, #first, #last, #nullable
Methods inherited from BinaryNode
#calculate_follow_sets, #to_dot
Methods inherited from ASTNode
Constructor Details
#initialize(left) ⇒ RootNode
Returns a new instance of RootNode.
268 269 270 |
# File 'lib/lexer/regex_grammar.rb', line 268 def initialize(left) super(left, AcceptingNode.new()) end |
Instance Method Details
#head_node? ⇒ Boolean
276 277 278 |
# File 'lib/lexer/regex_grammar.rb', line 276 def head_node? true end |
#label ⇒ Object
272 273 274 |
# File 'lib/lexer/regex_grammar.rb', line 272 def label "start" end |