4 ms·
Oh this perennial idea. That our editors could produce plain text, but represent everything as a rich data structure. This sails happily along until someone re
by weeksie 9y ago
Oh this perennial idea. That our editors could produce plain text, but represent everything as a rich data structure.
This sails happily along until someone realizes that they _already do that_. Code is structured. It compiles to an AST which can be worked on by any number of IDEs and editors.
You want a super rich structure in that regard? Something that makes refactoring a breeze? Well, you're asking for a strong, expressive type system.
Shrug.
Nothing to see here.
- petters 9y agoCame here to say this. Yes, use an IDE. Obviously, there are huge benefits of using text as storage. What if your team wants to start using Java, but git does not support it yet? Or Joe's editor?
- erikpukinskis 9y agoWhat are good tools for running scripts on an AST? Are you talking about like an Eclipse plugin or something?
- hdhzy 9y agoRoslyn is basically a compiler API for .NET. Take a look at this walkthrough [0] to see how to implement custom diagnostics and quick fixes that operate on AST level. [0]: https://social.technet.microsoft.com/wiki/contents/articles/26954.writing-diagnostic-with-code-fix-using-roslyn-net-compiler-platform.aspx https://social.technet.microsoft.com/wiki/contents/articles/...
- ilaksh 9y agoI will repeat my comment. See Projectional Editors and Nim macros.