Skip to content

Commit

Permalink
Update math predeclared names
Browse files Browse the repository at this point in the history
  • Loading branch information
JJtan2002 authored Apr 16, 2024
1 parent 2b27d77 commit f213bdc
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,9 @@ export class Resolver implements StmtNS.Visitor<void>, ExprNS.Visitor<void> {
// math constants
["math_pi", new Token(TokenType.NAME, "math_pi", 0, 0, 0)],
["math_e", new Token(TokenType.NAME, "math_e", 0, 0, 0)],
["math_ln10", new Token(TokenType.NAME, "math_ln10", 0, 0, 0)],
["math_ln2", new Token(TokenType.NAME, "math_ln2", 0, 0, 0)],
["math_log10e", new Token(TokenType.NAME, "math_log10e", 0, 0, 0)],
["math_sqrt1_2", new Token(TokenType.NAME, "math_sqrt1_2", 0, 0, 0)],
["math_sqrt2", new Token(TokenType.NAME, "math_sqrt2", 0, 0, 0)],
["math_inf", new Token(TokenType.NAME, "math_inf", 0, 0, 0)],
["math_nan", new Token(TokenType.NAME, "math_nan", 0, 0, 0)],
["math_tau", new Token(TokenType.NAME, "math_tau", 0, 0, 0)],

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

0 comments on commit f213bdc

Please sign in to comment.