-
Notifications
You must be signed in to change notification settings - Fork 27
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
Get rid of Scopes #3
Comments
In standalone parser definitions look like this:
Also there is a full support for anonymous metanodes. Aliasing is not possible yet, but can be substituted with composition:
(I kept the + sign since it is a good indicator of a new definition.) |
Anonymous metanodes are also supported in Moniel – 3c4f38b (This code is total mess, but it is better to go with it and clean it rather to start a new mess.) Also, composition without In/Out nodes will be much cleaner:
(Btw params are first-class subnodes, so colon notation should be also usable there.) |
But "scope" concept is still in code, so getting rid of it would be nice... |
Scopes are nothing more than anonymous metanodes, so having a special notation for them is unnecessary.
Scope notation(old syntax):Metanode notation:
Inline Metanode notation:
Anonymous Inline Metanode notation:
This notation can replace Block Definitions (old name) with Metanode Definitions. So this:
Becomes this:
Therefore one could create metanodes just by copying existing ones, but with different parameters:
But the biggest adavantage is ability to lift concrete instance to a class (think siamese architecture):
The text was updated successfully, but these errors were encountered: