Constructor
new Term()
This is private constructor.
This is private constructor. The instance is created from Language#parse().
Members
contents :function
A function to get an array of effective tokens evaluated by language definition.
A function to get an array of effective tokens evaluated by language definition. It does not include white spaces.
Type:
- function
elements :Array.<(Token|Term)>|null
Array of all token in this term that is a result of parsing.
Array of all token in this term that is a result of parsing. If it includes white space tokens, the length is not equal to the count of terms in the syntax rule of the language definition.
Type:
error :Error
Contains a parsing error after the Language#parse
.Contains a parsing error after the Language#parse
Type:
- Error
errorToken :Token|null
A token where the parsing error is detected.
A token where the parsing error is detected.
Type:
- Token | null
str :function
A function to get a string joined with all tokens evaluated by language definition.
A function to get a string joined with all tokens evaluated by language definition. It might including white space.
Type:
- function