-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
@ SyntaxTree
macro for SyntaxTree
literals in normal lowering
This macro is quite hacky but also really cool - it allows you to use - what appear to be - normal `quote` blocks to extract `SyntaxTree` syntax literals rather than `Expr`. Including basic syntax interpolation (!?!). Honestly I'm kind of amazed this works as well as it seems to work. It even works in the REPL courtesy of some extremely sketchy digging into the REPL history internals.
- Loading branch information
Showing
2 changed files
with
97 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters