Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
482 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | // '/' | '*' | ',' | ':' | '+' | '-'
|
---|
| 2 | module.exports = {
|
---|
| 3 | name: 'Operator',
|
---|
| 4 | structure: {
|
---|
| 5 | value: String
|
---|
| 6 | },
|
---|
| 7 | parse: function() {
|
---|
| 8 | var start = this.scanner.tokenStart;
|
---|
| 9 |
|
---|
| 10 | this.scanner.next();
|
---|
| 11 |
|
---|
| 12 | return {
|
---|
| 13 | type: 'Operator',
|
---|
| 14 | loc: this.getLocation(start, this.scanner.tokenStart),
|
---|
| 15 | value: this.scanner.substrToCursor(start)
|
---|
| 16 | };
|
---|
| 17 | },
|
---|
| 18 | generate: function(node) {
|
---|
| 19 | this.chunk(node.value);
|
---|
| 20 | }
|
---|
| 21 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.