@tokens-studio/tokenscript-interpreter 0.36.0 → 0.36.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/chunk-HHCPY4WI.js +6456 -0
- package/dist/chunk-HHCPY4WI.js.map +1 -0
- package/dist/cli.js +6 -2
- package/dist/cli.js.map +1 -1
- package/dist/compliance-suite.js +1 -1
- package/dist/lib/{chunk-ZURBS3EE.cjs → chunk-IQ5YGWZK.cjs} +7 -3
- package/dist/lib/chunk-IQ5YGWZK.cjs.map +1 -0
- package/dist/lib/{chunk-6FR6JBDM.js → chunk-QAHGKPQ4.js} +7 -3
- package/dist/lib/chunk-QAHGKPQ4.js.map +1 -0
- package/dist/lib/index.cjs +50 -50
- package/dist/lib/index.js +1 -1
- package/dist/lib/interpreter.cjs +32 -32
- package/dist/lib/interpreter.js +1 -1
- package/dist/lib/processor-node.cjs +3 -3
- package/dist/lib/processor-node.js +1 -1
- package/dist/lib/processor.cjs +15 -15
- package/dist/lib/processor.js +1 -1
- package/dist/lib/schema.cjs +3 -3
- package/dist/lib/schema.js +1 -1
- package/dist/processor/index.js +1 -1
- package/dist/repl.js +1 -1
- package/package.json +1 -1
- package/dist/lib/chunk-6FR6JBDM.js.map +0 -1
- package/dist/lib/chunk-ZURBS3EE.cjs.map +0 -1
package/dist/compliance-suite.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseSymbolType, InterpreterError, LexerError, ParserError, Lexer, Parser, Config, Interpreter, ColorSymbol, ColorManager, isArray, isObject, NumberWithUnitSymbol } from './chunk-
|
|
1
|
+
import { BaseSymbolType, InterpreterError, LexerError, ParserError, Lexer, Parser, Config, Interpreter, ColorSymbol, ColorManager, isArray, isObject, NumberWithUnitSymbol } from './chunk-HHCPY4WI.js';
|
|
2
2
|
import './chunk-AXH5N7KV.js';
|
|
3
3
|
import fs from 'fs';
|
|
4
4
|
import path from 'path';
|
|
@@ -568,6 +568,9 @@ var _Lexer = class _Lexer {
|
|
|
568
568
|
}
|
|
569
569
|
while (chunkLMGHS2NP_cjs.isNumber2(this.currentChar) || this.currentChar === ".") {
|
|
570
570
|
if (this.currentChar === ".") {
|
|
571
|
+
if (!chunkLMGHS2NP_cjs.isNumber2(this.peek())) {
|
|
572
|
+
break;
|
|
573
|
+
}
|
|
571
574
|
if (hasDecimalPoint) {
|
|
572
575
|
this.error("LEXER_MULTIPLE_DECIMAL_POINTS" /* MULTIPLE_DECIMAL_POINTS */, {
|
|
573
576
|
value: result + this.currentChar
|
|
@@ -1645,11 +1648,12 @@ ${contextText}`;
|
|
|
1645
1648
|
return new ElementWithUnitNode(node, formatToken.value);
|
|
1646
1649
|
}
|
|
1647
1650
|
number() {
|
|
1648
|
-
|
|
1651
|
+
let node = new NumNode(this.currentToken);
|
|
1649
1652
|
this.eat("NUMBER" /* NUMBER */);
|
|
1650
1653
|
if (this.currentToken.type === "FORMAT" /* FORMAT */) {
|
|
1651
1654
|
return this.format(node);
|
|
1652
1655
|
}
|
|
1656
|
+
node = this.attributeAccess(node);
|
|
1653
1657
|
return node;
|
|
1654
1658
|
}
|
|
1655
1659
|
// factor : PLUS factor
|
|
@@ -7303,5 +7307,5 @@ exports.tokenizeTolerantly = tokenizeTolerantly;
|
|
|
7303
7307
|
exports.validateTokenName = validateTokenName;
|
|
7304
7308
|
exports.validateTokenPath = validateTokenPath;
|
|
7305
7309
|
exports.walkAST = walkAST;
|
|
7306
|
-
//# sourceMappingURL=chunk-
|
|
7307
|
-
//# sourceMappingURL=chunk-
|
|
7310
|
+
//# sourceMappingURL=chunk-IQ5YGWZK.cjs.map
|
|
7311
|
+
//# sourceMappingURL=chunk-IQ5YGWZK.cjs.map
|