On Sun, 9 Mar 2014, SF Markus Elfring wrote:
> >> I find the use of the element "n" (the name in square brackets) not > >> obvious from > >> the Coccinelle manual so far. > > > > It is the number of elements that have been matched. > > A part of my difficulty with interpretation of the grammar for the semantic > patch language came from this notation. > > "metadecl ::= ... > | parameter [list] ids ; > | parameter list [ id ] ids ; > ..." > > > Do square brackets indicate in one line that an information is optional while > in > the other line they should be used as literals? Yes. The spaces around the [ ] means that they are tokens. julia _______________________________________________ Cocci mailing list [email protected] https://systeme.lip6.fr/mailman/listinfo/cocci
