| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- .TH TRIPL 1 "26 Dec 21"
- .SH NAME
- tripl \- the interpreter of the tripl programming language.
- .SH SYNOPSIS
- \fBtripl\fP [ FILE ]
- .SH DESCRIPTION
- \fBtripl\fP is a programming language that uses different
- characters to do different things. You can use tripl to calculate
- the sum of two numbers, print out messages and other things interesting.
- .SH LICENSE
- \fBtripl\fP is distrubuted under the GNU General Public License. See the
- \fBLICENSE\fP file in the source directory of tripl. Of course, you need
- to download that from https://gitee.com/pengruiyang-cpu/tripl.git before
- that.
- .SH SYNTAX
- \fB$\fP: uses to push a number into stack. now we also support global variables.
- eg. \fB$ name 1048576;\fP
- \fB$ name = +1048576;\fP
- \fB$ name = -1048576;\fP
- # or just leave blank. default value is 0
- \fB$ name;$\fP;
- \fB$ name 1048576 @ rdonly global;\fP
- usable variable attributes: global rdonly ptr
- \fB#\fP: line comment
- \fB!\fP: dump. This dumps things you want, e.g. functions, names, libraries
- \fBTHIS ONLY WORKS IN INTERPRETER MODE\fP
- eg. \fB! @ var;
- usable attributes: var (aka variables) fn (aka functions) names libs (aka libraries)
- all
- \fB<\fP: import shared library and declares.
- eg. \fB< "foobar.so"\fP
-
- \fB< fn @ fn;\fP
- \fB< name @ var;\fP
- \fB< fn 2 @ fn;\fP
- \fB< fn (a, b) @ fn;\fP
- \fB< age @ var;\fP
- usable attributes: shared (aka dynalib), fn (aka function), var (aka variable)
|