iT邦幫忙

2019 iT 邦幫忙鐵人賽

DAY 21
1

20: Parser Implementation (4)

2018/11/4

It's recommended to read on Gitbook

I am thinking what is the next step. Probably looks like:

!FILENAME sql/parser.rs

    fn parse(&self) {
        let mut iter = self.tokens.iter();
        let category = iter.next().unwrap().token;

        match category {
            Token::CreateDatabase => {}
            Token::CreateTable => {}
            // ...
            // ...
            _ => {}
        }
    }

!FILENAME sql/create.rs

struct CreateDatabase {
    // ...
}

struct CreateTable {
    // ...
}

Quick Link
1.StellarSQL Repository
2.Gitbook of this series

Author
Liu, An-Chi (劉安齊). A software engineer, who loves writing code and promoting CS to people. Welcome to follow me at Facebook Page. More information on Personal Site and Github.


上一篇
StellarSQL 19: Parser Implementation (3)
下一篇
StellarSQL 21: First Implementation for Database Components
系列文
Let's build a DBMS: StellarSQL -- a minimal SQL DBMS written in Rust30
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言