Initial version.
Add the 'd' (short for 'duplication') operator.
Seperate from symbol and identifier, so now '+' are different from 'add'.
Change the store/load operators. Now, to store value to a variable, do s<VAR_NAME>
instead of {<VAR_NAME>}s
.
The same as load variable: l<VAR_NAME>
.
Add logical operators:
>
(Less than)<
(Greater than)>=
(Less or equal)<=
(Greater or equal)<>
(Not equal)~
(Not)&
(And)|
(Or)
Examples:
50 50 = w # 50 == 50
40 50 < w # 50 < 40
50 50 <> 20 20 = | w # 50 != 50 or 20 == 20
You can also see the logical_op
example in examples/
.
Add the ?
operator.
?
is basically the if
function.
Format of ?
:
{<if>}{<then>}{<else>}?
You can also see the if
example in examples/
.
- Change the
logical_op
example (examples/logical_op.nook
)
- Add the
t
operator.
t
is short for trap
and it is used as a while loop.
Format of t
:
{<condition>}{<block>}t
Note that if condition
is an empty string, that means a infinite loop.
You can also see the truth_machine
example in examples/
.
- Fix the string consume when the string is empty
- Change how the
t
command works, now it just a infinite loop command.
Sorry for such a long time not updating this.
- Add
b
(convert int to binary string)l
(length of string)c
(count the number of appearance of a substring in string)
- Remove all the operators added in
0.7.2
, as they are not proved to be very useful by the author. - Fix the while loop
- Add operator
c
: Converts number to character
- Remove command
s
(convert number to string) andl
(print length of string), as these commands collide with the commands
andl
for store/load variables - The command
b
is also removed, as it's no longer helpful