Class: Whittle::NonTerminal

Inherits:
Rule
  • Object
show all
Defined in:
lib/whittle/non_terminal.rb

Overview

Represents an nonterminal Rule, which refers to other Rules.

Constant Summary

Constants inherited from Rule

Rule::DUMP_ACTION, Rule::NULL_ACTION

Instance Attribute Summary

Attributes inherited from Rule

#action, #assoc, #components, #name, #prec

Instance Method Summary collapse

Methods inherited from Rule

#%, #^, #as, #build_parse_table, #initialize, #skip!

Constructor Details

This class inherits a constructor from Whittle::Rule

Instance Method Details

#terminal?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/whittle/non_terminal.rb', line 8

def terminal?
  false
end