@fileverse-dev/formula-parser 0.2.13-mod-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +261 -0
- package/es/error.js +45 -0
- package/es/evaluate-by-operator/evaluate-by-operator.js +70 -0
- package/es/evaluate-by-operator/operator/add.js +16 -0
- package/es/evaluate-by-operator/operator/ampersand.js +10 -0
- package/es/evaluate-by-operator/operator/divide.js +21 -0
- package/es/evaluate-by-operator/operator/equal.js +5 -0
- package/es/evaluate-by-operator/operator/formula-function.js +40 -0
- package/es/evaluate-by-operator/operator/greater-than-or-equal.js +5 -0
- package/es/evaluate-by-operator/operator/greater-than.js +5 -0
- package/es/evaluate-by-operator/operator/less-than-or-equal.js +5 -0
- package/es/evaluate-by-operator/operator/less-than.js +5 -0
- package/es/evaluate-by-operator/operator/minus.js +16 -0
- package/es/evaluate-by-operator/operator/multiply.js +16 -0
- package/es/evaluate-by-operator/operator/not-equal.js +5 -0
- package/es/evaluate-by-operator/operator/power.js +11 -0
- package/es/grammar-parser/grammar-parser.jison +230 -0
- package/es/grammar-parser/grammar-parser.js +1522 -0
- package/es/helper/cell.js +117 -0
- package/es/helper/number.js +25 -0
- package/es/helper/string.js +13 -0
- package/es/index.js +5 -0
- package/es/parser.js +306 -0
- package/es/supported-formulas.js +3 -0
- package/lib/error.js +53 -0
- package/lib/evaluate-by-operator/evaluate-by-operator.js +77 -0
- package/lib/evaluate-by-operator/operator/add.js +23 -0
- package/lib/evaluate-by-operator/operator/ampersand.js +17 -0
- package/lib/evaluate-by-operator/operator/divide.js +28 -0
- package/lib/evaluate-by-operator/operator/equal.js +12 -0
- package/lib/evaluate-by-operator/operator/formula-function.js +50 -0
- package/lib/evaluate-by-operator/operator/greater-than-or-equal.js +12 -0
- package/lib/evaluate-by-operator/operator/greater-than.js +12 -0
- package/lib/evaluate-by-operator/operator/less-than-or-equal.js +12 -0
- package/lib/evaluate-by-operator/operator/less-than.js +12 -0
- package/lib/evaluate-by-operator/operator/minus.js +23 -0
- package/lib/evaluate-by-operator/operator/multiply.js +23 -0
- package/lib/evaluate-by-operator/operator/not-equal.js +12 -0
- package/lib/evaluate-by-operator/operator/power.js +18 -0
- package/lib/grammar-parser/grammar-parser.jison +230 -0
- package/lib/grammar-parser/grammar-parser.js +1528 -0
- package/lib/helper/cell.js +128 -0
- package/lib/helper/number.js +32 -0
- package/lib/helper/string.js +19 -0
- package/lib/index.js +114 -0
- package/lib/parser.js +313 -0
- package/lib/supported-formulas.js +11 -0
- package/package.json +73 -0
package/package.json
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@fileverse-dev/formula-parser",
|
|
3
|
+
"version": "0.2.13-mod-0",
|
|
4
|
+
"description": "Formula parser",
|
|
5
|
+
"main": "lib/index.js",
|
|
6
|
+
"module": "es/index.js",
|
|
7
|
+
"files": [
|
|
8
|
+
"es",
|
|
9
|
+
"lib"
|
|
10
|
+
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"clean": "rimraf tmp coverage",
|
|
13
|
+
"lint": "eslint src test",
|
|
14
|
+
"check": "npm run lint && npm run test",
|
|
15
|
+
"test": "cross-env BABEL_ENV=commonjs jest",
|
|
16
|
+
"coverage": "cross-env BABEL_ENV=commonjs jest --coverage",
|
|
17
|
+
"build": "father-build",
|
|
18
|
+
"generate-parser": "cd src/grammar-parser && jison-es -m es grammar-parser.jison",
|
|
19
|
+
"release": "generate-release"
|
|
20
|
+
},
|
|
21
|
+
"keywords": [
|
|
22
|
+
"formula",
|
|
23
|
+
"formulas",
|
|
24
|
+
"parser",
|
|
25
|
+
"formula-parser",
|
|
26
|
+
"excel",
|
|
27
|
+
"spreadsheet"
|
|
28
|
+
],
|
|
29
|
+
"author": "Handsoncode <hello@handsontable.com>",
|
|
30
|
+
"license": "MIT",
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@babel/cli": "^7.12.10",
|
|
33
|
+
"@babel/core": "^7.12.10",
|
|
34
|
+
"@babel/preset-env": "^7.12.10",
|
|
35
|
+
"babel-eslint": "^10.1.0",
|
|
36
|
+
"babel-loader": "^8.2.2",
|
|
37
|
+
"cross-env": "^5.2.0",
|
|
38
|
+
"eslint": "^8.31.0",
|
|
39
|
+
"eslint-config-airbnb-base": "^11.2.0",
|
|
40
|
+
"eslint-plugin-import": "^2.14.0",
|
|
41
|
+
"fs-extra": "^9.0.1",
|
|
42
|
+
"generate-release": "^1.1.1",
|
|
43
|
+
"jest": "^26.6.3",
|
|
44
|
+
"jest-cli": "^29.3.1",
|
|
45
|
+
"jison-es": "^0.4.18",
|
|
46
|
+
"rimraf": "^3.0.2",
|
|
47
|
+
"webpack": "^4.44.2",
|
|
48
|
+
"webpack-cli": "^4.2.0"
|
|
49
|
+
},
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"@fileverse-dev/formulajs": "^4.4.11-mod-0",
|
|
52
|
+
"tiny-emitter": "^2.1.0"
|
|
53
|
+
},
|
|
54
|
+
"jest": {
|
|
55
|
+
"setupFilesAfterEnv": [
|
|
56
|
+
"./test/index.js"
|
|
57
|
+
],
|
|
58
|
+
"testPathIgnorePatterns": [
|
|
59
|
+
"./test/index.js"
|
|
60
|
+
],
|
|
61
|
+
"roots": [
|
|
62
|
+
"./test"
|
|
63
|
+
],
|
|
64
|
+
"testRegex": "(test\\/index\\.js|/test/.*.js)$",
|
|
65
|
+
"collectCoverageFrom": [
|
|
66
|
+
"**/*.{js}",
|
|
67
|
+
"!src/grammar-parser/**"
|
|
68
|
+
]
|
|
69
|
+
},
|
|
70
|
+
"publishConfig": {
|
|
71
|
+
"access": "public"
|
|
72
|
+
}
|
|
73
|
+
}
|