File: pre-setup [racc-1.4.12 Documentation]

### Home Classes Methods

### Files

- Manifest.txt
- README.rdoc
- pre-setup
- NEWS.en.rdoc
- grammar.en.rdoc

### Class Index

Quicksearch

- Racc
- Racc::Accept
- Racc::ActionTable
- Racc::CompileError
- Racc::DebugFlags
- Racc::Error
- Racc::Goto
- Racc::Grammar
- Racc::Grammar::DefinitionEnv
- Racc::Grammar::PrecedenceDefinitionEnv
- Racc::GrammarFileParser
- Racc::GrammarFileParser::Result
- Racc::GrammarFileScanner
- Racc::ISet
- Racc::Item
- Racc::LocationPointer
- Racc::LogFileGenerator
- Racc::OrMark
- Racc::ParseError
- Racc::ParseError
- Racc::Parser
- Racc::ParserClassGenerator
- Racc::ParserFileGenerator
- Racc::ParserFileGenerator::Params
- Racc::Prec
- Racc::RRconflict
- Racc::Reduce
- Racc::Rule
- Racc::SRconflict
- Racc::Shift
- Racc::SourceText
- Racc::State
- Racc::StateTransitionTable
- Racc::StateTransitionTableGenerator
- Racc::States
- Racc::Sym
- Racc::SymbolTable
- Racc::UserAction
- Object
- Object::ParseError
- Array

No matching classes.

def generate_parser_text_rb(target)

    return if File.exist?(srcfile(target))
    $stderr.puts "generating #{target}..."
    File.open(target, 'w') {|f|
      f.puts "module Racc"
      f.puts "  PARSER_TEXT = <<'__end_of_file__'"
      f.puts File.read(srcfile('parser.rb'))
      f.puts "__end_of_file__"
      f.puts "end"
    }

end

generate_parser_text_rb 'parser-text.rb'

[Validate]

Generated with the Darkfish Rdoc Generator 2.