Résultat du TP en C sur Forth
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

state.h 416B

123456789101112131415161718192021
  1. #ifndef STATE_H_
  2. #define STATE_H_
  3. #include "pile.h"
  4. #include "lexer.h"
  5. #include "definitions.h"
  6. enum MODE {EXECUTE, PRINT, IGNORE, WAIT_FOR_ENDIF, WAIT_FOR_UNTIL, WAIT_FOR_SEMICOLON};
  7. struct State {
  8. struct Pile pile;
  9. struct Programm* prog;
  10. enum MODE mode;
  11. programPointer instructionPointer;
  12. struct FunctionsList* functions;
  13. };
  14. char* getCurrentToken(struct State* state);
  15. #endif // STATE_H_