fix(lexer): $# and backslash implemented (partial version)

This commit is contained in:
matteo 2026-01-23 20:11:21 +01:00
parent 0c80663d7c
commit e853249fbf
3 changed files with 15 additions and 11 deletions

View file

@ -80,10 +80,10 @@ struct token
char *data;
};
/* @return: true if a special character from the grammar was found,
/* @return: true if a special character from the grammar was found at stream[i],
* false otherwise.
*/
bool is_special_char(char c);
bool is_special_char(char *stream, ssize_t i);
/* @brief: return a newly allocated token, with the corresponding type.
* The data contains [size] char, starting from [begin].