>>> "SIGOURE" == SIGOURE Benoit <sigoure.benoit(a)lrde.epita.fr> writes:
> https://svn.lrde.epita.fr/svn/xrm/trunk
> Index: ChangeLog
> from SIGOURE Benoit <sigoure.benoit(a)lrde.epita.fr>
> Add RIVF's equivalent in XRM meta-code.
> Usage: xrm-front -i rivf.xpm -o rivf.pm -D
> -D stands for --desugar (it will add an additional pass after the
> main pipeline to desugar as much as possible everything and perform
> constant propagation). This is completely optional.
> One thing has been omitted here: support for battery_mode=0 (which is
> basically the same thing but without bothering with b[x][y] and
> without having to check at every update whether or not we should go
> in the OFF state because we run out of power). I omitted this for the
> sake of clarity although it's fairly straightforward to add it (since
> it's only a matter of commenting out some lines).
It is really nice. However, the M4 solution remains clearer IMHO.
Functions will be most welcome.
>>> "SIGOURE" == SIGOURE Benoit <sigoure.benoit(a)lrde.epita.fr> writes:
> Add the static_rand builtin.
> NOTE: Some C was needed to implement rand(from, to) because for some
> reason I didn't succeed in writing something equivalent in Stratego.
> For some reason, the numbers I generated were all too small.
Finalement, tu sais pourquoi ?
>>> "SIGOURE" == SIGOURE Benoit <sigoure.benoit(a)lrde.epita.fr> writes:
> +for file in `find "@srcdir@" -name '*.pctl' -o -name '*.csl' | sort`; do
Honestly, using @var@ in a script reads awful. I strongly suggest
adding
strdir='@srcdir@'
in the prolog, and using $srcdir.