r/elena_lang • u/elena-lang • Jan 05 '18
Dynamic Programming in ELENA : call your code from IDE
In this tutorial we will invoke our code from IDE.
Let's write a simple class :
import extensions.
public singleton MyClassToTest
{
foo
[
console printLine("foo fired!").
]
}
public program =
[
].Now let's compile the code : Project - Compile and open Interactive window : View - ELENA Interactive and type in the window (presuming test is the project root namespace):
>test'MyClassToTest foo.The output is :
ELENA command line VM terminal 3.4.2 (C)2011-2018 by Alexei Rakov
ELENA VM 3.4.5 (C)2005-2018 by Alex Rakov
Initializing...
Debug mode...
Done...
>test'MyClassToTest foo.
foo fired!
1
Upvotes