class TaskJuggler::TextParser::TokenDoc
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.
Attributes
Public Class Methods
Source
# File lib/taskjuggler/TextParser/TokenDoc.rb, line 27 def initialize(name, arg) @name = name if arg.is_a?(String) @text = arg else @pattern = arg end @typeSpec = nil @pattern = nil end
Construct a ParserTokenDoc object. name and text are Strings that hold the name and textual description of the parser token.