Class: RLTK::Parser::Action
- Inherits:
-
Object
- Object
- RLTK::Parser::Action
- Defined in:
- lib/rltk/parser.rb
Overview
The Action class is used to indicate what action the parser should take given a current state and input token.
Instance Attribute Summary collapse
-
#id ⇒ Integer
readonly
ID of this action.
Instance Method Summary collapse
-
#initialize(id = nil) ⇒ Action
constructor
A new instance of Action.
Constructor Details
#initialize(id = nil) ⇒ Action
Returns a new instance of Action.
1590 1591 1592 |
# File 'lib/rltk/parser.rb', line 1590 def initialize(id = nil) @id = id end |
Instance Attribute Details
#id ⇒ Integer (readonly)
Returns ID of this action.
1587 1588 1589 |
# File 'lib/rltk/parser.rb', line 1587 def id @id end |