Not all reductions reduce from the same sort to the same value.

Question: what is a good syntax?

Submitted by Eelco Visser on 20 May 2014 at 09:58

On 20 May 2014 at 10:13 Eelco Visser tagged 0.1

On 21 May 2014 at 21:29 Vlad Vergu commented:

Implemented. The new (temporary) syntax is:

module foo
signature
   arrows
      Term --name> Term

rules
    x --name> y

The default rule is called --> which is desugared to --default> and must be explicitly declared. Example

module foo
signature
   arrows
      Term --> Value

On 21 May 2014 at 21:29 Vlad Vergu closed this issue.

On 21 May 2014 at 21:38 Eelco Visser commented:

pretty it is not

perhaps adding an extra - or adding the - to before the > makes the arrow impression stronger; but I suppose typical rule names will be one letter


module foo
signature
arrows
Term -name-> Term
Term -e-> Term

rules
x -name-> y

Foo(x, y) -e-> Bar()
where x -e-> Z(), y -f-> h


On 21 May 2014 at 21:39 Eelco Visser commented:

And how does this interact with the syntax for emitted signals?


On 21 May 2014 at 21:56 Vlad Vergu commented:

Indeed it isn’t pretty. I changed syntax to have an additional -. New syntax (with emitted signals) is as follows:

module foo
....
arrows
   Term -name-> Term

rules

  x -L msg, E ex-n-> y

  x --> y

  x -n-> y

  x -L msg, E ex-> y

Log in to post comments