Git Product home page Git Product logo

tree-sitter-purescript's People

Contributors

blinxen avatar fredthedino avatar maskhjarna avatar postsolar avatar tautologico avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

tree-sitter-purescript's Issues

No rows syntax support

Row types don't parse.

A potential implementation should also unify row types and record syntax under the same machinery.

No notion of doc comments

Neither the JS grammar nor the C scanner currently have a notion of documentation comments.
A practical consequence of this is that currently it is not possible to implement markdown injection queries so that doc comments (and maybe, regular comments too?) could be formatted by editors. This isn't hugely important in PureScript because of the guarantees of the type system, but still it would be nice to have markdown support in docs.

`?-` Holes

At the value level they get parsed as implicit arguments (a Haskell legacy).
At the type level they get parsed as ERROR + implicit arguments.

Comma-separated constraints are broken

Neither of these parse correctly:

class (C1 a, C2 a)  C3 a
instance (C1 a, C2 a)  C3 a

It didn't affect #16 because in this PR I couldn't grok what relates to constraints in the codebase, it seemed a bit complicated and related to Haskell more than to PureScript, so there I just re-implemented the thing. A future implementation should start with rewriting the constraints and providing utils to class, instance and derive (newtype) instance declarations.

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.