Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "VIATRA2/Examples/VTCL/TypeChecking"
(→Overview: Type checking) |
(→Overview: Type checking) |
||
Line 10: | Line 10: | ||
=== Typed variables within ASM rules === | === Typed variables within ASM rules === | ||
+ | |||
+ | === Typed variables in ASM functions === | ||
=== Typed variables in graph patterns === | === Typed variables in graph patterns === |
Revision as of 06:41, 25 May 2009
Contents
Overview: Type checking
Type checking is introduced to the VTCL language in a backward compatible way. This means that any existing VTCL transformation should compile without modification.
As the main extension of the language, one can add type information to
- all variables defined locally with the let rule
- a parameter of an ASM rule, graph pattern or graph transformation rule
- for the parameters and return values of ASM functions
Then the VIATRA2 parser checks if these variables are used in a type conformant way.