Consider the grammar:
S → aSbS | bSaS | 𝜖
Right most derivations for abab:
Case 1:
S → aSbS
→ aSb (applying S → 𝜖)
→ abSaSb (applying S → bSaS)
→ abSab (applying S → 𝜖)
→ abab (applying S → 𝜖)
Case 2:
S → aSbS
→ aSbaSbS (applying S → aSbS)
→ aSbaSb (applying S → 𝜖)
→ aSbab (applying S → 𝜖)
→ abab (applying S → 𝜖)
Draw the syntax tree and DAG from the following expression.
if x>0 then x=3*(y+1) else y=y+1
Write an program to generate Pascal’s triangle.
Short Notes :Lines of Code (LOC)
Why Required of ISO 9001:2000 standard?