Class: Racc::Goto

### Home Classes Methods

### In Files

- lib/racc/state.rb

### Parent

Object

### Methods

- ::new
- #inspect

### 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::Goto

Represents a transition on the grammar. "Real goto" means a transition by nonterminal, but this class treats also terminal's. If one is a terminal transition, .ident returns nil.

### Attributes

from_state[R]
ident[R]
symbol[R]
to_state[R]

### Public Class Methods

new(ident, sym, from, to) click to toggle source

    # File lib/racc/state.rb, line 767
    def initialize(ident, sym, from, to)
      @ident      = ident
      @symbol     = sym
      @from_state = from
      @to_state   = to
    end

### Public Instance Methods

inspect() click to toggle source

    # File lib/racc/state.rb, line 779
    def inspect
      "(#{@from_state.ident}-#{@symbol}->#{@to_state.ident})"
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.