Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/flo-bit/shapecraft. flo-bit.dev/shapecraft
Something went wrong. Try again.
587 B · 30 lines
at commit da69385e
12345678910111213141516171819202122232425262728293031'use strict';
const types = require('../../tokenizer/types.cjs');
// '#' identconst xxx = 'XXX';const name = 'Hash';const structure = { value: String};function parse() { const start = this.tokenStart;
this.eat(types.Hash);
return { type: 'Hash', loc: this.getLocation(start, this.tokenStart), value: this.substrToCursor(start + 1) };}function generate(node) { this.token(types.Hash, '#' + node.value);}
exports.generate = generate;exports.name = name;exports.parse = parse;exports.structure = structure;exports.xxx = xxx;