Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

VIATRA2/Examples/VTCL/TypeChecking

< VIATRA2‎ | Examples‎ | VTCL
Revision as of 06:41, 25 May 2009 by Unnamed Poltroon (Talk) (Overview: Type checking)

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.

Typed variables within ASM rules

Typed variables in ASM functions

Typed variables in graph patterns

Copyright © Eclipse Foundation, Inc. All Rights Reserved.