Class regex_parser.TokenInfo
The TokenInfo class holds information about a token from the input stream
Defined in: regex_parser.js.
Constructor Attributes | Constructor Name and Description |
---|---|
regex_parser.TokenInfo(value, offset, converter)
Creates a new instance of TokenInfo
|
Field Attributes | Field Name and Description |
---|---|
The length of this token as it appeared originally in the input stream
|
|
The index of this token in the input stream
|
|
The actual value (possibly converted) of the part matched by this token
|
Class Detail
regex_parser.TokenInfo(value, offset, converter)
Creates a new instance of TokenInfo
- Parameters:
- {String} value
- The value from the input stream
- {Number} offset
- The first index of this token in the input string
- {function} converter
- If defined, this function is called with the value as parameter, and its return value is used as the new value.
Field Detail
{Number}
length
The length of this token as it appeared originally in the input stream
{Number}
offset
The index of this token in the input stream
{String}
value
The actual value (possibly converted) of the part matched by this token