elena-lang icon indicating copy to clipboard operation
elena-lang copied to clipboard

Run ELENA code without build

Open bencz opened this issue 7 years ago • 9 comments

Looking at some other programming languages into web, normally we see ( try online ), for example, the D language has this, kotlin.... So, knowing that the compiler generate a ecode, after build, maybe can be created a "elrun" project, to just execute the code as script language, so, the compiler part of parser do all the parser, the code gen generate the ecode, and execute the ecode ( it is just a mix of evm and elc )

Whit this, probably we can add a "Try online" into Elena language web site

bencz avatar Jun 27 '17 20:06 bencz

It is already possible to execute code without compilation. For example using ELT application. Similar js sample execute the script without actually compiling it

arakov avatar Jun 27 '17 20:06 arakov

I mean, run the "binary.l" program without build it to a executable.

bencz avatar Jun 27 '17 20:06 bencz

All I need is to define an appropriate grammar. I did some work on this and will re-implement it a little bit later - https://github.com/ELENA-LANG/elena-lang/blob/master/bin/scripts/elena.es

arakov avatar Jun 27 '17 20:06 arakov

ELT (ELENA Virtual Machine Terminal) will be used to execute the code without static compilation

arakov avatar Jul 23 '20 08:07 arakov

It will be possible to execute the code in intermediate mode or execute the whole program (e.g. binaray.l) using ELT and ELENAVM

arakov avatar Jul 27 '20 05:07 arakov

@bencz - I can now concentrate only on this. So after a while, ELENA On Rails may become a reality. The second missing part - a web server

arakov avatar Jul 27 '20 14:07 arakov

:D

bencz avatar Jul 30 '20 01:07 bencz

For time being, limited subset of ELENA is supported by ELENA Script. Full support might be implemented in #513 (if ever)

arakov avatar Sep 09 '20 14:09 arakov

Closing per previous post

arakov avatar Sep 09 '20 14:09 arakov