fix(lexer): $# and backslash implemented (partial version)
This commit is contained in:
parent
0c80663d7c
commit
e853249fbf
3 changed files with 15 additions and 11 deletions
|
|
@ -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].
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue