Tokenizer.h 437 B

12345678910111213141516171819202122232425
  1. #ifndef TOKENIZER_H
  2. #define TOKENIZER_H
  3. #include <stdbool.h>
  4. #include <stdint.h>
  5. #include "tokenizer/Token.h"
  6. typedef int16_t int16;
  7. bool tTokenize(const char* path);
  8. const char* tGetError();
  9. void tResetReader();
  10. Token tPeekToken();
  11. Token tReadToken();
  12. bool tReadInt(int* i);
  13. bool tReadLong(long* l);
  14. bool tReadInt16(int16* i);
  15. bool tReadFloat(float* f);
  16. const char* tReadString();
  17. int tGetMarker();
  18. void tReset(int marker);
  19. #endif