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.



155
156
157
158
# File 'lib/racc/grammarfileparser.rb', line 155

def initialize(grammar)
  @grammar = grammar
  @params = ParserFileGenerator::Params.new
end

Instance Attribute Details

#grammarObject (readonly)

Returns the value of attribute grammar.



160
161
162
# File 'lib/racc/grammarfileparser.rb', line 160

def grammar
  @grammar
end

#paramsObject (readonly)

Returns the value of attribute params.



161
162
163
# File 'lib/racc/grammarfileparser.rb', line 161

def params
  @params
end