diff options
author | Aleksey Kladov <[email protected]> | 2017-12-31 20:34:29 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2017-12-31 20:34:29 +0000 |
commit | 8c478a794c667357b0c9a82ffc5c3eb5ca1b1b0d (patch) | |
tree | 403a3feaefea71a1e2a220a79c46e31a33abfe34 /src/parser | |
parent | 39024fdc14703e3936f88d9ec938aad55085d05a (diff) |
Parser: initial
Diffstat (limited to 'src/parser')
-rw-r--r-- | src/parser/mod.rs | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/parser/mod.rs b/src/parser/mod.rs index da902e2b7..7336c5136 100644 --- a/src/parser/mod.rs +++ b/src/parser/mod.rs | |||
@@ -1,5 +1,11 @@ | |||
1 | use {Token, File}; | 1 | use {Token, File, FileBuilder}; |
2 | 2 | ||
3 | pub fn parse(tokens: &[Token]) -> File { | 3 | use syntax_kinds::*; |
4 | unimplemented!() | 4 | |
5 | |||
6 | pub fn parse(text: String, tokens: &[Token]) -> File { | ||
7 | let mut builder = FileBuilder::new(text); | ||
8 | builder.start_internal(FILE); | ||
9 | builder.finish_internal(); | ||
10 | builder.finish() | ||
5 | } \ No newline at end of file | 11 | } \ No newline at end of file |