| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- .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.
- eg. \fB$ 1048576\fP
- \fB$ -1048576\fP
- \fB$ 0\fP
- \fB#\fP: line comment
- \fB+\fP: addition. This will add the numbers of the top stack (pop them
- out) and push the result into stack.
- \fB!\fP: stack dump. This dumps the stack, you can see numbers in the stack,
- but this won't change anything.
- \fB~\fP: print out message. This prints a message:
- eg. \fB~ hello, world\fP
- \fB~ hello, world\\n\fP
- \fB:\fP: print a number.
- eg. \fB: 1\fP : prints stack[0] as number
- \fB: 2\fP : prints stack[1] as number
|