Giter Club home page Giter Club logo

mush-lang's Introduction

readme

LISP 是一种构建材料 -- Alan Kay

为了更好地探索 Linda 的可能性,我们围绕 Linda 的基本原语,构建了一门简单的语言 -- mush-lang。

mush-lang 采用 LISP 风格的语法,可以视为 LISP 的一门玩具方言。 LISP 因其同构性(内外表示一致),可能是所有语言中最简单的。 这对于探索新想法非常方便。

mush-lang 目前在 Python 中实现。

我们未来也打算基于它构建类似 Erlang 的语言(Linda: 比 Actor 更好的并发模型

usage

pip install mush-lang

如果要使用 linda 原语,确保已经运行 CodeLab Adapter (Linda服务运行在 CodeLab Adapter)

REPL

# ctrl-D 退出
mush-lang

运行脚本

mush-lang examples/factorial.mu

开发环境(dev)

安装依赖

推荐在 Python(>=3.6) 虚拟环境中做实验

pip install -r requirements.txt
python setup.py install

测试

python tests/lispytest.py
python tests/linda_test.py

参考

mush-lang's People

Contributors

wwj718 avatar

Watchers

 avatar  avatar  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.