Giter Club home page Giter Club logo

whimsy's Introduction

The Whimsy Compiler Framework

build jitpack

Whimsy is a research project that aims to make writing compilers, transpilers and source analysis tools easier by supplying easy to use facilities embedded in a general programming language.

Whimsy currently comprises two parts:

  • Autumn: a parsing library.
  • Uranium: a middle-end compiler library.
    Uranium annotates ASTs and computes over them, using a reactive architecture.

It also comes with a few examples:

Autumn

Autumn is a Kotlin parser combinator library written in with an unmatched feature set:

  • Bundles pre-defined parsers and combinators for most common use cases
  • Write your own parsers with regular Kotlin/Java code
  • Scannerless, but with tokenization support
  • Associativity & precedence support for operators
  • Left-recursion support
  • Context-sensitive parsing !!
  • Pluggable error-reporting mechanism
  • Reasonably fast (3x slower than ANTLR)
  • Thoroughly documented
  • Small & clean codebase

โ˜ž LEARN MORE

Uranium

Uranium is currently a work in progress.

Installation

In all cases, you will still need Kotlin installed, either as part of IntelliJ IDEA or on the command line.

Using Maven

In your pom.xml, add the following inside <project><repositories>:

<repository>
    <id>jitpack.io</id>
    <url>https://jitpack.io</url>
</repository>

and the following inside <project><dependencies>:

<dependency>
    <groupId>com.github.norswap</groupId>
    <artifactId>whimsy</artifactId>
    <version>-SNAPSHOT</version>
</dependency>

Using Gradle

In your build.gradle, add the following inside allprojects { repositories {:

maven { url 'https://jitpack.io' }

and the following inside dependencies {:

compile 'com.github.norswap:whimsy:-SNAPSHOT'

Other Build Systems

See https://jitpack.io/#norswap/whimsy

Manually

Download the latest release kotlin-fatjar and add it on your project's classpath.

The release bundles Whimsy's only dependency: the Apache BCEL library, but renames its packages to avoid any possibility of conflict.

The fatjar also includes test fixtures to help you build your own tests. Those depend on the TestNG library (built with version 6.11 but should be more broadly compatible), which is not bundled in.

From Sources

See the Developer Guide.

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.