Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/flo-bit/shapecraft. flo-bit.dev/shapecraft
Something went wrong. Try again.
502 B · 28 lines
at commit da69385e
1234567891011121314151617181920212223242526272829'use strict';
// '/' | '*' | ',' | ':' | '+' | '-'const name = 'Operator';const structure = { value: String};
function parse() { const start = this.tokenStart;
this.next();
return { type: 'Operator', loc: this.getLocation(start, this.tokenStart), value: this.substrToCursor(start) };}
function generate(node) { this.tokenize(node.value);}
exports.generate = generate;exports.name = name;exports.parse = parse;exports.structure = structure;