Parser: Minor JSDoc corrections

This commit is contained in:
TomFrost 2015-03-08 23:44:18 -04:00
Родитель 98991f70ba
Коммит 52135120c1
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -21,8 +21,8 @@ var e = require('../Grammar').elements,
* expression string thus far can be passed for a more user-friendly * expression string thus far can be passed for a more user-friendly
* error message. * error message.
* @param {{}} [stopMap] A mapping of token types to any truthy value. When the * @param {{}} [stopMap] A mapping of token types to any truthy value. When the
* token type is encountered with a zero balance, the parser will be * token type is encountered, the parser will return the mapped value
* automatically marked complete. * instead of boolean false.
* @constructor * @constructor
*/ */
function Parser(prefix, stopMap) { function Parser(prefix, stopMap) {
@ -41,7 +41,7 @@ function Parser(prefix, stopMap) {
* @throws {Error} if a token is added when the Parser has been marked as * @throws {Error} if a token is added when the Parser has been marked as
* complete by {@link #complete}, or if an unexpected token type is added. * complete by {@link #complete}, or if an unexpected token type is added.
* @returns {boolean|*} the stopState value if this parser encountered a token * @returns {boolean|*} the stopState value if this parser encountered a token
* in the stopState map with a truthy value; false if tokens can continue. * in the stopState mapb; false if tokens can continue.
*/ */
Parser.prototype.addToken = function(token) { Parser.prototype.addToken = function(token) {
if (this._state == 'complete') if (this._state == 'complete')