Jamie Balfour

Welcome to my personal website.

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

Transpile SQA Reference Language to Python

Transpile SQARL to Python

Transpile SQARL to Python from here. This is still evolving and is based entirely on my own products including: the Zenith Parsing Engine, my ZPE Programming Environment and my YASS language and my ZenPy transpiler.

This SQARL transpiler is fully open source and available on my GitHub or my website.

For information on how this works, visit this page.

Here are some examples of code you can run (click the 'play' button to insert them into the textbox above and then transpiler them):

YASS
DECLARE num1 AS INTEGER INITIALLY 30
DECLARE num2 AS INTEGER INITIALLY 42
IF num1 < num2 THEN
  SEND "num1 is bigger" TO DISPLAY
ELSE IF num1 == num2 THEN
  SEND "Both numbers are the same size" TO DISPLAY
ELSE
  SEND "num2 is bigger" TO DISPLAY
END IF
YASS
DECLARE stone_A_distance AS INTEGER INITIALLY 30
DECLARE stone_B_distance AS INTEGER INITIALLY 42
IF stone_A_distance < stone_B_distance THEN
  SEND "Stone B is the winner." TO DISPLAY
ELSE
  SEND "Stone A is the winner." TO DISPLAY
END IF
Python code