Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nadako/crazyparser
https://github.com/nadako/crazyparser
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/nadako/crazyparser
- Owner: nadako
- Created: 2017-01-27T09:37:21.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-08T16:37:13.000Z (almost 8 years ago)
- Last Synced: 2024-10-25T09:50:02.026Z (about 2 months ago)
- Language: Haxe
- Size: 120 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# crazyparser (forever WIP)
This is my attempt to write a parser for Haxe (and maybe in future "my own language") in a way the resulting AST preserves full fidelity
and provides ways to manipulate it so one could re-generate source code from changed AST, which is very useful for IDE support and
all kinds of refactoring and code formatting. The parser should also be as error-tolerant as possible, inserting missing expected nodes
where possible, because we want that AST to work while editing the file.If something comes out of this, I hope to use it for the [Haxe Language Server](https://github.com/vshaxe/haxe-languageserver) to provide
advanced features, as well as for writing a decent Haxe code formatter.This is heavily inspired by Microsoft's Roslyn and TypeScript parsers/AST structures.