Pliant ![]() |
http://fullpliant.org |
Beschreibung: | Pliant's besondere Eigenschaft ist der dynamische Compiler. Kleine Programme lassen sich wie bei einem Interpreter sofort starten, große Programme kann man vorkompilieren, um so die Zeit bis das Programm startfähig ist zu reduzieren. Pliant ist eine offene Sprache, d.h. man kann den Parser und Compiler erweitern (natürlich in Pliant). |
Fakultät | Michael Neumann |
# shunt ist C's ?: Operator function fac x -> f arg Int x f f := shunt x>1 x*(fac x-1) 1 console fac:6 |
Berechnet die Fakultät. Ergibt
720 . |
Hello World | Michael Neumann |
# Hello World in Pliant console "Hello World" eol |
Gibt "Hello World" auf dem Bildschirm
aus. |
Squares | Michael Neumann |
function Squares var Int i for i 1 10 console i * i " " # Funktion aufrufen Squares |
Gibt die Quadrate von 1 bis 10
aus. |