Giter VIP home page Giter VIP logo

relit's People

Contributors

charlesetc avatar cyrus- avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

relit's Issues

Support for OCaml 4.06

That's the most recent release of the compiler. How hard would this be? Can we use the OCaml preprocessor to simultaneously support different versions of Typedtree in the same repository? Might depend on #7.

dune ppx support

Is this being worked on? Has anyone documented why it doesn't work yet? Using relit with my ocaml / dune project would be a huge boon for my team.

Small context independence bugs

There are two issues in the code that is generated right now for a TLM application, e.g.:

let regex =
  /* open Pervasives to ensure context independence */
  Pervasives.(
    /* open $regex's Dependencies, again insuring context indepedence
       (RelitInternalDefn_regex is Relit's internal way of saying $regex) */
    Regex_notation.RelitInternalDefn_regex.Dependencies
      .(
      () => (
        Regex.Or(
          Regex.Str("a"),
          Regex.Star(Regex.Str("b")),
        /* a type assertion that the expansion is the type the notation definition specified */
        ): Regex_notation.RelitInternalDefn_regex.t
      )
    )
  )();

First, the module Regex_notation in the path to the dependencies will be resolved relative to Pervasives, which is incorrect. Second, the expansion type annotation will be resolved relative to the Dependencies, which is also incorrect. Very unlikely to encounter either bug, but we should fix this. I think the correct code that should be generated is:

let regex = {
  module RelitInternalDependencies = Regex_notation.RelitInternalDefn_regex.Dependencies;
  Pervasives.(
      RelitInternalDependencies
      .(
      () => (
        Regex.Or(
          Regex.Str("a"),
          Regex.Star(Regex.Str("b"))
        )
      )
    )
  )() : Regex_notation.RelitInternalDefn_regex.t;
};

Debug mode!

Add note to readme showing how to output asts.

One for each sort of output.

Update installation instructions to use opam

Ideally, we would be able to do opam install relit or maybe opam install reason-relit relit instead of having to checkout the two repos and make. We were working on this -- what's the status?

Support for ppxlib.0.3.1+

Something changed with how ASTs are represented there, so our code doesn't work anymore if we upgrade to ppxlib.0.3.1+

Do-notation

Hello!

There's recently been several threads around the Reason syntax repo and related ppx's for supporting the equivalent (or something fulfilling a subset of the requirements) of Haskell's do-notation.

It'd be a very interesting point in this conversation to be able to have/showcase a sample/standard do-notation available to use with relit.

Mark this as a #feature-request, but I'd be interested in looking into it.

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.