A question about a LL parser
- From: Chad <cdalten@xxxxxxxxx>
- Date: Sat, 26 Apr 2008 17:45:01 -0700 (PDT)
The question comes from the following URL
http://en.wikipedia.org/wiki/LL_parser
They parse ( 1 + 1 ), using the following grammar rules.
1. S → F
2. S → ( S + F )
3. F → 1
On the first '(' from the input stream and from the 'S' stack, they
apply rule 2. How do they know it's rule 2 and say not rule 1?
.
- Follow-Ups:
- Re: A question about a LL parser
- From: thomas . mertes
- Re: A question about a LL parser
- Prev by Date: A question about an LL parser
- Next by Date: Re: My hear is turning grey!!
- Previous by thread: A question about an LL parser
- Next by thread: Re: A question about a LL parser
- Index(es):