ELI (programming language): Difference between revisions

Content deleted Content added
No edit summary
Add file extensions
Line 81:
(1 = 2|x) / x // get odd numbers from x
1 3 5 7 9 11 13 15 17 19
</source>
 
==File extensions==
 
There are two kinds of file extensions in ELI: <code>.esf</code> and <code>.eli</code>. Both are designed for exchanging and sharing code based on different purposes.
 
An ELI file ends with <code>.esf</code> is an ELI script file which contains all methods and data. A simple way to create a script file is using the command <code>)out</code>. However, a clean workspace without any debugging/error information left is required before you can output a script file. Later, the command <code>)fload</code> is able to load the script file back.
 
<source lang="text">
)out MyScript
)lib
MyScript.esf
)fload MyScript
saved 2017.02.17 10:23:55 (gmt-5)
</source>
 
An ELI file ends with <code>.eli</code> is an ELI workspace file which contains everything in a workspace. <code>save</code> and <code>load</code> are two commands designed for workspace files.
 
<source lang="text">
)save MyWorkspace
)load MyWorkspace
saved 2017.02.17 10:57:19 (gmt-5)
</source>