| 1 | #ifndef _INTER_H_ |
| 2 | #define _INTER_H_ |
| 3 | /*----------------------------------------------------------------------*\ |
| 4 | |
| 5 | inter.h |
| 6 | |
| 7 | The interpreter of Acode. |
| 8 | |
| 9 | \*----------------------------------------------------------------------*/ |
| 10 | |
| 11 | #include "types.h" |
| 12 | #include "stack.h" |
| 13 | |
| 14 | /* TYPES: */ |
| 15 | |
| 16 | |
| 17 | /* DATA: */ |
| 18 | |
| 19 | extern bool stopAtNextLine; |
| 20 | extern int currentLine; |
| 21 | extern int recursionDepth; |
| 22 | |
| 23 | /* Global failure flag */ |
| 24 | extern bool fail; |
| 25 | |
| 26 | |
| 27 | /* FUNCTIONS: */ |
| 28 | |
| 29 | extern void setInterpreterMock(void (*mock)(Aaddr adr)); |
| 30 | extern void setInterpreterStack(Stack stack); |
| 31 | extern void interpret(Aaddr adr); |
| 32 | extern Aword evaluate(Aaddr adr); |
| 33 | |
| 34 | #endif |