diff options
author | Johnny Richard <johnny@johnnyrichard.com> | 2023-05-01 01:57:20 +0200 |
---|---|---|
committer | Carlos Maniero <carlos@maniero.me> | 2023-05-01 18:08:47 -0300 |
commit | 1d9981e5879260d9f158f5b3d9e13b12df43c68e (patch) | |
tree | 0c30a7b9210f7d47aa6ff259e2271651d3173321 /examples/Makefile | |
parent | 7ad1b0f3d676441ea14d7d261e730398875ae114 (diff) |
lexer: Peek next token
The only way to get the next token was by consuming it. So then, our
parser starts to become hard to understand, once sometimes we just
want to take a look on the next token to understand what should be the
next kind of expression.
This commit introduces a new function that will help us to improve our
parser implementation.
Signed-off-by: Johnny Richard <johnny@johnnyrichard.com>
Reviewed-by: Carlos Maniero <carlos@maniero.me>
Diffstat (limited to 'examples/Makefile')
0 files changed, 0 insertions, 0 deletions