in Compiler Design edited by
640 views
0 votes
0 votes

Repeat Exercise 4.3.1 on the following grammars:

  1. $S\rightarrow SS+\mid SS\: \ast\mid a$
  2. $S\rightarrow 0S1\mid 01$
  3. $S\rightarrow S ( S ) S\mid \epsilon$
  4. $S\rightarrow (L)\mid a$ and $L\rightarrow L,S\mid S$
  5. The following grammar for boolean expressions
  • $bexpr\rightarrow bexpr\:or\:bterm\mid bterm$
  • $bterm\rightarrow bterm\:and\:bfactor\mid bfactor$
  • $bfactor\rightarrow not\: bfactor\mid ( bexpr )\mid true \mid false $
in Compiler Design edited by
by
640 views

Please log in or register to answer this question.

Related questions