Write unambiguously grammar.?
- From: Trish <trinhnguyen_77@xxxxxxxxx>
- Date: Mon, 02 Jul 2007 03:35:38 EDT
Can someone help. thanks
question:
<exp> ::= <int>|<exp> <op> <exp>
<op>::= + | *
is ambiguous. Rewrite the grammar so that it accepts the same language unambiguous and honors the traditional interpretation of arithmetic expressions.
Using your grammar, provide a derivation of the expressions:
2*3+5*4 and 2+3*5*4
.
- Follow-Ups:
- Re: Write unambiguously grammar.?
- From: akakiyakakievich
- Re: Write unambiguously grammar.?
- From: mecej4
- Re: Write unambiguously grammar.?
- Prev by Date: Segmentation fault in using cephes mathematical library's functions
- Next by Date: EBNF grammar, can someone help?
- Previous by thread: Segmentation fault in using cephes mathematical library's functions
- Next by thread: Re: Write unambiguously grammar.?
- Index(es):
Relevant Pages
|