You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
444 B

4 years ago
  1. module.exports = {
  2. name: 'Value',
  3. structure: {
  4. children: [[]]
  5. },
  6. parse: function() {
  7. var start = this.scanner.tokenStart;
  8. var children = this.readSequence(this.scope.Value);
  9. return {
  10. type: 'Value',
  11. loc: this.getLocation(start, this.scanner.tokenStart),
  12. children: children
  13. };
  14. },
  15. generate: function(node) {
  16. this.children(node);
  17. }
  18. };