Is there a way to define a primitive type (integer, string, …) variable in a rule, e.g. to facilitate/enable attribute calculations?
P.S.: GrGen.NET is a quite popular graph transformation library (check it out on http://grgen.net) based on the .NET-framework. It would be cool if someone could define a Tag for GrGen.NET, I don’t have enough reputation :-). Cheers!
If you define a primitive type variable in a rule, the key word var is crucial.
Do it like this:
If you want to create a non-primitive variable, e.g. an array, you need to create a variable by reference using the keyword ref instead of var.