- Posted by Andreas Rumpf <pfropfen at gmx.net> Jun 29, 2003
- 1756 views
Hi! I am working on a Euphoria interpreter written in Object Pascal. (Same speed as C, but probably less bugs . Its name will be "Prophoria" -- Professional Euphoria. It will add some new features to the language: - call by reference: procedure foo(to sequence s) -- should I use keyword "to" to indicate -- by reference? foo() end procedure - dot notation: seq.x -- just syntactic sugar for seq[x] - end: s[1..end] -- same as s[1..length(s)] (func(s, 1, end) will not be possible!) - declare variables anywhere you want and initialize them: integer x = 0, y = 1 - more standard functions: abs(), sqr(), - a case statement: case seq of {1,2,3} do ... of {5..10} do ... else ... end case - a for in statement: for x in seq do x = 0 end for I look for programmers who have programming experience in Object Pascal and knownledge about compilers. Prophoria will be an interpreter and a translator (translates Euphoria to Pascal/C) I do not like anything like macro or stupid C-like assignment operators that will lead to unreadable code: if (i := getc(0) ) = 0 then ... end if -- this is ugly, and not Euphoria-like. If anyone is interested, please write to: pfropfen at gmx.net (I have already written a lightning fast scanner for Prophoria and am working on the parser.) Regards Andreas Rumpf