rip-lang 3.10.7 → 3.10.9
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/README.md +1 -1
- package/docs/dist/rip-ui.min.js +126 -126
- package/docs/dist/rip-ui.min.js.br +0 -0
- package/docs/dist/rip.browser.min.js +127 -127
- package/docs/dist/rip.browser.min.js.br +0 -0
- package/docs/results/index.html +57 -51
- package/package.json +1 -1
- package/src/browser.js +17 -2
- package/src/components.js +36 -7
- package/src/grammar/grammar.rip +9 -9
- package/src/grammar/lunar.rip +2 -2
- package/src/lexer.js +1 -1
- package/src/parser.js +6 -8
- package/src/types.js +2 -2
package/src/types.js
CHANGED
|
@@ -257,7 +257,7 @@ function collectTypeExpression(tokens, j) {
|
|
|
257
257
|
if (depth === 0) {
|
|
258
258
|
if (tTag === '=' || tTag === 'REACTIVE_ASSIGN' ||
|
|
259
259
|
tTag === 'COMPUTED_ASSIGN' || tTag === 'READONLY_ASSIGN' ||
|
|
260
|
-
tTag === '
|
|
260
|
+
tTag === 'EFFECT' || tTag === 'TERMINATOR' ||
|
|
261
261
|
tTag === 'INDENT' || tTag === 'OUTDENT' ||
|
|
262
262
|
tTag === '->' || tTag === ',') {
|
|
263
263
|
break;
|
|
@@ -874,7 +874,7 @@ export function emitTypes(tokens, sexpr = null) {
|
|
|
874
874
|
} else if (next[0] === 'COMPUTED_ASSIGN') {
|
|
875
875
|
usesComputed = true;
|
|
876
876
|
lines.push(`${indent()}${exp}${declare}const ${varName}: Computed<${type}>;`);
|
|
877
|
-
} else if (next[0] === '
|
|
877
|
+
} else if (next[0] === 'EFFECT') {
|
|
878
878
|
lines.push(`${indent()}${exp}${declare}const ${varName}: () => void;`);
|
|
879
879
|
} else if (next[0] === '=') {
|
|
880
880
|
// Check if RHS is an arrow function with return type
|