[Home]  [Edit this page]  [Recent Changes]  [Special Pages]  [Help
Operating System » LoadingDynamicLibraryC » 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


last edited (September 18, 2004) by philip7891, Number of views: 6655, Current Rev: 4 (Diff)

[Edit this page]  [Page history]  [What links here]  [Discuss this topic]  [Printer Friendly]  

Members

Username:

Password:


Register
Forgot Password?




Programmers Heaven - for .NET, Java, C/C++ and WEB Developers!
© 1996-2008 Community Networks Ltd. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited. Violators of this policy may be subject to legal action. Please read Terms Of Use and Privacy Statement for more information. Site Management by Lars Hagelin at Kontantkort.se.