Hello Sam !
I forgot to mention your question about the syntax choice with ":: ->", it's due to not clash with
"." and ":" for label, switch, table/json style, ...
I'm open to suggestions about a
better choice !
Cheers !
On 10/12/2018 23:00, Sam Pagenkopf
wrote:
A little confused about these syntax choices, especially
with :: ->
What separates ljs from killa? Why didn't you fork killa
rather than copy-pasting its code?
Hello
!
I'm trying to create an alternative lua/luajit with _javascript_
like syntax:
https://github.com/mingodad/ljs
https://github.com/mingodad/ljsjit
Right now it is lua compatible with a _javascript_ like syntax
with
compound/pre/pos increment opertors and "exp ? exp_true :
exp_false".
It got code and inspiration from:
https://github.com/ex/Killa
https://github.com/sajonoso/jual
and others.
It has a transpiler lua2ljs that can convert most lua to
working ljs.
I'm now trying to add a "switch" statement and after that a
"class"
object/constructor.
I would welcome any contribution/critic/review/idea to improve
it.
Cheers !