You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
part of the fix is in Sources/Open-Jellycore/Core/Compiler/Core Nodes/Classes/PrimitiveNodes.swift similar to chrysaora-achlyos@d8d68b7
NumberNode init() need self.type = .number
That would fix the problem with var num =0.9 but not with var num = 0
for Integers, the tree-sitter-grammer also needs some rearrangement as in chrysaora-achlyos/tree-sitter-jelly@7e6b32e so strings that are valid numbers are assigned primitive type of number not identifier (With the big NOTE that 0 is a valid shortcuts identifier and semantics are ambiguous Jellycuts/Jellycuts-Issues#144 )
Describe the bug
var num = 0.9
generates a syntax error. This is different from AppStore JellycutsTo Reproduce
Steps to reproduce the behavior:
jelly oj_dURL_post_2.jelly --export --out u_oj_dURL_post_2.shortcut
Variable 0.9 does not exist. Make sure that you have initialized the variable 0.9 Found 1 errors
Expected behavior
File will similar code compiles in AppStore Jellycuts to "# 0.9" action
Information
Additional context
fix may be in tree-sitter-jelly
The text was updated successfully, but these errors were encountered: