[Home]
[Edit this page]
[Recent Changes]
[Special Pages]
[Help]
Euphoria
Euphoria is a simple, flexible, and easy-to-learn programming language. It lets you quickly and easily develop programs for DOS, Windows, Linux and FreeBSD. Euphoria was first released in 1993. It seems to be highly optimized and is pretty fast even though it does a lot of run time checking to help you fight against bugs.
Official Euphoria Programming Page
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
Euphoria
Euphoria is a simple, flexible, and easy-to-learn programming language. It lets you quickly and easily develop programs for DOS, Windows, Linux and FreeBSD. Euphoria was first released in 1993. It seems to be highly optimized and is pretty fast even though it does a lot of run time checking to help you fight against bugs.
Official Euphoria Programming Page
Hello World program in Euphoria:
puts(1, "Hello, World!")
Complete list of built-in types:
- integer - signed 31-bit integer
- atom - floating-point; approximately 15 digits of precision; range go up to approximately +/- 10^300
- sequence - variable length, variable type array; example: {13, 2.5, {}, {2, {8}}, "fred"}
- object - can be any of the above
Strengths of Euphoria
- simplicity - great for beginners
- powerful - can interface with C
- Works on Dos, Windows, Linux, and FreeBSD
- win32lib and IDE can help you write native windows application fast
- can make .exe files (although normally it is interpretted)
- flexibility - sequences are very easy to work with and can contain data of any type
Examples of sequence subscripting
sequence seq
seq = {13, 2.5, {}, {2, {8}}, "fred"}
-- this is a euphoria comment
-- ? seq[1] is short for print(1, seq[1])
? seq[1] -- prints: 13
? seq[1..2] -- prints: {13, 2.5}
? seq[4,2] -- prints: {8}
? seq[4,2,1] -- prints: 8
? seq[5,1..3] -- prints: {102, 114, 101}
puts(1, seq[5,1..3]) -- prints: fre
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
