Complex-event-config changes

Scott James Remnant scott at ubuntu.com
Tue Feb 20 10:02:42 GMT 2007


On Thu, 2006-12-21 at 01:04 +0200, Johan Kiviniemi wrote:

> I propose modifying the specified syntax as follows:
> • Drop 'on' and 'from'.
> • Don't allow 'with' to begin a line.
> • Add a certain stanza that accepts a complex-event-config expression as
>   a parameter.
> 
> I haven't been able to come up with a good (i.e. short and self-
> describing) name for the stanza yet. Ideas are welcome. Let's call it
> FOO for now. :-)
> 
> Using pseudo-yacc, the rules would be defined as:
> 
> precedence
>   right 'with'
>   left  'until'
>   left  'and' 'or'
> 
> stanza : 'start' 'on' event
>        | 'stop'  'on' event
>        | 'FOO' cmplx_expr
>   ...
> 
> cmplx_expr : event
>            | cmplx_expr 'and'   cmplx_expr
>            | cmplx_expr 'or'    cmplx_expr
>            | cmplx_expr 'until' cmplx_expr
>            | 'with' job
>            | '(' cmplx_expr ')'
>            ;
> 
> These rules are much simpler than what's currently described in the spec.
> 
> Comments, criticism?
> 
I just realised that I never commented on this ...

... but this is exactly how I implemented it <g>


I dropped "with" for the time-being because it doesn't quite fit the
pattern, and I'm not sure of its behaviour.

Scott
-- 
Scott James Remnant
Ubuntu Development Manager
scott at ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/upstart-devel/attachments/20070220/a84c4776/attachment.pgp 


More information about the upstart-devel mailing list