tripl.1 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. .TH TRIPL 1 "26 Dec 21"
  2. .SH NAME
  3. tripl \- the interpreter of the tripl programming language.
  4. .SH SYNOPSIS
  5. \fBtripl\fP [ FILE ]
  6. .SH DESCRIPTION
  7. \fBtripl\fP is a programming language that uses different
  8. characters to do different things. You can use tripl to calculate
  9. the sum of two numbers, print out messages and other things interesting.
  10. .SH LICENSE
  11. \fBtripl\fP is distrubuted under the GNU General Public License. See the
  12. \fBLICENSE\fP file in the source directory of tripl. Of course, you need
  13. to download that from https://gitee.com/pengruiyang-cpu/tripl.git before
  14. that.
  15. .SH SYNTAX
  16. \fB$\fP: uses to push a number into stack.
  17. eg. \fB$ name 1048576\fP
  18. \fB$ name 1048576 @ rdonly global\fP
  19. \fB`\fP: pop a number and free the memory of it. \fBWILL BE ABANDONED\fP
  20. eg. \fB`;\fP
  21. \fB#\fP: line comment
  22. \fB!\fP: stack dump. This dumps the stack, you can see numbers in the stack,
  23. but this won't change anything. \fBIT DOES NOT WORK IN COMPILE MODE\fP
  24. \fB<\fP: import shared library.
  25. eg. \fB< "foobar.so"\fP
  26. \fB@\fP: calling function. \fBWARNING: MAX 6 ARGUMENTS SUPPORT\fP
  27. eg. \fB@ printf "hello, world %d %s" 0 "hello"
  28. \fB@ printf ("hello, world");
  29. \fB@ printf("a: %d\n", a);