01_user_documentation:07_rgg_xl:02_xl:08_object:01_module
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| 01_user_documentation:07_rgg_xl:02_xl:08_object:01_module [2025/09/04 14:33] – gaetan | 01_user_documentation:07_rgg_xl:02_xl:08_object:01_module [2025/09/04 15:24] (current) – gaetan | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Module ====== | ====== Module ====== | ||
| - | Module | + | Modules |
| + | - A public constructor with all its fields as variables | ||
| + | - Fields for each of the module [[: | ||
| + | - Accessor methods for these fields | ||
| + | - A [[: | ||
| + | ====== | ||
| - | + | {{namespace>: | |
| - | ===== 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.1756989212.txt.gz · Last modified: 2025/09/04 14:33 by gaetan
