move *.md to notes/*.md and add lecture pdf
This commit is contained in:
@@ -117,4 +117,7 @@ main() {
|
||||
### Handwork
|
||||
|
||||
* Thompson's construction (RE -> NFA)
|
||||
* Subset Construction(NFA -> DFA)
|
||||
* Subset Construction(NFA -> DFA)
|
||||
|
||||
|
||||
DFA Optimization
|
||||
23
notes/3.md
Normal file
23
notes/3.md
Normal file
@@ -0,0 +1,23 @@
|
||||
# Syntax Analysis
|
||||
|
||||
|
||||
## Context-Free Grammars (CFG)
|
||||
|
||||
## Parse Tree
|
||||
|
||||
A tree representation of the derivation
|
||||
|
||||
parse tree has `terminals` at the leaves, `non-terminals` at the interior.
|
||||
|
||||
An in-order traversal of the leaves is the original input.
|
||||
|
||||
* leftmost derivation
|
||||
* rightmost derivation
|
||||
|
||||
### Ambiguity
|
||||
|
||||
should be resolved
|
||||
|
||||
for example: `A + B * C` should be resolved
|
||||
|
||||
|
||||
BIN
pdf/L3.pdf
Normal file
BIN
pdf/L3.pdf
Normal file
Binary file not shown.
BIN
pdf/P2.pdf
Normal file
BIN
pdf/P2.pdf
Normal file
Binary file not shown.
Reference in New Issue
Block a user