Skip to content

Commit b335a7a

Browse files
committed
fix boolean and undefined in compiler
1 parent da6b761 commit b335a7a

File tree

5 files changed

+503
-503
lines changed

5 files changed

+503
-503
lines changed

grammar/gsc.g4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ expression13: function_call_exp | expression14;
109109
expression14: const_expr | expression15 | left_value;
110110
expression15: ('(' expression ')');
111111

112-
is_expression: expression13 'is' ('not')? (IDENTIFIER | 'true' | 'false' | 'function' | 'undefined');
112+
is_expression: expression13 'is' ('not')? (IDENTIFIER | BOOL_VALUE | 'function' | UNDEFINED_VALUE);
113113

114114
function_call_exp:
115115
function_call

0 commit comments

Comments
 (0)