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:
421 bytes
|
Rev | Line | |
---|
[d565449] | 1 | var NUMBER = require('../../tokenizer').TYPE.Number;
|
---|
| 2 |
|
---|
| 3 | module.exports = {
|
---|
| 4 | name: 'Number',
|
---|
| 5 | structure: {
|
---|
| 6 | value: String
|
---|
| 7 | },
|
---|
| 8 | parse: function() {
|
---|
| 9 | return {
|
---|
| 10 | type: 'Number',
|
---|
| 11 | loc: this.getLocation(this.scanner.tokenStart, this.scanner.tokenEnd),
|
---|
| 12 | value: this.consume(NUMBER)
|
---|
| 13 | };
|
---|
| 14 | },
|
---|
| 15 | generate: function(node) {
|
---|
| 16 | this.chunk(node.value);
|
---|
| 17 | }
|
---|
| 18 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.