1
This commit is contained in:
Christoph
2021-08-31 15:19:10 +02:00
parent b9fbc45494
commit 125e6dd260
4 changed files with 71 additions and 65 deletions

View File

@ -1,4 +1,3 @@
import py
from rply import Token
from simpleast import Program, ExprStatement, BooleanLiteral, Assignment, ImplicitSelf
@ -69,6 +68,7 @@ y = 1 leq(2)
def test_boolean_conversion():
ast = parse("""
w = 1 tostr
x = 1 tobool
y = true toint
z = false toint

View File

@ -1,4 +1,3 @@
import py
from rply import Token
from simpleast import Program, ExprStatement, BooleanLiteral, ImplicitSelf, Assignment, StringLiteral