3 Star 0 Fork 0

Gitee 极速下载 / seax

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/hawkw/seax
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Seax

Join the chat at https://gitter.im/hawkw/seax

A virtual machine-based platform for executing programs in functional programming language.

This project is split across a number of separate Cargo crates, each with its own Git repository:

  • Seax Command-Line Application (this repository)

Build Status Coverage GitHub release License

A command-line application for compiling programs to SVM bytecode, executing SVM bytecode files, and invoking the  the Scheme interpreter, either on source code files or as a REPL. This is so that the individual components of the system may be written as libraries rather than as executable programs. If additional compilers targeting the SVM are developed, this main program may invoke them as well. This repository also contains the main documentation and issue tracker for Seax.
  • Seax Virtual Machine (SVM)

    Build Status Coverage Latest RustDoc Latest SVM release License

    The core of the project, a virtual machine for evaluating Seax bytecode programs. SVM is based on the SECD machine described by Peter Landin in 1963. This crate contains the main SECD implementation, definitions of the SVM instruction set and cell types, and a library for encoding and decoding Seax bytecode files. SVM is distributed as a library so that it may be included in other programs.

  • Seax Scheme Compiler

    Build Status Coverage Latest RustDoc Latest Seax Scheme release License

    A Scheme interpreter/compiler targeting the Seax VM. This implementation aims to conform with the Revised6 Report on Scheme (R6RS) whenever possible, but may not be a complatible implementation. seax-scheme is released as a library, rather than an executable, so that it may be included in other applications which use Scheme as an embedded language.

  • Seax Utilities

Build Status Coverage Latest RustDoc Latest release License

A library of general-purpose reusable code for writing compilers targeting the Seax platform. This crate includes traits for abstract syntax tree nodes for Seax programs, and an implementation of the ForkTable data structure for representing scopes and symbol tables.

Instructions

Building Seax

Seax is implemented using the Rust programming language. In order to build Seax from source, you're going to need Cargo, Rust's build automation tool. Continuous integration builds of Seax are built against the latest Rust nightly. Therefore, backwards compatibility with earlier Rust versions are not always guaranteed.

If you have Cargo and an up-to-date Rust install, you can build Seax quite easily by running cargo build --release from the root directory. This will build all of the Seax libraries and the application, which will be output to target/release/seax.

Note that this builds the fully-optimized release Seax executable, and is intended for individuals who want to use Seax. Seax developers may want to build less optimized debug executables instead.

RustDoc documentation for Seax can be built using the cargo doc command.

Using Seax

Seax currently supports the following commands:

  • seax repl launches the Scheme interpreter in read-eval-print loop mode
  • seax FILE.scm invokes the interpreter on a Scheme source code file (.scm)

The following flags are also supported:

  • -v or --verbose launches Seax in verbose mode. Prepare yourself for a great deal of debug logging if you enable this flag.
  • -d or --debug enables debugging state dumps from SVM fatal errors. This may incur a performance penalty.

Commands for running compiled Seax bytecode files and for compiling Scheme source code to Seax bytecode files will be added when these features reach a higher level of completion.

Documentation

In addition to the RustDoc API documentation provided for each Seax library, the Seax book contains detailed information on the design and implementation of Seax, as well as instructions on writing programs targeting the Seax platform. Note that the Seax book is currently under active development and is not yet complete.

The MIT License (MIT) Copyright (c) 2015 Hawk Weisman Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

Seax 是一个基于虚拟机的平台,用于执行函数式编程语言的程序 展开 收起
Rust 等 2 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Rust
1
https://gitee.com/mirrors/seax.git
git@gitee.com:mirrors/seax.git
mirrors
seax
seax
master

搜索帮助