@leankylin-sheet/formula-parser 4.0.0 → 4.0.1
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/dist/index.esm.js +8 -2
- package/dist/index.js +8 -2
- package/dist/parser.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1835,7 +1835,9 @@ var lexer = function () {
|
|
|
1835
1835
|
return 5;
|
|
1836
1836
|
}
|
|
1837
1837
|
},
|
|
1838
|
-
rules: [/^(?:\s+)/, /^(?:"(\\["]|[^"])*")/, /^(?:'(\\[']|[^'])*'[^'!])/, /^(?:[A-Za-z]{1,}[A-Za-z_0-9\.]+(?=[(]))/, /^(?:#[A-Z0-9\/]+(!|\?)?)/, ABSOLUTE_CELL, MIXED_CELL_COL, MIXED_CELL_ROW, RELATIVE_CELL, /^(?:[A-Za-z\.]+(?=[(]))/, /^(?:[A-Za-z]{1,}[A-Za-z_0-9]+)/,
|
|
1838
|
+
rules: [/^(?:\s+)/, /^(?:"(\\["]|[^"])*")/, /^(?:'(\\[']|[^'])*'[^'!])/, /^(?:[A-Za-z]{1,}[A-Za-z_0-9\.]+(?=[(]))/, /^(?:#[A-Z0-9\/]+(!|\?)?)/, ABSOLUTE_CELL, MIXED_CELL_COL, MIXED_CELL_ROW, RELATIVE_CELL, /^(?:[A-Za-z\.]+(?=[(]))/, /^(?:[A-Za-z]{1,}[A-Za-z_0-9]+)/,
|
|
1839
|
+
// /^(?:[A-Za-z_]+)/,
|
|
1840
|
+
/^(?:\{\{[^{}}]+\}\})/, /^(?:[0-9]+)/, /^(?:\[(.*)?\])/, /^(?:&)/, /^(?: )/, /^(?:[.])/, /^(?::)/, /^(?:;)/, /^(?:,)/, /^(?:\*)/, /^(?:\/)/, /^(?:-)/, /^(?:\+)/, /^(?:\^)/, /^(?:\()/, /^(?:\))/, /^(?:>)/, /^(?:<)/, /^(?:NOT\b)/, /^(?:")/, /^(?:')/, /^(?:!)/, /^(?:=)/, /^(?:%)/, /^(?:[#])/, /^(?:$)/],
|
|
1839
1841
|
conditions: {
|
|
1840
1842
|
INITIAL: {
|
|
1841
1843
|
rules: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36],
|
|
@@ -2067,7 +2069,11 @@ var Parser$1 = /*#__PURE__*/function (_Emitter) {
|
|
|
2067
2069
|
this.variables[name] = value;
|
|
2068
2070
|
return this;
|
|
2069
2071
|
}
|
|
2070
|
-
|
|
2072
|
+
}, {
|
|
2073
|
+
key: "replaceVariables",
|
|
2074
|
+
value: function replaceVariables(variables) {
|
|
2075
|
+
this.variables = variables;
|
|
2076
|
+
}
|
|
2071
2077
|
/**
|
|
2072
2078
|
* Get variable name.
|
|
2073
2079
|
*
|
package/dist/index.js
CHANGED
|
@@ -1864,7 +1864,9 @@ var lexer = function () {
|
|
|
1864
1864
|
return 5;
|
|
1865
1865
|
}
|
|
1866
1866
|
},
|
|
1867
|
-
rules: [/^(?:\s+)/, /^(?:"(\\["]|[^"])*")/, /^(?:'(\\[']|[^'])*'[^'!])/, /^(?:[A-Za-z]{1,}[A-Za-z_0-9\.]+(?=[(]))/, /^(?:#[A-Z0-9\/]+(!|\?)?)/, ABSOLUTE_CELL, MIXED_CELL_COL, MIXED_CELL_ROW, RELATIVE_CELL, /^(?:[A-Za-z\.]+(?=[(]))/, /^(?:[A-Za-z]{1,}[A-Za-z_0-9]+)/,
|
|
1867
|
+
rules: [/^(?:\s+)/, /^(?:"(\\["]|[^"])*")/, /^(?:'(\\[']|[^'])*'[^'!])/, /^(?:[A-Za-z]{1,}[A-Za-z_0-9\.]+(?=[(]))/, /^(?:#[A-Z0-9\/]+(!|\?)?)/, ABSOLUTE_CELL, MIXED_CELL_COL, MIXED_CELL_ROW, RELATIVE_CELL, /^(?:[A-Za-z\.]+(?=[(]))/, /^(?:[A-Za-z]{1,}[A-Za-z_0-9]+)/,
|
|
1868
|
+
// /^(?:[A-Za-z_]+)/,
|
|
1869
|
+
/^(?:\{\{[^{}}]+\}\})/, /^(?:[0-9]+)/, /^(?:\[(.*)?\])/, /^(?:&)/, /^(?: )/, /^(?:[.])/, /^(?::)/, /^(?:;)/, /^(?:,)/, /^(?:\*)/, /^(?:\/)/, /^(?:-)/, /^(?:\+)/, /^(?:\^)/, /^(?:\()/, /^(?:\))/, /^(?:>)/, /^(?:<)/, /^(?:NOT\b)/, /^(?:")/, /^(?:')/, /^(?:!)/, /^(?:=)/, /^(?:%)/, /^(?:[#])/, /^(?:$)/],
|
|
1868
1870
|
conditions: {
|
|
1869
1871
|
INITIAL: {
|
|
1870
1872
|
rules: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36],
|
|
@@ -2096,7 +2098,11 @@ var Parser$1 = /*#__PURE__*/function (_Emitter) {
|
|
|
2096
2098
|
this.variables[name] = value;
|
|
2097
2099
|
return this;
|
|
2098
2100
|
}
|
|
2099
|
-
|
|
2101
|
+
}, {
|
|
2102
|
+
key: "replaceVariables",
|
|
2103
|
+
value: function replaceVariables(variables) {
|
|
2104
|
+
this.variables = variables;
|
|
2105
|
+
}
|
|
2100
2106
|
/**
|
|
2101
2107
|
* Get variable name.
|
|
2102
2108
|
*
|
package/dist/parser.d.ts
CHANGED