Skip to content

Conversation

lua-vr
Copy link
Owner

@lua-vr lua-vr commented Dec 21, 2023

After a few months experimenting I'm quite convinced the best way to do AST annotations and manipulation in Haskell is using ideas from recursion schemes. It allows having multiple variants of the AST (a 'bare' one using lists, one for the parser with position annotations and fast concat via Data.Seq, another with custom metadata for exporting...) and once you have the instances, transforming between them is easier. Conceptually it is also simple and elegant.

Closes #17

@lua-vr lua-vr changed the title Indexed AST (recursion schemes) "Indexed functor" AST (recursion schemes) Dec 21, 2023
@lua-vr lua-vr marked this pull request as ready for review February 5, 2024 00:26
@lua-vr lua-vr mentioned this pull request Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Standard properties annotations
1 participant