|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
482 bytes
|
| Line | |
|---|
| 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.