- Complete React app with 7 developer tools - JSON Tool with visual structured editor - Serialize Tool with visual structured editor - URL, Base64, CSV/JSON, Beautifier, Diff tools - Responsive navigation with dropdown menu - Dark/light mode toggle - Mobile-responsive design with sticky header - All tools working with copy/paste functionality
21 lines
441 B
JavaScript
21 lines
441 B
JavaScript
var TYPE = require('../../tokenizer').TYPE;
|
|
|
|
var IDENT = TYPE.Ident;
|
|
|
|
module.exports = {
|
|
name: 'Identifier',
|
|
structure: {
|
|
name: String
|
|
},
|
|
parse: function() {
|
|
return {
|
|
type: 'Identifier',
|
|
loc: this.getLocation(this.scanner.tokenStart, this.scanner.tokenEnd),
|
|
name: this.consume(IDENT)
|
|
};
|
|
},
|
|
generate: function(node) {
|
|
this.chunk(node.name);
|
|
}
|
|
};
|