ELENA-LANG / elena-lang

ELENA is a general-purpose language with late binding. It is multi-paradigm, combining features of functional and object-oriented programming. Rich set of tools are provided to deal with message dispatching : multi-methods, message qualifying, generic message handlers, run-time interfaces
https://elena-lang.github.io/
MIT License
236 stars 26 forks source link

Run ELENA code without build #323

Open bencz opened 7 years ago

bencz commented 7 years ago

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

arakov commented 7 years ago

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

bencz commented 7 years ago

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

arakov commented 7 years ago

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 commented 4 years ago

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

arakov commented 4 years ago

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 commented 4 years ago

@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

bencz commented 4 years ago

:D

arakov commented 4 years ago

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

arakov commented 4 years ago

Closing per previous post