Grammar First Set
- From: _nabuchodonozor <kkocemba@xxxxxxxxxxxxxx>
- Date: Wed, 10 Oct 2007 10:27:26 -0700
E' -> E $
E -> T N
N -> + T N | - T N |
T -> F M
M -> * F M | / F M |
F -> id | ( E )
Using the following grammar I have to compute the First(*FM).
I did sth like this but I think It is wrong:/
First(*FM) = First(*) U FIrst(F) U (First(M) - { })
= {*} U {id, ( } U ({*,/, } - { })
= {*, id, ( , / }
I read a lot of examples about it but I cannot understand this
subject:/ Could you tell me what I did wrong?
Please help me.
Sorry if it is a quastion not to this group
.
- Follow-Ups:
- Re: Grammar First Set
- From: Michael J. Fromberger
- Re: Grammar First Set
- Prev by Date: Re: A question about regexes
- Next by Date: Re: Grammar First Set
- Previous by thread: A question about regexes
- Next by thread: Re: Grammar First Set
- Index(es):