Coder Social home page Coder Social logo

abominable-klambda-compiler's Introduction

Abominable KLambda->Haskell Compiler

A hastily written, undocumented KLambda->Haskell Compiler

Abominable converts KLambda code to Haskell code. It was written in March 2015, and is a cautionary lesson in the importance of documenting your code as a key to later understanding of that code.

http://vignette1.wikia.nocookie.net/headhuntersholosuite/images/d/da/Lexx_3x03_001.jpg/revision/latest?cb=20110609174657

Abominable is responsible for generating the backend of Shentong, a Haskell port of the Shen programming language.

Abominable is incapable of generating code that can be parsed with any GHC version later than 7.6.3. This is definitely due to a lingering bug in Template Haskell that someone really ought to correct.

Usage

Abominable reads from a list of files specified in Compiler/Backend.hs :

klFiles = [ "klambda/toplevel.kl"
          , "klambda/core.kl"
          , "klambda/sys.kl"
          , "klambda/sequent.kl"
          , "klambda/yacc.kl"
          , "klambda/reader.kl"
          , "klambda/prolog.kl"
          , "klambda/track.kl"
          , "klambda/load.kl"
          , "klambda/writer.kl"
          , "klambda/macros.kl"  
          , "klambda/declarations.kl"
          , "klambda/types.kl"
          , "klambda/t-star.kl"]

All paths are relative to the directory in which Abominable is stored. The Backend *.hs files are output to Shentong/Backend, and if that directory doesn’t already exist in the pwd, Abominable throws an exception and returns to the command line.

abominable-klambda-compiler's People

Contributors

mthom avatar

Stargazers

 avatar  avatar

Watchers

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