Re: Write unambiguously grammar.?
- From: akakiyakakievich@xxxxxxxxx
- Date: Tue, 03 Jul 2007 13:18:56 -0000
On 2 jul, 04:35, Trish <trinhnguyen...@xxxxxxxxx> wrote:
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
try using ( ) parentheses in the grammar
.
- References:
- Write unambiguously grammar.?
- From: Trish
- Write unambiguously grammar.?
- Prev by Date: Re: Segmentation fault in using cephes mathematical library's functions
- Next by Date: Is there more stable mumerical package to calculate the condition number ?
- Previous by thread: Re: Write unambiguously grammar.?
- Next by thread: EBNF grammar, can someone help?
- Index(es):
Relevant Pages
|