User Tools

Site Tools


01_user_documentation:07_rgg_xl:02_xl:08_object:01_module

This is an old revision of the document!


Table of Contents

Module

Module are base nodes used in model. They extends Node by default, but can extend another object if specified.

Constructor

Additionally modules are created with a default constructor (aka a way for groimp to create them without parameters)

e.g. module A(int len) {} can be added in a production rule with A(), A, A(1), …

Pattern

Module are also compiled with a default pattern. e.g. they can be added in predicate with an attribute pattern: (with the same A as before)

[ A(x, y) =⇒ ;]

x will be the instanceof the A, and y, the (int) len.

01_user_documentation/07_rgg_xl/02_xl/08_object/01_module.1755678741.txt.gz · Last modified: 2025/08/20 10:32 by gaetan