Class: Racc::Reduce

### Home Classes Methods

### In Files

- lib/racc/state.rb

### Parent

Object

### Methods

- ::new
- #decref
- #incref
- #inspect
- #ruleid

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

### Attributes

refn[R]
rule[R]

### Public Class Methods

new(rule) click to toggle source

    # File lib/racc/state.rb, line 897
    def initialize(rule)
      @rule = rule
      @refn = 0
    end

### Public Instance Methods

decref() click to toggle source

    # File lib/racc/state.rb, line 917
    def decref
      @refn -= 1
      raise 'racc: fatal: act.refn < 0' if @refn < 0
    end

incref() click to toggle source

    # File lib/racc/state.rb, line 913
    def incref
      @refn += 1
    end

inspect() click to toggle source

    # File lib/racc/state.rb, line 909
    def inspect
      "<reduce #{@rule.ident}>"
    end

ruleid() click to toggle source

    # File lib/racc/state.rb, line 905
    def ruleid
      @rule.ident
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.