@@ -151,7 +151,16 @@ export class Resolver implements StmtNS.Visitor<void>, ExprNS.Visitor<void> {
151151 [ "None" , new Token ( TokenType . NAME , "None" , 0 , 0 , 0 ) ] ,
152152 [ "NaN" , new Token ( TokenType . NAME , "NaN" , 0 , 0 , 0 ) ] ,
153153 [ "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+
155164 // math library
156165 [ "math_abs" , new Token ( TokenType . NAME , "math_abs" , 0 , 0 , 0 ) ] ,
157166 [ "math_acos" , new Token ( TokenType . NAME , "math_acos" , 0 , 0 , 0 ) ] ,
0 commit comments