Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

Document macro_rules grammar? #48

Open
ehuss opened this issue Jun 28, 2019 · 1 comment
Open

Document macro_rules grammar? #48

ehuss opened this issue Jun 28, 2019 · 1 comment
Labels
grammar Issues with the definition of the rust grammar

Comments

@ehuss
Copy link
Contributor

ehuss commented Jun 28, 2019

Should the structure of a macro_rules definition be defined? People writing parsers will likely need to parse it, so it might have some use. However, I can see how it being an "extension" makes it separate.

This could tie in with also defining the exact grammar accepted by each of the fragment kinds.

@ehuss ehuss added the grammar Issues with the definition of the rust grammar label Jun 28, 2019
@eddyb
Copy link
Member

eddyb commented Jul 1, 2019

We should do it for macro foo {...} definitions, and macro_rules! would differ only slightly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
grammar Issues with the definition of the rust grammar
Projects
None yet
Development

No branches or pull requests

2 participants