Object
# File racc/parserfilegenerator.rb, line 72 def initialize(states, params) @states = states @grammar = states.grammar @params = params end
# File racc/parserfilegenerator.rb, line 78 def generate_parser string_io = StringIO.new init_line_conversion_system @f = string_io parser_file string_io.rewind string_io.read end
# File racc/parserfilegenerator.rb, line 89 def generate_parser_file(destpath) init_line_conversion_system File.open(destpath, 'w') {|f| @f = f parser_file } File.chmod 0755, destpath if @params.make_executable? end
State Transition Table Serialization
# File racc/parserfilegenerator.rb, line 254 def put_state_transition_table(f) @f = f state_transition_table end
This page was generated for Ruby 3.1.2
Ruby-doc.org is a service of James Britt and Neurogami, an erratic source of art, music, and technology.
Generated with Ruby-doc Rdoc Generator 0.42.0.