Ivan Sebastian CT UTS Quiz
1. Given RE (Reguler Expresion):
(a|b)+ (a+b)* ab+
Find the DFA from RE given above
2. Given RE (Reguler Expresion):
(k|l)* kl?k(kl)+
Find the DFA using Ɛ-NFA
- X -> a or b Y | XZ | a or b | Z and Y | Z or Y
Y -> do while a X | do while a Y | Y log b
Z -> a | b
a. Do Left Recursion from the grammar above
b. Do Left Factoring from the grammar above
- O -> KO’
O’-> +KO’ | Ɛ
K -> EK’
K’ -> *EK’ | Ɛ
E -> /E | (O) | y | a
a. Find the first from the grammar above
b. Find Follow from the grammar above
c. Create the Parsing Table
d. Track the parsing movement with input: y/a*y+a
Status: #idea
Tags: compilation-techniquesCompilation Techniques NotesMid Exam
RE to DFA
RE to E-NFA to DFA
Context Free Grammar
Top down parsing
Final Exam
Bottom Up Parsing
Directed Acyclic Graph
TAC, Triples, Quadriples
Intermediate Code Generator
Code Generator
Annotated Parse Tree
Three Address Statement
resources:
https://www.youtube.com/watch?v=6yRB6dszSUo&ab_channel=HIMTIBINUS
* [x] watch all alvina aulia vids
* [x] watch responsi
(after OS)
* [ ] try example questions from kenny
* [ ] try example questions from others
* [ ] practice weak