A fast, cross-platform compiler for translating Geometry Shorthand Language (GSL) notation into plain English.
macOS/Linux:
curl -sSf https://raw.githubusercontent.com/politikl/gslc/main/install.sh | shWindows (PowerShell):
iwr -useb https://raw.githubusercontent.com/politikl/gslc/main/install.ps1 | iexThen follow the instructions given by the compiler to add it to your binaries and use!
- 🚀 Fast Translation: Instantly convert GSL shorthand to readable English
- 🗣️ Pronunciation Guide: Learn how to pronounce GSL shorthand
- 📁 File Support: Load and save
.gslfiles - 🔄 Step-by-Step Mode: Break down pronunciations by statement
- 🌐 Cross-Platform: Works on Windows, macOS, and Linux
- 📚 Complete GSL Support: Updated with latest language specification
Translate shorthand directly:
gslc '\\P:A/P:B/S:AB\\'Output:
1. Construct point A.
2. Construct point B.
3. Connect segment AB.
Save to file:
gslc '\\P:A/P:B/S:AB\\' -o output.txtLoad from file:
gslc -f problem.gslLoad and save:
gslc -f problem.gsl -o solution.txtOne-line pronunciation:
gslc --pron '\\P:A/S:AB\\'Output:
p kuh a mn s kuh a b
Step-by-step pronunciation:
gslc --pron -s '\\P:A/S:AB\\'Output:
1. p kuh a
2. s kuh a b
Pronounce from file:
gslc --pron -f sample.gslStep-by-step from file:
gslc --pron -s -f sample.gslView help:
gslc helpView about info:
gslc aboutOpen language documentation:
gslc langgslc '\\P:A,B/S:AB/R:3;AB=ABC/[ABC]?\\'Output:
1. Construct points A, B.
2. Connect segment AB.
3. Construct equilateral triangle ABC with side AB.
4. What is the area of ABC?
gslc '\\P:A,B/S:AB/R:3;AB=ABC/P:D.AC|R:3;AD=ADE,[ADE]=20/P:F.BC|R:3;BF=BFG,[BFG]=5/S:DF/P:H.AB|J:DFH*R/[DFH]?\\'A sample GSL file is included:
gslc -f sample.gslP:A- Construct point AS:AB- Connect segment ABL:AB- Connect line ABW:AB- Construct ray ABC:O;r- Circle with center O and radius rJ:ABC- Construct polygon ABCR:n;AB=POLYGON- Regular n-gon
[ABC]?- What is the area of ABC?(ABC)=x- Perimeter of ABC is x<ABC=90- Angle ABC is 90 degreesAB=BC\?- Prove that AB = BC
P:C..ABC- Point C in region ABCP:C.AB- Point C on ABABC*+- Points go clockwiseABC*-- Points go counterclockwisewprefix - Ray (wAB)lprefix - Line (lAB)cprefix - Circle (cO)aprefix - Arc (aAB)qprefix - Sector (qOAB)
:→ "kuh";→ "suh",→ "muh".→ "duh"?→ "kwuh"=→ "eh"|→ "shuh"*→ "xing"x→ "ix"/→ "mn"\\→ "uh"[→ "area"(→ "pairim"w→ "ray"l→ "line"c→ "circ"a→ "arc"q→ "sect"
- ✨ Added pronunciation mode (
--pron) - 📝 Step-by-step pronunciation with
-sflag - 📂 Enhanced file loading support
- 🔄 Updated to latest GSL specification
- 🎯 Added bounded area support (
..) - ↻ Added rotational specification (
+/-) - 🏷️ Added new derived constructions (9O, 9C, TG)
- 🧮 Added Pythagorean Theorem (_PY)
- 🎉 Initial release
- 🔤 Basic GSL to English translation
- 📁 File input/output support
- 🌐 Cross-platform support
- Language Documentation: https://tinyurl.com/gsldocumentation
- GitHub Repository: https://github.com/politikl/gslc
- Compiler: politikl
- GSL Language: LX and YY
MIT License - See LICENSE file for details
"Geometry Shorthand (Construction) is a code-based language. Complete rigorosity and logicosity is required." - LX