Jamie Balfour

Welcome to my personal website.

Find out more about me, my personal projects, reviews, courses and much more here.

YASS-Python transpiler progress

YASS-Python transpiler progress

My new transpiler for YASS to Python is coming along very well. After only about 3 hours of development, I have managed to get a program like this:

YASS
function doIt($x)
  for($i = $x to 100)
    print("Running in a function")
  end for
end function

doIt(10)

for ($i = 0; $i < 2 * 3; 2)
  print("Hello", "world")
end for

$z = 9

if($z > 10 || $z < 20)
  print("Yes")
else
  print("No")
end if

$x = 10 + 5 / 3

print($x)

To transpile to:

Python
def doIt(x):
  for i in range(x, 100):
    print ("Running in a function")

doIt(10)

for i in range(0, 2 * 3, 2):
  print ("Hello", "world")

z = 9
if z > 10 or z < 20:
  print ("Yes")
else:
  print("No")
x = 10 + 5 / 3
print (x)

This is the first big announcement related to this new transpiler, which will be available very soon at this rate. 

Comments
Powered by DASH 2.0