Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

True two-tier syntax #226

Open
MostAwesomeDude opened this issue Mar 16, 2021 · 0 comments
Open

True two-tier syntax #226

MostAwesomeDude opened this issue Mar 16, 2021 · 0 comments

Comments

@MostAwesomeDude
Copy link
Contributor

The parser should fully parse expressions like:

def expr := m`42`

And the expander should expand them into expressions like:

def expr := astBuilder.LiteralExpr(42, _makeSourceSpan("m``", true, 1, 0, 1, 2))

Or something with similar spirit. The goal is to have AST literals be as baked into the language as ints or strings. Other quasiliterals are not affected by this.

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

No branches or pull requests

1 participant