Giter Club home page Giter Club logo

ichigo-lang's Introduction

Ichigo Lang

ichigo-logo

to commemorate those fucking times

Build Status Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public. License

Intro

  • It's trivial, just a toy, used to familiarize with Rust
  • NO DEPENDENT TYPE

Quick Start

cargo run -- -i example/hello.ichigo

TODO List

  • core task
    • parser
    • type checker
    • type inference
    • evaluator
  • peripheral task
    • REPL
    • pretty printer

Language Feature

  • Algebraic data type
  • Lambda calculus
  • Pattern matching
  • Unicode symbol

Quick View

ℕ = σ {
    0    : ℕ
    1+   : ℕ → ℕ
}

+ = λ x : ℕ . λ { 
    1+ y . 1+ (+ x y)
    0    . x
}

ℕ𝓁 = σ {
    ∅  : ℕ𝓁
    ++ : ℕ → ℕ𝓁 → ℕ𝓁
}

take = λ {
    1+ n . λ {
            ∅       . ∅
            ++ x xs . ++ x (take n xs)
    }
    0    . λ x . ∅
}

ichigo-lang's People

Contributors

pragmatwice avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ichigo-lang's Issues

Typo in README

s/DENPENDENT/DEPENDENT/g

  • BTW,
    • why there aren't signatures for declarations?
    • why there are separate cases with different types? Would this make the lambda harder to type?

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.