Tokenizer.h 380 B

12345678910111213141516171819202122
  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 tReadInt16(int16* i);
  14. bool tReadFloat(float* f);
  15. const char* tReadString(int* length);
  16. #endif