natefaubion / example-functional-compiler Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Since you have a common intermediate compilation language of system f, it would be really nice if you had a way of stringing your stages together with something like pipes package so that it would be easy to use your modules with differing compilation targets.
Interoperability seems to be severely lacking in most compiler designs.
Did you consider a language server? It seems like language servers are a major advantage that new development environments can utilize now.
The Print section does not state what it actually does.
Does it print documentation, target language like JavaScript/assembly?
https://www.youtube.com/watch?v=wSdV1M7n4gQ was very inspiring with how the language server starts compilation at the point of editing changes.
Is this something that you would consider?
It seems like lazy compilation would be advantageous for a repl or quick interpretation to quickly rerun a modified code without waiting for compilation.
In the Parsing you stated βThis means our original source is fully represented in this tree, and can be printed back out exactly.β
How do you get this to print back to source? I see no implementation for that.
Would you consider a biparsing solution similar to the one outlined in https://github.com/BebeSparkelSparkel/biparsing/blob/master/papers/1902.06950.pdf ?
Maybe this has been tried before but have you considered defining you language syntax as a data structure in a common format like json, yaml, dhall so that there can be a common reference for generating a parser for the multiple implementations of the parser.
This would allow parsers to be generated from the defined syntax so that there could be:
Questions:
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.