2022-01-31 11:20:32 +01:00
|
|
|
|
2023-10-03 16:55:11 +02:00
|
|
|
,dPYb, ,dPYb,
|
|
|
|
IP'`Yb IP'`Yb
|
|
|
|
I8 8I gg I8 8I
|
|
|
|
I8 8bgg, "" I8 8'
|
|
|
|
I8 dP" "8 ,ggggg, ,ggg,,ggg, gg I8 dP ,ggggg,
|
|
|
|
I8d8bggP" dP" "Y8 ,8" "8P" "8, 88 I8dP dP" "Y8
|
|
|
|
I8P' "Yb, i8' ,8I d8 8I 8I 88 I8P i8' ,8I
|
|
|
|
,d8 `Yb,,d8, ,d8P8P 8I Yb,_,88,_,d8b,_ ,d8, ,d8'
|
|
|
|
88P Y8P"Y8888P" 8I `Y88P""Y88P'"Y88P"Y8888P"
|
|
|
|
|
|
|
|
This adds support for some words from Konilo. It's intended
|
2022-01-31 11:20:32 +01:00
|
|
|
to aid in portability between the systems.
|
|
|
|
|
|
|
|
The basic math operations are given non-symbolic names and
|
2023-10-03 16:55:11 +02:00
|
|
|
placed in the `n:` namespace. (In Konilo, these are the standard
|
|
|
|
names for these).
|
2022-01-19 11:21:10 +01:00
|
|
|
|
|
|
|
~~~
|
2022-01-31 11:20:32 +01:00
|
|
|
:n:add + ;
|
|
|
|
:n:sub - ;
|
|
|
|
:n:mul * ;
|
|
|
|
:n:div / ;
|
|
|
|
:n:mod mod ;
|
2022-01-19 11:21:10 +01:00
|
|
|
:n:divmod /mod ;
|
2022-08-31 04:05:48 +02:00
|
|
|
|
2023-10-03 16:55:11 +02:00
|
|
|
:comma:a , ;
|
2022-01-19 11:21:10 +01:00
|
|
|
~~~
|
|
|
|
|
2022-01-31 11:20:32 +01:00
|
|
|
Provide source data.
|
|
|
|
|
2022-01-19 11:21:10 +01:00
|
|
|
~~~
|
2023-10-22 23:59:01 +02:00
|
|
|
'interface/konilo.retro s:keep
|
|
|
|
dup 'comma:a d:lookup d:source store
|
2022-01-19 11:21:10 +01:00
|
|
|
dup 'n:add d:lookup d:source store
|
|
|
|
dup 'n:sub d:lookup d:source store
|
|
|
|
dup 'n:mul d:lookup d:source store
|
|
|
|
dup 'n:div d:lookup d:source store
|
|
|
|
dup 'n:mod d:lookup d:source store
|
|
|
|
dup 'n:divmod d:lookup d:source store
|
|
|
|
drop
|
|
|
|
~~~
|