summaryrefslogtreecommitdiff
path: root/examples/main.pipa
diff options
context:
space:
mode:
authorJohnny Richard <johnny@johnnyrichard.com>2023-05-01 01:57:20 +0200
committerCarlos Maniero <carlos@maniero.me>2023-05-01 18:08:47 -0300
commit1d9981e5879260d9f158f5b3d9e13b12df43c68e (patch)
tree0c30a7b9210f7d47aa6ff259e2271651d3173321 /examples/main.pipa
parent7ad1b0f3d676441ea14d7d261e730398875ae114 (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/main.pipa')
0 files changed, 0 insertions, 0 deletions