Skip to content

Add CST<->AST conversion - #21

Merged
rnortman merged 1 commit into
mainfrom
fltkast
Aug 6, 2026
Merged

Add CST<->AST conversion#21
rnortman merged 1 commit into
mainfrom
fltkast

Conversation

@rnortman

@rnortman rnortman commented Aug 6, 2026

Copy link
Copy Markdown
Owner

This adds a new .fltkast sidecar DSL, which allows fltk to generate higher-level, more ergonomic AST classes from CST parse results, and also convert AST back to CST for unparsing/formatting. Applications that need complete fidelity with the original grammar (like refactoring tools and formatters) should stick with CST, while most applications that just want to get at the semantic content will be better served by the AST.

This adds a new `.fltkast` sidecar DSL, which allows fltk to generate
higher-level, more ergonomic AST classes from CST parse results, and
also convert AST back to CST for unparsing/formatting. Applications that
need complete fidelity with the original grammar (like refactoring tools
and formatters) should stick with CST, while most applications that just
want to get at the semantic content will be better served by the AST.
@rnortman
rnortman merged commit 327f13b into main Aug 6, 2026
1 check passed
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.

1 participant