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.
174 175 176 177 |
# File 'lib/racc/grammarfileparser.rb', line 174 def initialize(grammar) @grammar = grammar @params = ParserFileGenerator::Params.new end |
Instance Attribute Details
#grammar ⇒ Object (readonly)
Returns the value of attribute grammar.
179 180 181 |
# File 'lib/racc/grammarfileparser.rb', line 179 def grammar @grammar end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
180 181 182 |
# File 'lib/racc/grammarfileparser.rb', line 180 def params @params end |