Utility class to store a name and a textual description of the meaning of a token used by the parser syntax tree. A specification of the variable type and a reference to a specific pattern are optional.
Construct a ParserTokenDoc object. name and text are Strings that hold the name and textual description of the parser token.
# File lib/TextParser/TokenDoc.rb, line 25 25: def initialize(name, arg) 26: @name = name 27: if arg.is_a?(String) 28: @text = arg 29: else 30: @pattern = arg 31: end 32: @typeSpec = nil 33: @pattern = nil 34: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.