Git Product home page Git Product logo

zai-pl's Introduction

GPLv3 license zai PyPI version fury.io PyPI status

Zai

Zai is a small programming language which I wrote for fun. The language:

  • Is Dynamically typed
  • Is Entirely written in Python
  • Supports classes
  • Supports first-class functions
  • Supports writing and importing modules

NOTE: This is a project made for both learning and fun. It is not meant to be used in serious projects.

Installation

Git

git clone https://github.com/sehnsucht13/zai-pl.git
cd zai-pl
# Start a REPL
python3 -m zai
# Run a file called FILENAME.zai
python3 -m zai FILENAME.zai

Pip

# Install from pip
pip install --user zai-pl

# Start a REPL
zai-pl

# Run a file called FILENAME.zai
zai-pl FILENAME.zai

Language Tour

A small tour of the language showing some of the features available along with language syntax can be found within the docs/language-tour.md file.

Missing Features and Future Improvements

Here is a list of the features which are currently missing but will be implemented in the future

Language Features

  • Basic class inheritance
  • for loops
  • Multiline comments
  • Prefix/Postfix increment and decrement operators
  • Printing more than one variable at a time.
  • Floating Point Numbers
  • Add support for source code comments

Dev Features

  • Improve test coverage
  • Automatic Deploy of new versions with CircleCI

Internals and Documentation

  • The language grammar can be found within the docs/grammar file.
  • Some more in-depth details about the implementation(how objects are represented internally, environment...) can be found within docs/architecture.md file.

Resources

Below are some of the resources which I found helpful while making this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.