Skip to content

Commit d5f42ea

Browse files
authored
Update math predeclared names (#37)
1 parent 2b27d77 commit d5f42ea

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/resolver.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -155,11 +155,9 @@ export class Resolver implements StmtNS.Visitor<void>, ExprNS.Visitor<void> {
155155
// math constants
156156
["math_pi", new Token(TokenType.NAME, "math_pi", 0, 0, 0)],
157157
["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)],
158+
["math_inf", new Token(TokenType.NAME, "math_inf", 0, 0, 0)],
159+
["math_nan", new Token(TokenType.NAME, "math_nan", 0, 0, 0)],
160+
["math_tau", new Token(TokenType.NAME, "math_tau", 0, 0, 0)],
163161

164162
// math library
165163
["math_abs", new Token(TokenType.NAME, "math_abs", 0, 0, 0)],

0 commit comments

Comments
 (0)