jfabry / LiveRobotProgramming

Live Robot Programming
http://pleiad.cl/lrp
8 stars 3 forks source link

Have syntactic sugar that allows blocks in transitions instead of event names #118

Closed jfabry closed 8 years ago

jfabry commented 8 years ago

Translate

(on [...] src->dest)

to

(on $NUM src->dest)
(event $NUM [...])

and translate

(on [...] *-> dest)

to

(on $NUM *->dest)
(event $NUM [...])

Keep a counter int NUM in the parser and have an increasing accessor.

jfabry commented 8 years ago

Implemented in LiveRobotics-Parser-johanfabry.63 and LiveRobotics-UI-johanfabry.138 . Tests in LiveRobotics-Tests-johanfabry.61

The counter is actually a property, not an instvar.