Closed IWANABETHATGUY closed 2 years ago
It's just a recursive function passing down a precedence value, no idea what that's called.
Thanks for replying , one more question please. Is it LL or LR?
The code is right here in the repository. It's a recursive-descent parser, so neither LL nor LR, but more similar to LL.
Thanks a lot.
The doc point out that Acorn use perator precedence parser to parse binary expression, I am curious which specific algorithm did acorn use, shunting yard or pratt parser or others?