Implement 'define' statement for defining constants globally.
All checks were successful
The build was successful.

This commit is contained in:
2019-05-04 17:08:09 +02:00
parent ab8bf48485
commit b36510943d
4 changed files with 68 additions and 1 deletions

View File

@@ -570,6 +570,7 @@ static sxu32 KeywordCode(const char *z, int n) {
{"in", PH7_KEYWORD_IN},
{"while", PH7_KEYWORD_WHILE},
/* Reserved keywords */
{"define", PH7_KEYWORD_DEFINE},
{"eval", PH7_KEYWORD_EVAL},
{"exit", PH7_KEYWORD_EXIT},
{"import", PH7_KEYWORD_IMPORT},