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.

show.c 535B

1234567891011121314151617181920212223242526272829
  1. #include "show.h"
  2. #include <stdio.h>
  3. void point(struct State* state) {
  4. if (state->mode == EXECUTE) {
  5. struct NumContainer num = top(&state->pile);
  6. pop(&state->pile);
  7. printNum(num);
  8. }
  9. }
  10. void pointS(struct State* state) {
  11. if (state->mode == EXECUTE) {
  12. print(&state->pile);
  13. }
  14. }
  15. void pointQuote(struct State* state) {
  16. if (state->mode == EXECUTE) {
  17. state->mode = PRINT;
  18. }
  19. }
  20. void crCmd(struct State* state) {
  21. if (state->mode == EXECUTE) {
  22. printf("\n");
  23. }
  24. }