Skip to content
/ o Public

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

License

Notifications You must be signed in to change notification settings

oransimhony/o

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages