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

Inconsistent syntax for GT and TGG syntax #100

Open
patrickrobrecht opened this issue Jun 1, 2018 · 1 comment
Open

Inconsistent syntax for GT and TGG syntax #100

patrickrobrecht opened this issue Jun 1, 2018 · 1 comment
Labels

Comments

@patrickrobrecht
Copy link
Contributor

patrickrobrecht commented Jun 1, 2018

  • The TGG syntax prefixes keywords with an # (e. g. #import, #rule), while GT does not do that (import, rule, ...).
  • Attribute conditions within a node are prefixed with (.) to automatically enable Xtext auto-completion. This is not necessary for TGGs.
  • The GT formatter forces exactly one space between a keyword and the following word, e. g.
register: FamilyRegister {
		++ -families -> family
}

The TGG does not add spaces (e. g. ++ac:AlgorithmContainer).

  • TGG uses #extends for rule refinement instead of refines used in the GT syntax.
@anthonyanjorin
Copy link
Contributor

GT uses „refines“ while TGG uses „#extends“.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants