Skip to content

Commit

Permalink
Merge pull request ascoders#232 from vivaxy/patch-1
Browse files Browse the repository at this point in the history
Update link to 《mysql 上下文无关文法集合》
  • Loading branch information
ascoders authored Feb 12, 2020
2 parents fb98d1f + c3ea6f2 commit c45a3d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 065.精读《手写 SQL 编译器 - 文法介绍》.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ SELECT * from bees WHERE bee = 'red';

但是当我们将文法粒度变细,将 `CASE WHEN``WHERE` 区块分别交由两块文法解决,将等号这个通用的表达式抽离出来,就可以不关心上下文了,这种方式称为 **上下文无关文法**

附上一个 [mysql 上下文无关文法集合](https://github.com/antlr/grammars-v4/blob/master/mysql/MySqlParser.g4)
附上一个 [mysql 上下文无关文法集合](https://github.com/antlr/grammars-v4/blob/master/sql/mysql/Positive-Technologies/MySqlParser.g4)

### 左推导与右推导

Expand Down

0 comments on commit c45a3d0

Please sign in to comment.