C# in SmileBASIC
Root / Talk About Programs / [.]
RNGesusCreated:
Yes, someone's totally going to do JIT on SB. If someone does that, well, idk
Its not necessary to do JIT. The real problem is that the syntax of C# is much more complex than SB.
In order to know what the code means, the compiler has to be able to break the source code down into "tokens". In BASIC the parsing doesn't really know what state its in, thats why we have to do things like IF ... THEN... ENDIF.
To parse a more advanced syntax, you have to implement a parsing state machine that can build an abstract syntax tree and traverse it. Which is very difficult in basic.
I've taken a swing at writing an object-oriented language with Lowerdash. Its rough around the edges, but has the same core feature set as JavaScript, with a more BASIC syntax