123456789_123456789_123456789_123456789_123456789_

Class: Racc::ParserFileGenerator::Params

Relationships & Source Files
Inherits: Object
Defined in: lib/racc/parserfilegenerator.rb

Class Method Summary

Instance Attribute Summary

Constructor Details

.newParams

[ GitHub ]

  
# File 'lib/racc/parserfilegenerator.rb', line 52

def initialize
  # Parameters derived from parser
  self.filename = nil
  self.classname = nil
  self.superclass = 'Racc::Parser'
  self.omit_action_call = true
  self.result_var = true
  self.header = []
  self.inner  = []
  self.footer = []

  # Parameters derived from command line options
  self.debug_parser = false
  self.convert_line = true
  self.convert_line_all = false
  self.embed_runtime = false
  self.frozen_strings = false
  self.make_executable = false
  self.interpreter = nil
end

Class Method Details

.bool_attr(name)

[ GitHub ]

  
# File 'lib/racc/parserfilegenerator.rb', line 23

def self.bool_attr(name)
  module_eval(<<-End)
    def #{name}?
      @#{name}
    end

    def #{name}=(b)
      @#{name} = b
    end
  End
end

Instance Attribute Details

#classname (rw)

[ GitHub ]

  
# File 'lib/racc/parserfilegenerator.rb', line 36

attr_accessor :classname

#filename (rw)

[ GitHub ]

  
# File 'lib/racc/parserfilegenerator.rb', line 35

attr_accessor :filename

#header (rw)

[ GitHub ]

  
# File 'lib/racc/parserfilegenerator.rb', line 40

attr_accessor :header

#inner (rw)

[ GitHub ]

  
# File 'lib/racc/parserfilegenerator.rb', line 41

attr_accessor :inner

#interpreter (rw)

[ GitHub ]

  
# File 'lib/racc/parserfilegenerator.rb', line 50

attr_accessor :interpreter

#superclass (rw)

[ GitHub ]

  
# File 'lib/racc/parserfilegenerator.rb', line 37

attr_accessor :superclass