scanner: add pub keyword

This commit is contained in:
Luna 2019-08-26 21:31:57 -03:00
parent a706f077cb
commit fc4b84b51c
1 changed files with 2 additions and 0 deletions

View File

@ -51,6 +51,7 @@ const keywords = [_][]const u8{
"None",
"println",
"loop",
"pub",
};
const keyword_ttypes = [_]TokenType{
@ -80,6 +81,7 @@ const keyword_ttypes = [_]TokenType{
.None,
.Println,
.Loop,
.Pub,
};
fn getKeyword(keyword: []const u8) ?TokenType {