Class: Collie::AST::StartDeclaration
- Inherits:
-
Object
- Object
- Collie::AST::StartDeclaration
- Defined in:
- lib/collie/ast.rb
Overview
Start symbol declaration node (%start)
Instance Attribute Summary collapse
-
#location ⇒ Object
Returns the value of attribute location.
-
#symbol ⇒ Object
Returns the value of attribute symbol.
Instance Method Summary collapse
-
#initialize(symbol:, location: nil) ⇒ StartDeclaration
constructor
A new instance of StartDeclaration.
Constructor Details
#initialize(symbol:, location: nil) ⇒ StartDeclaration
Returns a new instance of StartDeclaration.
71 72 73 74 |
# File 'lib/collie/ast.rb', line 71 def initialize(symbol:, location: nil) @symbol = symbol @location = location end |
Instance Attribute Details
#location ⇒ Object
Returns the value of attribute location.
69 70 71 |
# File 'lib/collie/ast.rb', line 69 def location @location end |
#symbol ⇒ Object
Returns the value of attribute symbol.
69 70 71 |
# File 'lib/collie/ast.rb', line 69 def symbol @symbol end |