scanner: add pub keyword

This commit is contained in:
Luna 2019-08-26 21:31:57 -03:00
parent a706f077cb
commit fc4b84b51c

View file

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