Guest User

Untitled

a guest
Jun 23rd, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. S := [INSTR SEP]* #
  2. 2
  3. 3 INSTR :=
  4. 4 push VALEUR
  5. 5 | pop
  6. 6 | dump
  7. 7 | assert VALEUR
  8. 8 | add
  9. 9 | sub
  10. 10 | mul
  11. 11 | div
  12. 12 | mod
  13. 13 | print
  14. 14 | exit
  15. 15
  16. 16 VALEUR :=
  17. 17 int8(N)
  18. 18 | int16(N)
  19. 19 | int32(N)
  20. 20 | float(Z)
  21. 21 | double(Z)
  22. 22
  23. 23 N := [-]?[0..9]+
  24. 24
  25. 25 Z := [-]?[0..9]+.[0..9]+
  26. 26
  27. 27 SEP := ’\n’
Add Comment
Please, Sign In to add comment