Skip to content

apat7/.glow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

.glow

A custom interpreted programming language written in Python.

🌟 Features

  • Variable Declaration: var x = 10
  • Control Flow: if, elif, else, for, while loops.
  • Functions: Define and call functions with fun.
  • Math Operations: Supports standard arithmetic and power operations.
  • REPL: Interactive shell for testing code.

🛠️ Installation

  1. Clone the repository:

    git clone https://github.com/apat7/.glow.git
    cd .glow
  2. Prerequisites:

    • Python 3.x

🚀 Usage

To start the interactive shell:

python shell.py

Example Syntax

# 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")
end

📦 VS Code Extension

This repository includes a VS Code extension in glow-language-support for syntax highlighting.

About

Experimental programming language prototype with custom syntax and interpreter.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages