Giter Club home page Giter Club logo

roslyn's Introduction

Roslyn fork for Concept C#

This repository contain a fork of the Roslyn compiler to add support for concepts (think somewhere between Haskell typeclasses and Scala implicits to C#). This work is being carried out by Claudio Russo (@crusso) and Matt Windsor (@CaptainHayashi).

This is an experimental prototype, and is not suitable for production or even for drop-in addition to the mainstream C# compiler. Expect it to eat your laundry, set fire to your cats, and otherwise ruin your day.

Examples

Examples of the syntax, which may be compiled with this fork's csc, can be found in the concepts\tests and concepts\code directories.

Design overview

We outline our general design (based on implementation ideas by Claudio Russo) in concepts\docs\concepts.md.

Open (and closed) design decision questions and requests for comment are hosted on a separate repository.

How to compile the compiler

See Roslyn's existing documentation on building, testing, and debugging: we haven't changed the build process for the compiler.

How to compile the examples

First cd to concepts and compile ConceptAttributes.dll:

csc /target:library ConceptAttributes.cs

This file must be referenced by anything using concepts.

Then, you can compile the examples:

  • The examples in the concepts\tests directory have a Makefile that can be used with nmake. These reference the compiler built above, so remember to build csc!
  • Other examples have MSBuild solutions: you will need to open these with a version of Visual Studio with our csc added (ie, run from the CompilerExtensions project of Roslyn). See above.
  • To build individual files using concepts, just use our csc. Remember to reference (/reference) ConceptAttributes.dll: things break without it.

roslyn's People

Contributors

cyrusnajmabadi avatar tmat avatar jaredpar avatar heejaechang avatar agocke avatar mavasani avatar gafter avatar amcasey avatar jasonmalinowski avatar alekseyts avatar cston avatar davkean avatar dustincampbell avatar tannergooding avatar vsadov avatar jmarolf avatar msjohnhamby avatar genlu avatar kevinh-ms avatar mattwar avatar pharring avatar pilchie avatar brettfo avatar tmeschter avatar balajikris avatar basoundr avatar tyoverby avatar drognanar avatar srivatsn avatar shyamnamboodiripad 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.