GithubHelp home page GithubHelp logo

mrarmandoh / pcf-compiler Goto Github PK

View Code? Open in Web Editor NEW

This project forked from anicolaspp/pcf-compiler

0.0 0.0 0.0 0 B

A compiler for PCF (Programming Language for Computable Functions) Ported from F# to Scala

Scala 34.56% CSS 11.28% XSLT 54.16%

pcf-compiler's Introduction

PCF-Compiler Build Status

A compiler for PCF (Programming Language for Computable Functions) ported from F# to Scala.

PCF is functional and Turing Complete!

  • More details about the language can be found here and here.

  • Be aware that this is a project to show the power of functional programming so avoiding imperative style is priority.

  • TDD is required to commit.

The grammar

Exp ::=  x | n                               
| true                            
| false                           
| succ                            
| pred                            
| iszero                          
| if Exps then Exps else Exps     
| fun x -> Exps                   
| rec x -> Exps                   
| (Exps)                         
| let x = Exps in Exps                   
Exps ::= Exps Exp | Exp

pcf-compiler's People

Contributors

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