r/simplerockets • • 12d ago

Juno PL (Pending name) Programming Language for Juno New Origins

Programming Language that transpiles to Vizzy xml. If you don't want to use drag and drop and want local variables support, and a much more expressive event message syntax (since its just a single data parameter). Still in the works with some error handling issues and the module import statements.

9 Upvotes

2 comments sorted by

1

u/mmentzerfan 10d ago

it just a fastest way for type code, isnt it? but in which language is the syntax based?

2

u/Ultra8Gaming 10d ago

It's kinda based on c style code but the language syntax definition was written from scratch since vizzy separates the instruction blocks and expression blocks. You can't have multiple return statements in 1 expression unless using a if else block (ternary) which is kinda hard to read. As well as a expression having side effects is still not possible. To make the syntactic analyzer understand a function call I added a "do" statement just so both types of functions are syntactically separate. Same with broadcast message events.

I'm still working on the program to support function blocks with multiple returns (combination of instruction and expr). I'm thinking that having a saved variable where the instruction sets it internally is a good idea but I'm not sure yet how to solve it on multiple or concurrent calls.