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

Macro Ssub System for Syntax Generation - Syntax Binders / Syntax Variables, Parameterisation / Generics / Templating, Syntax Maching and Syntax Builders #48

Open
sirinath opened this issue Jan 17, 2017 · 0 comments

Comments

@sirinath
Copy link

sirinath commented Jan 17, 2017

I think add this to Nitra will increase its expressive power

  • Syntax Binders / Syntax Variables (will not be part of syntax definition unless explicitly used in syntax definition)
    • Make all Nira statements like expressions (ability to save parts of the syntax in binders for later reference)
    • Ability to define binders to the expressions (save parts of the definitions for reuse)
    • And Or relationships with expressions (this syntax or / and that syntax)
  • Parameterisation
    • Given a set of parameters generate different syntaxes like a function
  • Syntax search and matching
  • Syntax Builder (Interface / Type Class like syntax creation - search for context dependent matching syntax and apply it to a template)

This will hopefully remove the verbosity of the current scheme and make it more concise.

Maybe you can borrow ideas from http://www.rascal-mpl.org/. http://flix.github.io/

@sirinath sirinath changed the title Syntax Binders / Syntax Variables, Parameterisation / Generics / Templating, Syntax Maching and Syntax Builders Macro Ssub System for Syntax Generation - Syntax Binders / Syntax Variables, Parameterisation / Generics / Templating, Syntax Maching and Syntax Builders Jan 18, 2017
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