Giter Club home page Giter Club logo

zephyrasdl's Introduction

Zephyr ASDL Implementation

This is an implmentation of the Zephyr ASDL language as described in this 1997 paper by Wang, Appel, Korn and Serra.

ASDL is a domain-specific language that is used to describe syntax of a language. You specify tree grammars, and these tree grammars are translated into C code. This C code contains the Abstract Syntax Tree declarations and definitions.

There are plans to add more translations. D, Rust and Python would be good.

You can read the documentation for this program at extras/MANPAGE.md. There's a lot of goodies available at extras directory.

Currently, 3 revisions has been made to this program. Please view them via CHANGELOG.md. As such, the documentation is outdated. Please see examples/shell.asdl for an updated example.

How to Install

You need:

1- An implementation of Lex, e.g. Flex

2- An implementation of Yacc, e.g. Bison

3- Perl

Under a Debian-based distro, you may install these with:

sudo apt-get install perl5 flex bison

After installing these, you may:

make && sudo make install

After that, bring up the manpage and see what is added to the language:

man 1 asdl

You can also view the Texinfo with:

info asdl

The manpage and the Texinfo are available in extras under manual.html and guide.html. After installing, these files, along with examples, and everything within extras will be copied to /usr/local/share/doc/asdl. If you install via a package manager, omitt /local.

Windows...?

Windows is now equipped with WSL2, which you may use to run this program.

If you need to contact me, you can do so via email: chubakbidpaa [at] riseup [dot] net.

Thanks to anyone who uses this program.

zephyrasdl's People

Contributors

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