exercise 3

This commit is contained in:
SinusFox
2023-05-15 14:34:44 +02:00
parent 9cde0cf1df
commit be9e69b459
3 changed files with 96 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
#include "Lexer.h"
int start(char* src) {
if (src != 0 && src != '\0') { // checking if the string is empty or invalid
return _GET_NEXT_CHARACTER_;
}
return _STOP_;
}
int getNextCharacter(char* src) {
return _STOP_; // placeholder
}
int readIdentifier(char* src) {
return _STOP_; // placeholder
}
int readNumLit(char* src) {
return _STOP_; // placeholder
}
int readOperator(char* src) {
return _STOP_; // placeholder
}
int readPunctuation(char* src) {
return _STOP_; // placeholder
}