v0.1 No numbered release yet

Teanga Ríomhchlárúcháin as Gaeilge

Write Python
in Irish.

Gaeil is a programming language written in Irish (Gaeilge). You write keywords such as scríobh, má, and feidhm. gaeil.py translates them into Python and runs the program — on a laptop, or on a phone in Termux.

$ git clone https://github.com/fitzyracing1/Gaeil.git
cd Gaeil
python gaeil.py examples/hello.gaeil

Why Gaeil

A small language with Irish keywords.

Gaeil is intentionally tiny: one translator file, a handful of examples, and the same Python you already have.

Fourteen Irish keywords

Familiar Python control flow, written as Gaeilge: scríobh, má, eile, fad, feidhm, and more.

A one-file translator

gaeil.py replaces those keywords with Python and runs the result. No extra toolchain is required.

Runs where Python runs

Use it on a desktop or in Termux on a phone. If you can run python, you can run Gaeil.

Try it in the browser

The playground translates Gaeil to Python and runs it with Pyodide. The runtime is loaded only when you press Run.

Examples

Gaeil on the left, Python on the right.

These are the real programs in examples/. The Python column is what gaeil.py produces.

factorial.gaeil

          
factorial.py

          

Playground

Translate and run Gaeil in the browser.

The editor starts from the real example files. Run uses the same keyword map as gaeil.py, then executes the Python with Pyodide from a CDN.

Gaeil

Python


            

Output

Click Run to translate this Gaeil and execute it in the browser.

Python in the browser is loaded on the first Run. Nothing is sent to a server.

Quick start

Three steps to a running program.

Gaeil programs use the .gaeil extension. The only .py file you need is the translator.

Clone the repository

Get the translator and the examples from GitHub.

git clone https://github.com/fitzyracing1/Gaeil.git
cd Gaeil

Run an example

Point gaeil.py at a .gaeil file. This prints the translation, then the program output.

python gaeil.py examples/hello.gaeil

Write your own

Use the Irish keywords from the reference below. Any other syntax is ordinary Python.

python gaeil.py my_program.gaeil

Tools

Helpers around the language.

Gaeil itself stays a small translator. Helpers live in their own repositories.

gaeil-tidy

Turns rough, mixed-style notes into runnable Gaeil. It lowercases keywords, converts C-style braces and comments, expands i++, and reports every change. The original file is never overwritten.

$ pipx install git+https://github.com/fitzyracing1/gaeil-tidy

Docs

Keyword reference

This is the complete map from gaeil.py. Whole words are replaced; everything else is left as Python.

Gaeil Python
scríobhprint
máif
eileelse
fadwhile
dofor
feidhmdef
fillreturn
fíorTrue
bréagFalse
agusand
nóor
nínot
léighinput
neamhníNone

Because programs run through Python exec, only run Gaeil files you trust. The translator does not sandbox local runs. The in-browser playground is limited to what Pyodide allows in this page.