A custom interpreted programming language written in Python.
- Variable Declaration:
var x = 10 - Control Flow:
if,elif,else,for,whileloops. - Functions: Define and call functions with
fun. - Math Operations: Supports standard arithmetic and power operations.
- REPL: Interactive shell for testing code.
-
Clone the repository:
git clone https://github.com/apat7/.glow.git cd .glow -
Prerequisites:
- Python 3.x
To start the interactive shell:
python shell.py# Variable Assignment
var x = 10
# Function Definition
fun add(a, b) -> a + b
# Loop
for i = 0 to 5 then
print(i)
end
# Conditional
if x == 10 then
print("x is 10")
endThis repository includes a VS Code extension in glow-language-support for syntax highlighting.