Yup.  Knew I shouldn't have done this now.

--- Ovid <[EMAIL PROTECTED]> wrote:

>  tests          ::= test {test}

That's unused.
  
>  todo_directive ::= '#' 'TODO' ' ' {character}
> 
>  skip_directive ::= '#' 'SKIP' ' ' {character}

Those '#' signs should have a {' '} after them (zero or more spaces).

Directives are case-insensitive.  They can be TODO, todo, ToDo, and so on. 
How do I write that in a grammar?  Well, without spelling out every letter
like so:
 
 todo_directive ::= '#' {' '} t o d o ' ' {character}

 t ::= 't' | 'T'
 o ::= 'o' | 'O'
 d ::= 'd' | 'D'

Cheers,
Ovid

--

Buy the book -- http://www.oreilly.com/catalog/perlhks/
Perl and CGI -- http://users.easystreet.com/ovid/cgi_course/

Reply via email to