27 lines
469 B
JavaScript
27 lines
469 B
JavaScript
'use strict';
|
|
|
|
const name = 'Value';
|
|
const structure = {
|
|
children: [[]]
|
|
};
|
|
|
|
function parse() {
|
|
const start = this.tokenStart;
|
|
const children = this.readSequence(this.scope.Value);
|
|
|
|
return {
|
|
type: 'Value',
|
|
loc: this.getLocation(start, this.tokenStart),
|
|
children
|
|
};
|
|
}
|
|
|
|
function generate(node) {
|
|
this.children(node);
|
|
}
|
|
|
|
exports.generate = generate;
|
|
exports.name = name;
|
|
exports.parse = parse;
|
|
exports.structure = structure;
|