new KdlParser()
- Source:
Extends
Methods
document() → {module:kdljs~Document}
Consume a KDL document
- Source:
Returns:
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
|
- Overrides:
- Source:
Returns:
- Type
- string
identifier() → {string}
Consume an identifier
- Overrides:
- Source:
Returns:
- Type
- string
lineComment()
Consume a line comment
- Source:
multilineComment()
Consume a multiline comment
- Source:
node() → {module:kdljs~Node}
Consume a KDL node
- Source:
Returns:
- Type
- module:kdljs~Node
nodeChildren() → {module:kdljs~Document}
Consume node children
- Source:
Returns:
nodeSpace()
Consume a node pace
- Source:
nodeTerminator()
Consume a node terminator
- Source:
nodes() → {module:kdljs~Document}
Consume a sequence of KDL nodes
- Source:
Returns:
property() → {Array.<string, module:kdljs~Value>}
Consume a property
- Source:
Returns:
key-value pair
- Type
- Array.<string, module:kdljs~Value>
rawString() → {string}
Consume a raw string
- Overrides:
- Source:
Returns:
- Type
- string
string() → {string}
Consume a normal string
- Overrides:
- Source:
Returns:
- Type
- string
tag() → {string}
Consume a tag
- Overrides:
- Source:
Returns:
- Type
- string
taggedValue() → {module:kdljs~Value}
Consume a tagged value
- Source:
Returns:
- Type
- module:kdljs~Value
value() → {module:kdljs~Value}
Consume a value
- Overrides:
- Source:
Returns:
- Type
- module:kdljs~Value
whiteSpace()
Consume whitespace
- Source: