new BaseParser()
- Source:
Methods
formatError(input, error, messageopt, optionsopt) → {string}
Parameters:
Name | Type | Attributes | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
input |
string | Input KDL file (or fragment) |
|||||||||||
error |
Object | ||||||||||||
message |
string |
<optional> |
Override the error message |
||||||||||
options |
Object |
<optional> |
Further configuration Properties
|
- Source:
Returns:
- Type
- string
identifier() → {string}
Consume an identifier
- Source:
Returns:
- Type
- string
rawString() → {string}
Consume a raw string
- Source:
Returns:
- Type
- string
string() → {string}
Consume a normal string
- Source:
Returns:
- Type
- string
tag() → {string}
Consume a tag
- Source:
Returns:
- Type
- string
value() → {module:kdljs~Value}
Consume a value
- Source:
Returns:
- Type
- module:kdljs~Value