tripl.1 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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$ -1048576\fP
  19. \fB$ 0\fP
  20. \fB`\fP: pop a number and free the memory of it.
  21. eg. \fB`\fP
  22. \fB#\fP: line comment
  23. \fB!\fP: stack dump. This dumps the stack, you can see numbers in the stack,
  24. but this won't change anything.
  25. \fB<\fP: import shared library.
  26. eg. \fB< foobar.so\fP
  27. \fB@\fP: calling function. \fBWARNING: MAX 6 ARGUMENTS SUPPORT\fP
  28. eg. \fB@ printf "hello, world %d %s" 0 "hello"