@@ -151,7 +151,16 @@ export class Resolver implements StmtNS.Visitor<void>, ExprNS.Visitor<void> {
151
151
[ "None" , new Token ( TokenType . NAME , "None" , 0 , 0 , 0 ) ] ,
152
152
[ "NaN" , new Token ( TokenType . NAME , "NaN" , 0 , 0 , 0 ) ] ,
153
153
[ "Infinity" , new Token ( TokenType . NAME , "Infinity" , 0 , 0 , 0 ) ] ,
154
-
154
+
155
+ // math constants
156
+ [ "math_pi" , new Token ( TokenType . NAME , "math_pi" , 0 , 0 , 0 ) ] ,
157
+ [ "math_e" , new Token ( TokenType . NAME , "math_e" , 0 , 0 , 0 ) ] ,
158
+ [ "math_ln10" , new Token ( TokenType . NAME , "math_ln10" , 0 , 0 , 0 ) ] ,
159
+ [ "math_ln2" , new Token ( TokenType . NAME , "math_ln2" , 0 , 0 , 0 ) ] ,
160
+ [ "math_log10e" , new Token ( TokenType . NAME , "math_log10e" , 0 , 0 , 0 ) ] ,
161
+ [ "math_sqrt1_2" , new Token ( TokenType . NAME , "math_sqrt1_2" , 0 , 0 , 0 ) ] ,
162
+ [ "math_sqrt2" , new Token ( TokenType . NAME , "math_sqrt2" , 0 , 0 , 0 ) ] ,
163
+
155
164
// math library
156
165
[ "math_abs" , new Token ( TokenType . NAME , "math_abs" , 0 , 0 , 0 ) ] ,
157
166
[ "math_acos" , new Token ( TokenType . NAME , "math_acos" , 0 , 0 , 0 ) ] ,
0 commit comments