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.
VIATRA2/HowTos/NativeASMRule
VIATRA2 supports native ASM rules that can be invoked within a vtcl program.
Example Native ASM function
- Step 1: First, you have to implement the org.eclipse.viatra2.gtasm.interpreter.nativeasmrule extension point provided by the interpreter (INativeAMSRule interface)
- Step 2: Then, using the @native annotation on an ASM rule (in vtcl source) the interpreter tries to invoke the rule's native representation (its ID is based on the fqn of the rule)
@native rule testnativeasm(in FirstVariable, in SecondVariable ) = {... }