Skip to content

Commit 3f50a99

Browse files
authored
Remove is_number, add is_int and is_float to resolver (#28)
1 parent 0c6848b commit 3f50a99

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/resolver.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ export class Resolver implements StmtNS.Visitor<void>, ExprNS.Visitor<void> {
140140
["str", new Token(TokenType.NAME, "str", 0, 0, 0)],
141141
["error", new Token(TokenType.NAME, "error", 0, 0, 0)],
142142
["prompt", new Token(TokenType.NAME, "prompt", 0, 0, 0)],
143-
//TODO: add is_integer and is_float to pylib, update resolver and createContext
144-
["is_number", new Token(TokenType.NAME, "is_number", 0, 0, 0)],
143+
["is_float", new Token(TokenType.NAME, "is_float", 0, 0, 0)],
144+
["is_int", new Token(TokenType.NAME, "is_int", 0, 0, 0)],
145145
["is_string", new Token(TokenType.NAME, "is_string", 0, 0, 0)],
146146
["is_function", new Token(TokenType.NAME, "is_function", 0, 0, 0)],
147147
["is_boolean", new Token(TokenType.NAME, "is_boolean", 0, 0, 0)],
@@ -418,4 +418,4 @@ export class Resolver implements StmtNS.Visitor<void>, ExprNS.Visitor<void> {
418418
visitBigIntLiteralExpr(expr: ExprNS.BigIntLiteral): void {
419419
}
420420

421-
}
421+
}

0 commit comments

Comments
 (0)