class Rley::GFG::ScanEdge
Specialization of an edge in a grammar flow graph that is taken as a consequence of a scan rule. Responsibilities:
-
To know the successor vertex
Attributes
The terminal symbol expected from the input stream
Public Class Methods
Source
# File lib/rley/gfg/scan_edge.rb, line 15 def initialize(thePredecessor, theSuccessor, aTerminal) super(thePredecessor, theSuccessor) @terminal = aTerminal end
Calls superclass method
Rley::GFG::Edge::new
Public Instance Methods
Source
# File lib/rley/gfg/scan_edge.rb, line 20 def to_s " -#{terminal}-> #{successor.label}" end