Sha256: 2ab2e4556d0a363a085f72dd77d797c923d85b8449e23271764c0453698ce718
Contents?: true
Size: 605 Bytes
Versions: 3
Compression:
Stored size: 605 Bytes
Contents
require_relative 'parse_tree_node' # Load superclass module Rley # This module is used as a namespace module PTree # This module is used as a namespace class TerminalNode < ParseTreeNode # Link to the input token attr_writer(:token) def initialize(aTerminalSymbol, aRange) super(aTerminalSymbol, aRange) end # Part of the 'visitee' role in Visitor design pattern. # @param aVisitor[ParseTreeVisitor] the visitor def accept(aVisitor) aVisitor.visit_terminal(self) end end # class end # module end # module # End of file
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rley-0.1.05 | lib/rley/ptree/terminal_node.rb |
rley-0.1.04 | lib/rley/ptree/terminal_node.rb |
rley-0.1.03 | lib/rley/ptree/terminal_node.rb |