CD Solution
CD Solution
Assignment : 2
1. Define Lexemes, patterns and tokens.
8. Draw syntax tree and DAG for the statement a= (a * b + c) ^(b + c)*b + c
9. Draw deterministic finite automata for: 1) (0 + 1)*101 (0+1)*
2) 10(0+1)*1
10. Construct a DFA for given regular expression (010+00)*(10)*.
Assignment : 3
1. Explain Syntax Analyser and CFG?
2. Difference between Top Down Parser and Bottom Up Parser?
6. What are conflicts in LR Parser? What are their types? Explain with an
example?