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

starting to add syntax and semantics of syntax role modifiers #15

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

jurgenvinju
Copy link
Member

@jurgenvinju jurgenvinju commented Dec 28, 2023

@PaulKlint this is a draft; will grow slowly to implement the type constructors:

  • data[..]
  • syntax[..]
  • lexical[..]
  • layout[..] and
  • keyword[..]

Represented by amodifyTo(AType arg, SyntaxRole sr) and applies to aadt(_,_,SyntaxRole sr) to modify the syntax role. The tricky details are in matching and instantiation, i.e. the semantics of matching against data[&T] and then instantiating a syntax[&T] where &T is bound.

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