Giter Club home page Giter Club logo

yui's Introduction

Yui

Yui is a strongly-typed, interpreter-based language.

Introduction

Yui is a language designed for shell script.

I write it to improve my Rust skill. So far I have not implemented the whole interpreter, while I still welcome advices and codes.

A sample of Yui Grammar is:

(import "ritsu")
# K-ON! 
# This is a comment
type Vec (S: Any) { # This is also a comment
    (nil)
    (cons S Vec)
}

type Prod (S: Any P: Any) {
    (prod S P)
}

(scope "yui")
    (open "mio")

    (let (incr: Int x: Int)
        (+ x 1))

    (generic (map: Vec xs: Vec fun: <Arrow Any Any>)
        (match xs  # This is also a comment
            (nil nil)
            ((cons x xs) (cons (fun x) (map xs fun)))))

    (say (map (cons 1 (cons 2 nil)) incr))

    (let prod: Prod@<Int String> (prod 1 "hello"))

(end "yui")

I am focusing on the type checker of Yui now and it is a bit difficult to me.

yui's People

Contributors

brethland avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

isgasho

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.