# Compiler : Front End
> https://people.cs.nctu.edu.tw/~ypyou/courses/Compiler-f18/
> [color=pink]
## Lexical Analyzer
> scanner
* enter symbol table
* token? lexeme?
* token ex. KW
* lexeme ex. int
### What is the difference between keyword and reserved word?
https://stackoverflow.com/questions/1078908/what-is-the-difference-between-keyword-and-reserved-word
### lex
> RE -> NFA -> DFA -> Optimize DFA -> C program
> the longest-earliest match
> 先判斷長ㄉ 一樣的話看前面ㄉ
```shell
lex template.l
Hong-Kuan Wu changed 7 years agoView mode Like Bookmark