| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- #! /usr/bin/tripl
- < "libc-2.33.so" @ shared;
- # now we're testing the c-style declares
- int main(int argc, const char **argv);
- extern int fputs(char *, int);
- # and tripl-style
- < add(a, b) @ fn;
- $ a;
- $ b;
- $ c;
- -10 -> a;
- a = b = 1000;
- a = ` "/usr/bin/bash" {
- echo "greeting from bash :-)"
- exit 100
- };
- c = ` "./tripl" {
- $ a = 0;
- a = ` "/usr/bin/bash" {
- echo -n "this is a bash and it is running in a tripl-interpreter which"
- echo "are running in a tripl-interpreter"
- exit 10
- };
- ! @ var;
- };
- # @ var means, only view value of var, but not functions and libraries.
- ! @ var;
- b = a = $ 1 + 1 * 100 / 12;
- !;
|