expr/test-funcs.expr

13 lines
174 B
Plaintext
Raw Normal View History

2024-04-02 06:49:16 +02:00
/*
test-funcs.expr: example source file
*/
// double(x): returns 2*x
2024-04-06 01:00:29 +02:00
@double=func(x){2*x};
2024-04-02 06:49:16 +02:00
// Define variable 'a' wth value 5
2024-04-06 01:00:29 +02:00
@a=5;
2024-04-02 06:49:16 +02:00
// two(): returns 2
2024-04-06 01:00:29 +02:00
@two=func() {2};