diff --git a/src/parser/read-number.js b/src/parser/read-number.js deleted file mode 100644 index 66891d31..00000000 --- a/src/parser/read-number.js +++ /dev/null @@ -1,32 +0,0 @@ -/** - * Copyright (c) Baidu Inc. All rights reserved. - * - * This source code is licensed under the MIT license. - * See LICENSE file in the project root for license information. - * - * @file 读取数字 - */ - - -var ExprType = require('./expr-type'); -var readUnaryExpr = require('./read-unary-expr'); - -/** - * 读取数字 - * - * @inner - * @param {Walker} walker 源码读取对象 - * @return {Object} - */ -function readNumber(walker) { - var match = walker.match(/\s*([0-9]+(\.[0-9]+)?)/g, 1); - - if (match) { - return { - type: ExprType.NUMBER, - value: +match[1] - }; - } -} - -exports = module.exports = readNumber;