Comments (5)
Are there any existing code formatters for Coq?
from stdlib2.
@gmalecha The beautifier is one but in its current state it produces quite horrible output. However, we could consider working on it again to make it a good formatter. It would typically be the kind of thing that should be available in a Coq language server (cc @ejgallego). Code formatters are a very trendy approach these days (gofmt, elm-format, etc.) to making sure that discussions on formatting do not interfere with other works and to "reducing cognitive load".
from stdlib2.
You can indeed use SerAPI to print a whole file in a slightly more controlled way, however this uses the same printer than the "beautifier", so you won't get terribly different output even if you could perform some additional tweaks thanks the to extra control.
Of course, you can parse the JSON/SEXP representation of the AST in any other language and print as you'd like.
from stdlib2.
from stdlib2.
@spitters thanks for the link, you could implement that kind of script today in a robust way using SerAPI.
from stdlib2.
Related Issues (17)
- Stdlib2 license HOT 4
- Plan for backwards compatibility and deprecation HOT 3
- Make the roadmap of the library more explicit and add dates HOT 5
- discussion of modularity mechanisms HOT 7
- Finite maps and finite sets HOT 3
- Universes HOT 10
- Naming conventions HOT 10
- Compatibility with std++ ? HOT 3
- Should auto-generated schemes be moved inside there own modules/records HOT 2
- It seems I have a short proof of P=NP - check it HOT 2
- What should go in the prelude? HOT 6
- one smallest partial equivalence relation for each type HOT 12
- all functions should come with parametricity proofs HOT 2
- Strict behavior for hint databases HOT 8
- What should go in stdlib? HOT 10
- Add a README and a CONTRIBUTING guide even before there is code.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stdlib2.