Add 'yield' keyword.
@@ -58,6 +58,7 @@ const (
END = "END"
WHILE = "WHILE"
DO = "DO"
+ YIELD = "YIELD"
)
var keyworkds = map[string]TokenType{
@@ -71,6 +72,7 @@ var keyworkds = map[string]TokenType{
"end": END,
"while": WHILE,
"do": DO,
+ "yield": YIELD,
}
func LookupIdent(ident string) TokenType {
