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

Support a variety of attributes #38

Open
3 tasks
pczarn opened this issue May 28, 2019 · 0 comments
Open
3 tasks

Support a variety of attributes #38

pczarn opened this issue May 28, 2019 · 0 comments

Comments

@pczarn
Copy link
Owner

pczarn commented May 28, 2019

doc comments on rules in grammar

  • support

Example

/// A potentially captured element.
pat_elem ::= pat:pattern elem:elem;

Should result with the following somewhere down the road

#[doc = "A potentially captured element."]
struct PatElem {
    pat: Pattern,
    elem: Elem,
}

inline attrs

  • support
  • variety of levels

Example

grammar! {
    #![inline(level = 2)]
    ...
}
@pczarn pczarn changed the title Support doc comments on rules in grammar Support a variety of attributes May 31, 2019
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