Class: Term

Term()

A result of Language#parse()

Constructor

new Term()

This is private constructor.

This is private constructor. The instance is created from Language#parse().

Source:

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
Source:

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:
Source:

error :Error

Contains a parsing error after the Language#parse

.

Contains a parsing error after the Language#parse

Type:
  • Error
Source:

errorToken :Token|null

A token where the parsing error is detected.

A token where the parsing error is detected.

Type:
Source:

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
Source: