This repository has been archived on 2026-05-05. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
University-Basics-of-Progra…/Exercise 3/Lexer.c
T
SinusFox ab399b12fa update
2023-05-15 15:08:14 +02:00

31 lines
854 B
C

#include "Lexer.h"
int start(char* src) {
if (src != 0) { // checking if the string is invalid
if (*src != '\0') { // checking if the string is empty
return _GET_NEXT_CHARACTER_; // if src is valid: continueing the state machine
}
}
return _STOP_; // stopping the state machine in any other case
}
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
}