OE update using_euphoria 4

creating_eu_progs

Documentation Version for Comments and Changes

You are invited to make any changes...add any comments.

Changes will `eventually` be merged into the offical documentation.

Leave any commnents here...

...

... back to index page OE documentation



First some simple modifications (takes less than a minute):

Simple

What if there were 100 C++ ships in Language Wars? What if sb.ex had to move 1000 balls instead of 125? Change some parameters in polygon.ex. Can you get prettier pictures to appear? Add some funny phrases to buzz.ex.

Harder

Then, some slightly harder ones (takes a few minutes):

Define a new function of x and y in plot3d.ex.

Challenging

Then a challenging one (takes an hour or more):

Set up your own customized database by defining the fields in mydata.ex.

Major

Then a major project (several days or weeks):

Write a smarter 3D TicTacToe algorithm.

Write Your Own

Try writing your own program in Euphoria. A program can be as simple as:

? 2+2 

Remember that after any error you can simply type: edx to jump into the editor at the offending file and line.

Once you get used to it, you'll be developing programs much faster in Euphoria than you could in Perl, Java, C/C++ or any other language that we are aware of.

Creating Euphoria programs

Euphoria programs can be written with any plain text editor. As a convenience Euphoria comes with edx, an editor written in Euphoria, that is handy for editing and executing Euphoria programs. Take a look at \euphoria\demo and euphoria\tutorial to see many example programs.

Running a Program

To run a Euphoria program you type the name of the interpreter followed by the filename of the program you want to run. Such as:

eui example.ex 

What you just typed is known as the command-line.

Depending on the platform you are using the interpreter could be called:

Executable Purpose
eui General interpreter on Windows and Unix variants
euiw Console-less Windows interpreter

The command-line may contain extra information. Following your program filename you may add extra words (known as arguments) that can used in your program to customize its behavior. These arguments are read within your program by the

Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu