diff --git a/dist/doc-parser.js b/dist/doc-parser.js index da317da..9e7ea45 100644 --- a/dist/doc-parser.js +++ b/dist/doc-parser.js @@ -1,6 +1,6 @@ -/*! doc-parser - BSD3 License - 2017-03-12 */ +/*! doc-parser - BSD3 License - 2019-02-16 */ -require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o","$","-","."],lexerWhiteSpace=[" ","\t","\r","\n"];Lexer.prototype.read=function(input){this._input=input,this.line=1,this.offset=0,this.text="",this.token=null,this.backup=null},Lexer.prototype.input=function(){return this.offset-1){if("."===ch&&this.offset47&&nCh<58)return this.readNumber()}return":"===ch?ch="=>":"="===ch&&this.offset"===this._input[this.offset]&&(ch+=this.input()),ch}if(lexerWhiteSpace.indexOf(ch)>-1){for(ch=this.input();lexerWhiteSpace.indexOf(ch)>-1;)ch=this.input();return null!==ch&&this.unput(),this._t.T_WHITESPACE}var isNumber=this.readNumber();if(isNumber)return isNumber;do if(ch=this.input(),lexerSymbols.indexOf(ch)>-1||lexerWhiteSpace.indexOf(ch)>-1){this.unput();break}while(this.offset47&&ch<58){for(var isFloat=46===ch;46===ch||ch>47&&ch<58;)if(ch=this.input(),null!==ch&&(ch=ch.charCodeAt(0)),46===ch){if(isFloat)break;isFloat=!0}return null!==ch&&this.unput(),this._t.T_NUM; -}return null},module.exports=Lexer},{}],2:[function(require,module,exports){"use strict";var extend=function(a,b){if(a){if(Array.isArray(b)){for(var i=0;i"!==this.token||(this.token=this.lexer.lex(),item={kind:"key",name:this.getJsonValue(item),value:this.parseTopStatement()}),result.push(item)),","===this.token&&(this.token=this.lexer.lex());while(")"!==this.token&&this.token!==this.lexer._t.T_EOF);return")"===this.token&&(this.token=this.lexer.lex()),result},Parser.prototype.parseGrammar=function(name){for(var result={kind:name},rules=this.grammar[name],i=0;i")},null===result.parameters)return null;break}break}result.name+="\\",this.token=this.lexer.lex()}return result},Parser.prototype.parseListOfTypes=function(charEnd){var result=[];if(this.token=this.lexer.lex(), -this.token===charEnd)this.token=this.lexer.lex();else{var indexType=this.parseType();if(null!==indexType)for(result.push(indexType);","===this.token;)this.token=this.lexer.lex(),indexType=this.parseType(),null!==indexType&&result.push(indexType);this.token===charEnd&&(this.token=this.lexer.lex())}return result},Parser.prototype.parseVarName=function(){if("$"===this.token&&(this.token=this.lexer.lex(),this.token===this.lexer._t.T_STRING)){var result=this.lexer.text;return this.token=this.lexer.lex(),result}return null},Parser.prototype.parseText=function(){if(this.token!==this.lexer._t.T_STRING)return null;for(var ch=this.lexer.input();null!==ch&&"\r"!==ch&&"\n"!==ch&&"\r\n"!==ch;)ch=this.lexer.input();var input=this.lexer.text.trim();return this.token=this.lexer.lex(),input},Parser.prototype.parseVersion=function(){var version={major:0,minor:0,patch:0,label:null};if(this.token!==this.lexer._t.T_NUM)return null;var v=this.lexer.text;return this.token=this.lexer.lex(),this.token===this.lexer._t.T_NUM&&(v+=this.lexer.text, -this.token=this.lexer.lex()),"-"===this.token&&(this.token=this.lexer.lex(),this.token===this.lexer._t.T_STRING&&(version.label=this.lexer.text,this.token=this.lexer.lex(),this.token===this.lexer._t.T_NUM&&(version.label+=this.lexer.text,this.token=this.lexer.lex()))),v=v.split("."),version.major=parseInt(v[0],10),v.length>1&&(version.minor=parseInt(v[1],10),v.length>2&&(version.patch=parseInt(v[2],10))),version},Parser.prototype.parseArray=function(){return"["===this.token?this.readArray("]"):"array"===this.lexer.text.toLowerCase()&&(this.token=this.lexer.lex(),"("===this.token)?this.readArray(")"):null},Parser.prototype.parseObject=function(){return"{"===this.token?this.readJson():null},Parser.prototype.parseBoolean=function(){if(this.token===this.lexer._t.T_STRING){var word=this.lexer.text.toLowerCase();if(this.token=this.lexer.lex(),"true"===word)return!0;if("false"===word)return!1}return null},Parser.prototype.parseNumber=function(){if(this.token===this.lexer._t.T_NUM){var word=this.lexer.text;return this.token=this.lexer.lex(), -parseFloat(word)}return null},Parser.prototype.parseString=function(){if(this.token===this.lexer._t.T_TEXT){var text=this.lexer.text.substring(1,this.lexer.text.length-1);return this.token=this.lexer.lex(),text}return null},Parser.prototype.parseStatement=function(){var word=this.lexer.text.toLowerCase();if("true"===word)return this.token=this.lexer.lex(),{kind:"boolean",value:!0};if("false"===word)return this.token=this.lexer.lex(),{kind:"boolean",value:!1};if("null"===word)return this.token=this.lexer.lex(),{kind:"null"};if("array"===word)return this.token=this.lexer.lex(),"("===this.token?{kind:"array",value:this.readArray(")")}:{kind:"word",value:this.lexer.backup.text};var name=this.lexer.text;return this.token=this.lexer.lex(),"="===this.token||"=>"===this.token?(this.token=this.lexer.lex(),{kind:"key",name:name,value:this.getJsonValue(this.parseTopStatement())}):"("===this.token?(this.token=this.lexer.lex(),{kind:"method",name:name,arguments:this.parseMethodArguments()}):{kind:"word",value:name}},Parser.prototype.readArray=function(endChar){ -var result=[];this.token=this.lexer.lex();do{var item=this.parseTopStatement();if(null!==item){if(item=this.getJsonValue(item),result.push(item),","!==this.token)break;this.token=this.lexer.lex()}}while(this.token!==endChar&&this.token!==this.lexer._t.T_EOF);return this.token===endChar&&(this.token=this.lexer.lex()),result},Parser.prototype.readJson=function(){var result={};this.token=this.lexer.lex();do{var item=this.parseTopStatement();if(null!==item){if("key"===item.kind?result[item.name]=item.value:"=>"===this.token&&(item=this.getJsonKey(item),null!==item&&(this.token=this.lexer.lex(),result[item]=this.getJsonValue(this.parseTopStatement()))),","!==this.token)break;this.token=this.lexer.lex()}}while("}"!==this.token&&this.token!==this.lexer._t.T_EOF);return"}"===this.token&&(this.token=this.lexer.lex()),result},Parser.prototype.getJsonValue=function(ast){if(!ast)return null;var result=this.getJsonKey(ast);return null===result&&("object"===ast.kind?result=ast.value:"array"===ast.kind?(result=[],ast.value.forEach(function(item){ -result.push(this.getJsonValue(item))}.bind(this))):result=ast),result},Parser.prototype.getJsonKey=function(ast){var result=null;if("text"===ast.kind){result=ast.value.substring(1,ast.value.length-1);try{result=JSON.parse('"'+result+'"')}catch(err){}}else"number"===ast.kind?result=JSON.parse(ast.value):"word"!==ast.kind&&"boolean"!==ast.kind||(result=ast.value);return result},module.exports=Parser},{}],3:[function(require,module,exports){"use strict";module.exports={T_EOF:1,T_WHITESPACE:2,T_TEXT:3,T_STRING:4,T_NUM:5}},{}],"docblock-parser":[function(require,module,exports){"use strict";var token=require("./token"),Lexer=require("./lexer"),Parser=require("./parser"),API=function(grammar){this.token=token,this.lexer=new Lexer(this.token),this.parser=new Parser(this.lexer,grammar)};API.prototype.parse=function(input){return this.parser.parse(input)},module.exports=API},{"./lexer":1,"./parser":2,"./token":3}]},{},[]); +require=function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){return o(e[i][1][r]||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i","$","-","."],lexerWhiteSpace=[" ","\t","\r","\n"];Lexer.prototype.read=function(input){this._input=input,this.line=1,this.offset=0,this.text="",this.token=null,this.backup=null},Lexer.prototype.input=function(){return this.offset-1){if("."===ch&&this.offset47&&nCh<58)return this.readNumber()}return":"===ch?ch="=>":"="===ch&&this.offset"===this._input[this.offset]&&(ch+=this.input()),ch}if(lexerWhiteSpace.indexOf(ch)>-1){for(ch=this.input();lexerWhiteSpace.indexOf(ch)>-1;)ch=this.input();return null!==ch&&this.unput(),this._t.T_WHITESPACE}var isNumber=this.readNumber();if(isNumber)return isNumber;do{if(ch=this.input(),lexerSymbols.indexOf(ch)>-1||lexerWhiteSpace.indexOf(ch)>-1){this.unput();break}}while(this.offset47&&ch<58){for(var isFloat=46===ch;46===ch||ch>47&&ch<58;)if(ch=this.input(), +null!==ch&&(ch=ch.charCodeAt(0)),46===ch){if(isFloat)break;isFloat=!0}return null!==ch&&this.unput(),this._t.T_NUM}return null},module.exports=Lexer},{}],2:[function(require,module,exports){"use strict";var extend=function(a,b){if(a){if(Array.isArray(b)){for(var i=0;i"!==this.token||(this.token=this.lexer.lex(),item={kind:"key",name:this.getJsonValue(item), +value:this.parseTopStatement()}),result.push(item)),","===this.token&&(this.token=this.lexer.lex())}while(")"!==this.token&&this.token!==this.lexer._t.T_EOF);return")"===this.token&&(this.token=this.lexer.lex()),result},Parser.prototype.parseGrammar=function(name){for(var result={kind:name},rules=this.grammar[name],i=0;i")},null===result.parameters)return null;break}break}result.name+="\\",this.token=this.lexer.lex()}return result},Parser.prototype.parseListOfTypes=function(charEnd){var result=[];if(this.token=this.lexer.lex(),this.token===charEnd)this.token=this.lexer.lex();else{var indexType=this.parseType();if(null!==indexType)for(result.push(indexType);","===this.token;)this.token=this.lexer.lex(),null!==(indexType=this.parseType())&&result.push(indexType);this.token===charEnd&&(this.token=this.lexer.lex())}return result},Parser.prototype.parseVarName=function(){if("$"===this.token&&(this.token=this.lexer.lex(),this.token===this.lexer._t.T_STRING)){var result=this.lexer.text;return this.token=this.lexer.lex(),result}return null},Parser.prototype.parseText=function(){ +if(this.token!==this.lexer._t.T_STRING)return null;for(var ch=this.lexer.input();null!==ch&&"\r"!==ch&&"\n"!==ch&&"\r\n"!==ch;)ch=this.lexer.input();var input=this.lexer.text.trim();return this.token=this.lexer.lex(),input},Parser.prototype.parseVersion=function(){var version={major:0,minor:0,patch:0,label:null};if(this.token!==this.lexer._t.T_NUM)return null;var v=this.lexer.text;return this.token=this.lexer.lex(),this.token===this.lexer._t.T_NUM&&(v+=this.lexer.text,this.token=this.lexer.lex()),"-"===this.token&&(this.token=this.lexer.lex(),this.token===this.lexer._t.T_STRING&&(version.label=this.lexer.text,this.token=this.lexer.lex(),this.token===this.lexer._t.T_NUM&&(version.label+=this.lexer.text,this.token=this.lexer.lex()))),v=v.split("."),version.major=parseInt(v[0],10),v.length>1&&(version.minor=parseInt(v[1],10),v.length>2&&(version.patch=parseInt(v[2],10))),version},Parser.prototype.parseArray=function(){ +return"["===this.token?this.readArray("]"):"array"===this.lexer.text.toLowerCase()&&(this.token=this.lexer.lex(),"("===this.token)?this.readArray(")"):null},Parser.prototype.parseObject=function(){return"{"===this.token?this.readJson():null},Parser.prototype.parseBoolean=function(){if(this.token===this.lexer._t.T_STRING){var word=this.lexer.text.toLowerCase();if(this.token=this.lexer.lex(),"true"===word)return!0;if("false"===word)return!1}return null},Parser.prototype.parseNumber=function(){if(this.token===this.lexer._t.T_NUM){var word=this.lexer.text;return this.token=this.lexer.lex(),parseFloat(word)}return null},Parser.prototype.parseString=function(){if(this.token===this.lexer._t.T_TEXT){var text=this.lexer.text.substring(1,this.lexer.text.length-1);return this.token=this.lexer.lex(),text}return null},Parser.prototype.parseStatement=function(){var word=this.lexer.text.toLowerCase();if("true"===word)return this.token=this.lexer.lex(),{kind:"boolean",value:!0} +;if("false"===word)return this.token=this.lexer.lex(),{kind:"boolean",value:!1};if("null"===word)return this.token=this.lexer.lex(),{kind:"null"};if("array"===word)return this.token=this.lexer.lex(),"("===this.token?{kind:"array",value:this.readArray(")")}:{kind:"word",value:this.lexer.backup.text};var name=this.lexer.text;return this.token=this.lexer.lex(),"="===this.token||"=>"===this.token?(this.token=this.lexer.lex(),{kind:"key",name:name,value:this.getJsonValue(this.parseTopStatement())}):"("===this.token?(this.token=this.lexer.lex(),{kind:"method",name:name,arguments:this.parseMethodArguments()}):{kind:"word",value:name}},Parser.prototype.readArray=function(endChar){var result=[];if(this.token=this.lexer.lex(),this.token===endChar)return this.token=this.lexer.lex(),result;do{var item=this.parseTopStatement();if(null!==item){if(item=this.getJsonValue(item),result.push(item),","!==this.token)break;this.token=this.lexer.lex()}}while(this.token!==endChar&&this.token!==this.lexer._t.T_EOF) +;return this.token===endChar&&(this.token=this.lexer.lex()),result},Parser.prototype.readJson=function(){var result={};this.token=this.lexer.lex();do{var item=this.parseTopStatement();if(null!==item){if("key"===item.kind?result[item.name]=item.value:"=>"===this.token&&null!==(item=this.getJsonKey(item))&&(this.token=this.lexer.lex(),result[item]=this.getJsonValue(this.parseTopStatement())),","!==this.token)break;this.token=this.lexer.lex()}}while("}"!==this.token&&this.token!==this.lexer._t.T_EOF);return"}"===this.token&&(this.token=this.lexer.lex()),result},Parser.prototype.getJsonValue=function(ast){if(!ast)return null;var result=this.getJsonKey(ast);return null===result&&("object"===ast.kind?result=ast.value:"array"===ast.kind?(result=[],ast.value.forEach(function(item){result.push(this.getJsonValue(item))}.bind(this))):result=ast),result},Parser.prototype.getJsonKey=function(ast){var result=null;if("text"===ast.kind){result=ast.value.substring(1,ast.value.length-1);try{result=JSON.parse('"'+result+'"') +}catch(err){}}else"number"===ast.kind?result=JSON.parse(ast.value):"word"!==ast.kind&&"boolean"!==ast.kind||(result=ast.value);return result},module.exports=Parser},{}],3:[function(require,module,exports){"use strict";module.exports={T_EOF:1,T_WHITESPACE:2,T_TEXT:3,T_STRING:4,T_NUM:5}},{}],"doc-parser":[function(require,module,exports){"use strict";var token=require("./token"),Lexer=require("./lexer"),Parser=require("./parser"),API=function(grammar){this.token=token,this.lexer=new Lexer(this.token),this.parser=new Parser(this.lexer,grammar)};API.prototype.parse=function(input){return this.parser.parse(input)},module.exports=API},{"./lexer":1,"./parser":2,"./token":3}]},{},[]); //# sourceMappingURL=doc-parser.min.js.map \ No newline at end of file diff --git a/dist/doc-parser.min.js.map b/dist/doc-parser.min.js.map index 0f35a08..253e6dd 100644 --- a/dist/doc-parser.min.js.map +++ b/dist/doc-parser.min.js.map @@ -1 +1 @@ -{"version":3,"sources":["doc-parser.js"],"names":["require","e","t","n","r","s","o","u","a","i","f","Error","code","l","exports","call","length","1","module","Lexer","tokens","this","_t","lexerSymbols","lexerWhiteSpace","prototype","read","input","_input","line","offset","text","token","backup","ch","unput","substring","after","unlex","state","lex","next","T_WHITESPACE","T_EOF","tKey","T_TEXT","indexOf","nCh","charCodeAt","readNumber","isNumber","T_STRING","isFloat","T_NUM","2","extend","b","Array","isArray","Object","getOwnPropertyNames","forEach","key","docSplit","Parser","lexer","grammar","parsers","type","parseType","variable","parseVarName","parseText","version","parseVersion","array","parseArray","object","parseObject","boolean","parseBoolean","number","parseNumber","string","parseString","param","property","parser","optional","default","return","throws","deprecated","major","minor","patch","label","extendGrammar","parse","ast","kind","summary","body","join","split","lines","push","trim","node","parseTopStatement","value","parseStatement","parseFloat","readArray","readJson","parseAnnotation","result","item","toLowerCase","parseGrammar","name","arguments","parseMethodArguments","options","getJsonValue","rules","rule","parseRule","apply","fqn","index","parseListOfTypes","class","parameters","charEnd","indexType","v","parseInt","word","endChar","getJsonKey","bind","JSON","err","3","docblock-parser","API","./lexer","./parser","./token"],"mappings":"AAEAA,QAAQ,QAAUC,GAAEC,EAAEC,EAAEC,GAAG,QAASC,GAAEC,EAAEC,GAAG,IAAIJ,EAAEG,GAAG,CAAC,IAAIJ,EAAEI,GAAG,CAAC,GAAIE,GAAkB,kBAATR,UAAqBA,OAAQ,KAAIO,GAAGC,EAAE,MAAOA,GAAEF,GAAE,EAAI,IAAGG,EAAE,MAAOA,GAAEH,GAAE,EAAI,IAAII,GAAE,GAAIC,OAAM,uBAAuBL,EAAE,IAAK,MAAMI,GAAEE,KAAK,mBAAmBF,EAAE,GAAIG,GAAEV,EAAEG,IAAIQ,WAAYZ,GAAEI,GAAG,GAAGS,KAAKF,EAAEC,QAAQ,SAASb,GAAG,GAAIE,GAAED,EAAEI,GAAG,GAAGL,EAAG,OAAOI,GAAEF,EAAEA,EAAEF,IAAIY,EAAEA,EAAEC,QAAQb,EAAEC,EAAEC,EAAEC,GAAG,MAAOD,GAAEG,GAAGQ,QAAkD,IAAI,GAA1CL,GAAkB,kBAATT,UAAqBA,QAAgBM,EAAE,EAAEA,EAAEF,EAA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L6B,MAAO,EACPD,aAAc,EACdG,OAAQ,EACRM,SAAU,EACVE,MAAO,QAGH4F,mBAAmB,SAASjJ,QAAQkB,OAAOJ,SAMjD,YAEA,IAAIkB,OAAQhC,QAAQ,WAChBmB,MAAQnB,QAAQ,WAChBgE,OAAShE,QAAQ,YAQjBkJ,IAAM,SAAUhF,SAClB7C,KAAKW,MAAQA,MACbX,KAAK4C,MAAQ,GAAI9C,OAAME,KAAKW,OAC5BX,KAAKkE,OAAS,GAAIvB,QAAO3C,KAAK4C,MAAOC,SAOvCgF,KAAIzH,UAAUyE,MAAQ,SAAUvE,OAC9B,MAAON,MAAKkE,OAAOW,MAAMvE,QAG3BT,OAAOJ,QAAUoI,MAEdC,UAAU,EAAEC,WAAW,EAAEC,UAAU","file":"doc-parser.min.js"} \ No newline at end of file +{"version":3,"sources":["doc-parser.js"],"names":["require","r","e","n","t","o","i","f","c","u","a","Error","code","p","exports","call","length","1","module","Lexer","tokens","this","_t","lexerSymbols","lexerWhiteSpace","prototype","read","input","_input","line","offset","text","token","backup","ch","unput","substring","after","unlex","state","lex","next","T_WHITESPACE","T_EOF","tKey","T_TEXT","indexOf","nCh","charCodeAt","readNumber","isNumber","T_STRING","isFloat","T_NUM","2","extend","b","Array","isArray","Object","getOwnPropertyNames","forEach","key","docSplit","Parser","lexer","grammar","parsers","type","parseType","variable","parseVarName","parseText","version","parseVersion","array","parseArray","object","parseObject","boolean","parseBoolean","number","parseNumber","string","parseString","param","property","parser","optional","default","return","throws","deprecated","major","minor","patch","label","extendGrammar","parse","ast","kind","summary","body","join","split","lines","push","trim","node","parseTopStatement","value","parseStatement","parseFloat","readArray","readJson","parseAnnotation","result","item","toLowerCase","parseGrammar","name","arguments","parseMethodArguments","options","getJsonValue","rules","rule","parseRule","apply","fqn","index","parseListOfTypes","class","parameters","charEnd","indexType","v","parseInt","word","endChar","getJsonKey","bind","JSON","err","3","doc-parser","API","./lexer","./parser","./token"],"mappings":"AAEAA,QAAQ,WAAY,QAASC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EAAEC,UAAU","file":"doc-parser.min.js"} \ No newline at end of file diff --git a/docs/README.md b/docs/README.md index a9d1a97..74066cd 100644 --- a/docs/README.md +++ b/docs/README.md @@ -8,7 +8,7 @@ **Properties** -- `token` **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)** +- `token` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** - `lexer` **Lexer** - `parser` **Parser** @@ -20,4 +20,4 @@ Parsing the specified input - `input` -Returns **[Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)** AST +Returns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)** AST diff --git a/docs/lexer.md b/docs/lexer.md index f1588a4..1fcb902 100644 --- a/docs/lexer.md +++ b/docs/lexer.md @@ -1,61 +1 @@ - -## Lexer - -**Parameters** - -- `tokens` - -**Properties** - -- `text` **[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** Current parsed text (attached to current token) -- `offset` **[Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** Current offset -- `token` **([String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) \| [Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number))** Current parsed token - -### read - -Initialize the lexer with specified text - -**Parameters** - -- `input` - -### input - -Consumes a char - -Returns **[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** - -### unput - -Revert back the current consumed char - -Returns **void** - -### unlex - -Revert back the current consumed token - -**Parameters** - -- `state` - -Returns **([String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) \| [Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number))** the previous token - -### state - -Revert back the current consumed token - -Returns **([String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) \| [Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number))** the previous token - -### lex - -Consumes the next token (ignores whitespaces) - -Returns **([String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) \| [Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number))** the current token - -### next - -Eats a token (see lex for public usage) including whitespace - -Returns **([String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) \| [Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number))** the current token diff --git a/docs/parser.md b/docs/parser.md index 58fd811..79ae1cd 100644 --- a/docs/parser.md +++ b/docs/parser.md @@ -27,7 +27,7 @@ Parses the specified input - `input` -Returns **[Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)** AST +Returns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)** AST ### parseAnnotation diff --git a/package.json b/package.json index 3519dbd..b93c03d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "doc-parser", - "version": "0.4.8", + "version": "0.4.9", "description": "Parses docblocks comments", "main": "src/index.js", "scripts": {