Re: terminological problem (EBNF & regular expressions)



>> BTW, show me a more concise way to specify "zero or more of X or Y
>> or Z separated by commas"
>> LRgen allows one to do it like this: [X|Y|Z]/','...
>
> Similar concise: ((X|Y|Z),)*
>

Would this allow the following sequence to be legal?

X,Y,Z,

If so, it's not the same as [X|Y|Z]/','...
It seems like one would have to say

((X|Y|Z)(,(X|Y|Z))*)?

to accomplish the same thing.


Paul Mann
http://parsetec.com

.



Relevant Pages

  • Different Color
    ... And if and other sequence id found on that row to assign another color. ... Then to check and assign the next row until the range is empty. ... My question above rests on two of the same colors. ... Prev by Date: ...
    (microsoft.public.excel.programming)
  • Re: Towers of Hanoi
    ... the way won't help you with the recursion. ... changing the base case to 0 might make it more concise or ... elegant. ... Prev by Date: ...
    (comp.lang.scheme)
  • Re: Book advice:Deitel & Deitel
    ... Personally I think I'm a stong technical reader so I much prefer concise ... and exacting text. ... Mike ... Prev by Date: ...
    (comp.lang.c)
  • "Master" shape numbers in multiple pages?
    ... Create a box or some sort of holder for text. ... page number as the starting sequence for numbering shapes. ... Prev by Date: ...
    (microsoft.public.visio.general)
  • product of an arithmetic sequence
    ... (With polynomial time complexity.) ... Sebastian Martin Ruiz ... Prev by Date: ...
    (sci.math)