oransimhony / o

An interpreted type-inferred programming language made in Python with SLY

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

O

An interpreted type-inferred programming language made in Python with SLY

Getting Started

To run the REPL clone the project and run main.py

git clone https://github.com/oransimhony/o.git
cd src
python main.py

In order to run a file (for example examples/helloworld.olang) Supply the file as an argument when running main.py

python main.py ../examples/helloworld.olang

Prerequisites

You need to install Python 3.6 or greater and SLY

To install SLY

pip install sly

Currently Supporting

  • Mathemtical Experssions ( + - * / % )
  • Logical operations
  • Bitwise operations
  • Variables (Ints, Floats, Strings, Booleans, Lists, Dictionaries, Structs)
  • If Statements
  • While Loops
  • For Loops
  • Functions
  • Anonymous Functions
  • Closures

Built With

  • Python 3 - The programming language used
  • SLY - For lexing and parsing

Authors

License

This project is licensed under the terms of the MIT license - see the LICENSE file for details

About

An interpreted type-inferred programming language made in Python with SLY

License:MIT License


Languages

Language:Python 100.0%