main
Last change
on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
482 bytes
|
Rev | Line | |
---|
[d565449] | 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.