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.
1633 1634 1635 |
# File 'lib/rltk/parser.rb', line 1633 def initialize(id = nil) @id = id end |
Instance Attribute Details
#id ⇒ Integer (readonly)
Returns ID of this action.
1630 1631 1632 |
# File 'lib/rltk/parser.rb', line 1630 def id @id end |