mirror of
https://github.com/hsoft/collapseos.git
synced 2024-09-07 15:08:44 +10:00
17 lines
312 B
Plaintext
17 lines
312 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.
|
|
|
|
|
|
|
|
|
|
|