Go to the source code of this file.
|
| FVM_OP (HERE) |
|
| FVM_OP (ZERO) |
|
| FVM_OP (C_COMMA) |
|
| FVM_OP (OVER) |
|
| FVM_OP (MINUS) |
|
| FVM_OP (SWAP) |
|
| FVM_OP (C_STORE) |
|
| FVM_OP (COMPILE) |
|
| FVM_OP (ZERO_BRANCH) |
|
| FVM_CALL (FORWARD_MARK) |
|
| FVM_OP (BRANCH) |
|
| FVM_CALL (FORWARD_RESOLVE) |
|
| FVM_CALL (BACKWARD_RESOLVE) |
|
| FVM_CALL (AGAIN) |
|
| FVM_OP (DO) |
|
| FVM_CALL (BACKWARD_MARK) |
|
| FVM_OP (LOOP) |
|
| FVM_OP (PLUS_LOOP) |
|
| FVM_SYMBOL (15, LEFT_BRACKET,"[") |
|
| FVM_SYMBOL (16, COMMENT,"(") |
|
| FVM_SYMBOL (17, DOT_QUOTE,".\"") |
|
| FVM_SYMBOL (18, LITERAL,"literal") |
|
| FVM_SYMBOL (19, SEMICOLON,";") |
|
| FVM_SYMBOL (20, RIGHT_BRACKET,"]") |
|
| FVM_SYMBOL (21, COLON,":") |
|
| FVM_SYMBOL (22, CREATE,"create") |
|
| FVM_SYMBOL (23, VARIABLE,"variable") |
|
| FVM_SYMBOL (24, CONSTANT,"constant") |
|
| FVM_SYMBOL (25, WORDS,"words") |
|
| FVM_SYMBOL (26, FORGET,"forget") |
|
| FVM_SYMBOL (27, TICK,"\'") |
|
void | setup () |
|
void | loop () |
|
void | execute (int op) |
|
#define BEGIN_CODE BACKWARD_MARK_CODE |
#define THEN_CODE FORWARD_RESOLVE_CODE |
#define WHILE_CODE IF_CODE |
FVM_CALL |
( |
FORWARD_MARK |
| ) |
|
FVM_CALL |
( |
FORWARD_RESOLVE |
| ) |
|
FVM_CALL |
( |
BACKWARD_RESOLVE |
| ) |
|
FVM_CALL |
( |
BACKWARD_MARK |
| ) |
|
FVM_SYMBOL |
( |
15 |
, |
|
|
LEFT_BRACKET |
, |
|
|
"[" |
|
|
) |
| |
FVM_SYMBOL |
( |
16 |
, |
|
|
COMMENT |
|
|
) |
| |
FVM_SYMBOL |
( |
17 |
, |
|
|
DOT_QUOTE |
, |
|
|
".\"" |
|
|
) |
| |
FVM_SYMBOL |
( |
18 |
, |
|
|
LITERAL |
, |
|
|
"literal" |
|
|
) |
| |
FVM_SYMBOL |
( |
19 |
, |
|
|
SEMICOLON |
, |
|
|
";" |
|
|
) |
| |
FVM_SYMBOL |
( |
20 |
, |
|
|
RIGHT_BRACKET |
, |
|
|
"]" |
|
|
) |
| |
FVM_SYMBOL |
( |
21 |
, |
|
|
COLON |
, |
|
|
":" |
|
|
) |
| |
FVM_SYMBOL |
( |
22 |
, |
|
|
CREATE |
, |
|
|
"create" |
|
|
) |
| |
FVM_SYMBOL |
( |
23 |
, |
|
|
VARIABLE |
, |
|
|
"variable" |
|
|
) |
| |
FVM_SYMBOL |
( |
24 |
, |
|
|
CONSTANT |
, |
|
|
"constant" |
|
|
) |
| |
FVM_SYMBOL |
( |
25 |
, |
|
|
WORDS |
, |
|
|
"words" |
|
|
) |
| |
FVM_SYMBOL |
( |
26 |
, |
|
|
FORGET |
, |
|
|
"forget" |
|
|
) |
| |
FVM_SYMBOL |
( |
27 |
, |
|
|
TICK |
, |
|
|
"\'" |
|
|
) |
| |
const char BEGIN_PSTR[] = "begin" |
const int DATA_MAX = 32 * 1024 |
const char THEN_PSTR[] = "then" |
const char WHILE_PSTR[] = "while" |