Class: Racc::GrammarFileParser::Result
- Defined in:
- lib/racc/grammarfileparser.rb
Instance Attribute Summary collapse
-
#grammar ⇒ Object
readonly
Returns the value of attribute grammar.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Instance Method Summary collapse
-
#initialize(grammar) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(grammar) ⇒ Result
Returns a new instance of Result.
155 156 157 158 |
# File 'lib/racc/grammarfileparser.rb', line 155 def initialize(grammar) @grammar = grammar @params = ParserFileGenerator::Params.new end |
Instance Attribute Details
#grammar ⇒ Object (readonly)
Returns the value of attribute grammar.
160 161 162 |
# File 'lib/racc/grammarfileparser.rb', line 160 def grammar @grammar end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
161 162 163 |
# File 'lib/racc/grammarfileparser.rb', line 161 def params @params end |