Tokenizer.h 433 B

1234567891011121314151617181920212223242526
  1. #ifndef TOKENIZER_H
  2. #define TOKENIZER_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #include "Error.h"
  7. #include "Types.h"
  8. #include "tokenizer/Token.h"
  9. void tTokenize(const char* path, Error* e);
  10. Token tPeekToken(void);
  11. bool tReadTokenAndLine(Token* t, int16* line);
  12. bool tReadInt32(int32* i);
  13. bool tReadFloat(float* f);
  14. const char* tReadString(void);
  15. int tGetMarker(void);
  16. void tReset(int marker);
  17. #ifdef __cplusplus
  18. }
  19. #endif
  20. #endif