-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Michał Dul edited this page May 23, 2023
·
12 revisions
Pint is our self-made language, which uses emojis as keywords, and is meant to be simple and readable.
It's a part of university project, but we cant't wait to see it evolve in future! 🍻
💬 An infinite loop
🔁 {
🖨️("🍺")
}
is transpiled into
# An infinite loop
while True:
print("🍺")
To transpile a Pint file to python, run python debrewer.py <input> [-o <output>] [-t]
.
Without specifying flags the result will be saved in a file with the same name as the input file, but with the .py
extension. The -o flag specifies the output file, and the -t flag specifies that the output file should be checked against typing consistency using mypy.
List of tokens in PLY format.
Pint will be transpiled into Python script. Our parsing toolkit of choice is PLY.
Pint Programming Language
Michał Dul, Arkadiusz Paterak