Class: Racc::GrammarFileParser::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/racc/grammarfileparser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#grammarObject (readonly)

Returns the value of attribute grammar.



179
180
181
# File 'lib/racc/grammarfileparser.rb', line 179

def grammar
  @grammar
end

#paramsObject (readonly)

Returns the value of attribute params.



180
181
182
# File 'lib/racc/grammarfileparser.rb', line 180

def params
  @params
end