| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- #! /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;
- 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;
- };
- b = ` "/usr/bin/python3" {
- print("hello, this is python world and this python is running in tripl :-)")
- exit(1);
- };
- # @ var means, only view value of var, but not functions and libraries.
- ! @ var;
- b = a = $ 1 + 1 * 100 / 12;
- !;
|