Parse undefined as simple

This commit is contained in:
Ilmir Usmanov
2014-10-01 14:30:04 +04:00
parent 6561c3fe6c
commit c8b97214fe
3 changed files with 16 additions and 1 deletions
+8
View File
@@ -486,6 +486,14 @@ decode_keyword (void)
.uid = KW_RESERVED
};
}
if (current_token_equals_to ("undefined"))
{
return (token)
{
.type = TOK_UNDEFINED,
.uid = 0
};
}
return empty_token;
}