lexer readability
This commit is contained in:
1
lexer.c
1
lexer.c
@@ -55,7 +55,6 @@ Token read_from_tok(char* text, uint cursor){
|
|||||||
static char buf[64];
|
static char buf[64];
|
||||||
size_t i = 0;
|
size_t i = 0;
|
||||||
if (isdigit(text[cursor])) {
|
if (isdigit(text[cursor])) {
|
||||||
// Start of an integer token
|
|
||||||
size_t start = cursor;
|
size_t start = cursor;
|
||||||
while (isdigit(text[cursor])) {
|
while (isdigit(text[cursor])) {
|
||||||
buf[i++] = text[cursor++];
|
buf[i++] = text[cursor++];
|
||||||
|
|||||||
Reference in New Issue
Block a user