Re: Using Euphoria
- Posted by Vinoba Oct 21, 2011
- 36439 views
When I open Ed.ex it asks for a file name. When I paste the program into it it just turns grey. It doesn't execute the program. Why?
ed.ex is an editor, in place of your wordpad/notepad. It creates and .ex file; it DOES NOT execute it. You invoke ed from console
eui ed eui is the executor program (eui.exe in windows) which runs ed.ex and all .ex files
When you installed euphoria, it set up the paths fory ou and paths for include files, such that you can execute ed, which automatically executes as eui ed
In your effort above, you give it the name of a new file name you are creating, or a path\filename you already have as a predefined .ex file.
You do not have to use ed. You can use wordpad or notepad or one of dozen other text editors and save as .ex file. If youe sytax for euphoria is correct, it will execute. supposing the new file is
rbniel0.ex
then you can execute it using
eui rbniel0
Go to the demo directory, and execute buzz.ex in coNsole as
eui buzz
Try
eui color
and ask for the colors. Try
eui animal and do a little interactive learning exercise for euphoria.
Similar to eui.exe for console applications, you have euiw.exe for windows applications.
If you have win32lib, or wxEuphora installed you can try the windows demos for these. Both these libraries have 30-40 demos. The windows level Euphoria files have .euw suffix. You should be able to run at least 70% of the demos for these two Windows libraries.
You create the Windows executables using wordpad/notepad or any other text editor. There is also a IDE for each of the above two libraries, but the IDE s are weak. First ry running a few windows applications, then modifying them from your wordpad. When you modify, make sure you save as text file.
All the above is related to using Euphoria as an Interpreter. You can also compile an application as a windows executable. You should study the euphoria manual, for learning to use these methods.