3 ms·
Fexl is a functional programming language. I used the term "functional evaluation" because Fexl evaluates functions. Here are a few code samples: http://rose
by fexl 12y ago
Fexl is a functional programming language. I used the term "functional evaluation" because Fexl evaluates functions.
Here are a few code samples:
http://rosettacode.org/wiki/99_Bottles_of_Beer#Fexl http://rosettacode.org/wiki/99_Bottles_of_Beer#Fexl
http://rosettacode.org/wiki/Fibonacci_sequence#Fexl http://rosettacode.org/wiki/Fibonacci_sequence#Fexl
http://fexl.com/sample/ http://fexl.com/sample/
This one's a bit more involved:
http://fexl.com/demo/ http://fexl.com/demo/
You'll also find some code samples in the "test" directory:
https://github.com/chkoreff/Fexl/tree/master/src/test https://github.com/chkoreff/Fexl/tree/master/src/test
The program a1.fxl there is the definitive test suite. The program a2.fxl reads what you type and echoes it back.
The samples above should help illustrate the nature of the language. Grammatically, it's very simple:
http://fexl.com/grammar/ http://fexl.com/grammar/
For another quick illustration of the language, I'll give you a sample here:
say "Hello"
\x=(* 4.7 8.6)
put "x = " put x nl
The output is:
Hello
x = 40.42