Last active
January 3, 2016 10:42
-
-
Save ionoy/b2e7f8fcb8b8f7c1b0cb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abstract ast NodeMember { | |
in Parent : Node; | |
in TemplateScope : Scope; | |
TemplateScope = TableScope("Templates", null); | |
} | |
ast Node : NodeMember { | |
Members : NodeMember*; | |
Members.TemplateScope = TemplateScope; | |
} | |
declaration TemplateDefinition : NodeMember { | |
symbol { | |
Kind = "Template definition"; | |
} | |
Members : NodeMember*; | |
ContainingTable = TableScope("", null); | |
Parent.TemplateScope = Parent.TemplateScope.UnionWith(ContainingTable); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment