A programming language brewed ๐บ with love โค and the finest emojis ๐
Pint is a statically typed programming language using emojis as keywords with a syntax inspired by Python (with some twists).
๐ฌ An infinite loop
๐ {
๐จ๏ธ("๐บ")
}
Pint's transpiler is called Debrewer. Its output is Python.
It is implemented in Python and uses PLY (Python Lex-Yacc) to tokenize and parse the input file.
The transpiler supports files with the .pint
or .๐บ
extension.
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.
Simple tests compare translated files to model ones from the examples directory.
Use: python -m unittest