Urara-Blog/node_modules/.pnpm-store/v3/files/e0/744545b6fa2c778d8c7a873a7d0185f27742e5179a88719d6fd23f535cf41a2a3a6f4973c1fb223804fa4163dfd64d888530b6e94898795572a593227e569d
2022-08-14 01:14:53 +08:00

28 lines
502 B
Text

'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;