mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-27 17:18:05 +11:00
2d9a07d215
This was becoming heavy to manage.
12 lines
307 B
Plaintext
12 lines
307 B
Plaintext
EXECUTION MODEL
|
|
|
|
After having read a line through readln, we want to interpret
|
|
it. As a general rule, we go like this:
|
|
|
|
1. read single word from line
|
|
2. Can we find the word in dict?
|
|
3. If yes, execute that word, goto 1
|
|
4. Is it a number?
|
|
5. If yes, push that number to PS, goto 1
|
|
6. Error: undefined word.
|