Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[henshin-dev] Semantic changes in 0.6

 Hello,

In the upcoming version 0.6 there will be some changes to the semantics
of the control structures IndependentUnit, PriorityUnit and CountedUnit.

In 0.5.x:
IndependentUnit: Apply a random subunit, repeat as long as at least one
subunit is applicable.
PriorityUnit: Apply the subunit with the highest priority, repeat as
long as at least one subunit is applicable.
CountedUnit: Accepts positive natural numbers as count and will apply
the given subunits count times.

In 0.6.x:
IndependentUnit: Apply a random subunit once.
PriorityUnit: Apply the subunit with the highest priority.
CountedUnit: Accepts -1 in addition to positive natural numbers as
count. -1 applies the given subunit as long as possible.

To achieve the semantic of an IndependentUnit from 0.5 in 0.6 you have
to create a CountedUnit with -1 as count and an IndependentUnit as its
subunit.

Cheers,
Enrico


Back to the top