Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/exercism/haxe-representer
https://github.com/exercism/haxe-representer
community-contributions-paused exercism-representer exercism-tooling
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/exercism/haxe-representer
- Owner: exercism
- License: agpl-3.0
- Created: 2021-02-02T17:28:58.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-03-01T13:49:58.000Z (10 months ago)
- Last Synced: 2024-05-01T11:25:18.560Z (8 months ago)
- Topics: community-contributions-paused, exercism-representer, exercism-tooling
- Language: Haxe
- Size: 68.4 KB
- Stars: 0
- Watchers: 4
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Haxe Representer
A normalizing representer for Exercism's Haxe track.
## Progress
Currently the following is normalized by the representer:
- [x] Comments
- [x] Whitespace
- [x] Braces
- [x] Exponents
- [x] Keywords (final, inline, public, private)
- [x] Identifiers (classes, members, enums, typedefs)
- [x] Booleans
- [x] Import statements
- [x] Using statements
- [x] Declaration order of vars, functions, enums, typedefs## Design
The high-level steps the representer takes:
1. Apply formatting to original source code using haxe-formatter
2. Parse into AST using haxe-parser
3. Apply normalizations
4. Convert AST back to source code
5. Apply formatting to normalized code
6. Write out representation and mapping