Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

1
  • Thanks for you answer. I personally think this is a LL(1) grammar. But here is another part of my grammar. Here given 54, when we first start we peek 5 but how can we decide which way to go without looking at the next element? Another follor up question is before consuming a "token" for example "5" we must first derive it right? <int> :: <digit><int> | <digit> [The definition for digit] <digit> ::= 0|1|2|3|4|5|6|7|8|9 Commented May 23, 2024 at 8:31