Skip to content

Commit

Permalink
Remove is_number, add is_int and is_float to resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
JJtan2002 authored Apr 10, 2024
1 parent 0c6848b commit 88f81ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ export class Resolver implements StmtNS.Visitor<void>, ExprNS.Visitor<void> {
["str", new Token(TokenType.NAME, "str", 0, 0, 0)],
["error", new Token(TokenType.NAME, "error", 0, 0, 0)],
["prompt", new Token(TokenType.NAME, "prompt", 0, 0, 0)],
//TODO: add is_integer and is_float to pylib, update resolver and createContext
["is_number", new Token(TokenType.NAME, "is_number", 0, 0, 0)],
["is_float", new Token(TokenType.NAME, "is_float", 0, 0, 0)],
["is_int", new Token(TokenType.NAME, "is_int", 0, 0, 0)],
["is_string", new Token(TokenType.NAME, "is_string", 0, 0, 0)],
["is_function", new Token(TokenType.NAME, "is_function", 0, 0, 0)],
["is_boolean", new Token(TokenType.NAME, "is_boolean", 0, 0, 0)],
Expand Down Expand Up @@ -418,4 +418,4 @@ export class Resolver implements StmtNS.Visitor<void>, ExprNS.Visitor<void> {
visitBigIntLiteralExpr(expr: ExprNS.BigIntLiteral): void {
}

}
}

0 comments on commit 88f81ca

Please sign in to comment.