Class: Racc::StateTransitionTable

### Home Classes Methods

### In Files

- lib/racc/statetransitiontable.rb

### Parent

Object

### Methods

- ::generate
- ::new
- #parser_class
- #token_value_table

### Files

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

### Class/Module 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.

# Racc::StateTransitionTable

### Attributes

grammar[R]
states[R]

### Public Class Methods

generate(states) click to toggle source

    # File lib/racc/statetransitiontable.rb, line 39
    def StateTransitionTable.generate(states)
      StateTransitionTableGenerator.new(states).generate
    end

new(states) click to toggle source

    # File lib/racc/statetransitiontable.rb, line 43
    def initialize(states)
      super()
      @states = states
      @grammar = states.grammar
      self.use_result_var = true
      self.debug_parser = true
    end

### Public Instance Methods

parser_class() click to toggle source

    # File lib/racc/statetransitiontable.rb, line 54
    def parser_class
      ParserClassGenerator.new(@states).generate
    end

token_value_table() click to toggle source

    # File lib/racc/statetransitiontable.rb, line 58
    def token_value_table
      h = {}
      token_table().each do |sym, i|
        h[sym.value] = i
      end
      h
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.