Replies: 1 comment 1 reply
-
AFAIK the Pratt parser should be passed operators -- CC @segeljakt ? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I need my pratt parser to simply consume a list of tokens without there specifically being an operation involved. Then run separate parse/eval methods on the subtokens. I've made a simple example that just takes a list of numbers.
I still need operations on other tokens, I just don't want operators to take place between the subtokens of the
root
token. I am currently getting the following error:Expected operator, found num(4, 8)
for input:175 1284
. Is there any way to do this using the pratt parser?Beta Was this translation helpful? Give feedback.
All reactions