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 seriesAuthor
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.