Giter Site home page Giter Site logo

zuzeelik's Introduction

zuzeelik

A programming language similar to lisp.

####Cloning:

Remember to get the submodules while cloning.

git clone --recursive <git repository url here>

Already have a copy of the repository locally without submodules ? Get them with:

git submodule update --init

####Compilation:

  • For Linux: Compile using c99. Libraries that are needed to be linked while compilation are math library and editline library.
cc -std=c99 -Wall zuzeelik.c mpc/mpc.c -ledit -lm -o zuzeelik

####Syntax and operators:

Zuzeelik follows polish notation while reading inputs. Those who are not familiar with it , try prefixing operators, such as:

  • 1 + 4 + 9 becomes + 1 4 9
  • 8 - ( 5 * 6) becomes - 8 (* 5 6)
  • (10 / 5) * (10 /2) becomes * (/ 10 5) ( / 10 2)

Currently it supports + , -, / , * and % symbolic operators. In textual operators it supports add, sub, mul and div. Syntax is same for using symbolic and textual operators.

#####Examples:

  • input:
zuzeelik> + 4 ( / 4 2)
  • output:
> 
  regex 
  operator|char:1:1 '+'
  expression|number|regex:1:3 '4'
  expression|> 
    char:1:5 '('
    operator|char:1:7 '/'
    expression|number|regex:1:9 '4'
    expression|number|regex:1:11 '2'
    char:1:12 ')'
  regex 

zuzeelik's People

Contributors

mr-kumar-abhishek avatar

Watchers

 avatar

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.