maskhjarna / tree-sitter-purescript Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Row types don't parse.
A potential implementation should also unify row types and record syntax under the same machinery.
_ = 1
does not error out, whereas it should. Using the wildcard as the whole LHS of =
(or <-
) is only legal in where, do and let blocks.
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.
At the value level they get parsed as implicit arguments (a Haskell legacy).
At the type level they get parsed as ERROR + implicit arguments.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.