true
Jump to navigation
Jump to search
- Not to be confused with True.
true is a FALSE-like language created by User:Ractangle
Commands
Implemented
- Literals
"..."
pushes a string to the stack0-9
pushes a number to the stack'
discards the first input character and pushes it to the stack
- I/O
.
prints the popped element,
gets input and stores it some where
- Stack manipulation
:
duplicate the top value of the stack-
discard the top value on the stack
- Arithmetic
+
add the two top intergers together`
negates the top value on the stak
- Subroutine control
»n
call a subroutinen:
create a subroutine;
return to the main code
The pointer goes to the beginning of the program when it gets to the end of the program, but does not encounter a newline
Newline/IndexError
You can consider this as a command (yes they're the same) if you want to
All it does is just halt the program
Unimplemented
(...)
created a lambda
Examples
Hello, world!
"Hello, world!".
Cat program
,»rr:'.»r
Infinite loop
s
The space is represented as "s"