| Age | Commit message (Collapse) | Author |
|
lex: add bang
passes: add initial debug pass
|
|
|
|
Error messages are now pretty (not rlly), and lex_number() now checks
improper use of number and binary literals. osal.h now also requires
platforms to implement a printv() wrapper.
|
|
l->pos increments are replaced with lex_advance, which now accepts
offsets. lex_advance() now returns 0 and does not increment past
buffer size upon out-of-bounds.
|
|
Redundant function calls removed from lex_number() by reducing
lex_seek() calls from 5 to 2. lex_seek already provides a safe
fallback for NULL values in the buffer, therefore removed the
redundant safety check as well.
|
|
Add lex_get_token_name() to lex/lex.c and refactor platform/elf/main.c
so that it prints the token identifier string rather than int.
|
|
|