Sha256: c146b08d5d4af2b1d75e2500f87caf91983cbb79c830fb2f9ca960f0f3c69311
Contents?: true
Size: 554 Bytes
Versions: 3
Compression:
Stored size: 554 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 NonTerminalNode < ParseTreeNode # Link to the input token attr_reader(:children) def initialize(aSymbol, aRange) super(aSymbol, aRange) @children = [] end # @param aChildNode [ParseTreeNode-like] a child node. def add_child(aChildNode) children << aChildNode 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.02 | lib/rley/ptree/non_terminal_node.rb |
rley-0.1.01 | lib/rley/ptree/non_terminal_node.rb |
rley-0.1.00 | lib/rley/ptree/non_terminal_node.rb |