Re: terminological problem (EBNF & regular expressions)
- From: "Paul Mann" <paul@xxxxxxxxxxxx>
- Date: 20 Oct 2005 00:05:35 -0400
>> 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
.
- Follow-Ups:
- Re: terminological problem (EBNF & regular expressions)
- From: Detlef Meyer-Eltz
- Re: terminological problem (EBNF & regular expressions)
- References:
- Re: terminological problem (EBNF & regular expressions)
- From: Paul Mann
- Re: terminological problem (EBNF & regular expressions)
- From: Detlef Meyer-Eltz
- Re: terminological problem (EBNF & regular expressions)
- Prev by Date: Re: Parsing fully context-free grammars
- Next by Date: RE:stack vs. heap
- Previous by thread: Re: terminological problem (EBNF & regular expressions)
- Next by thread: Re: terminological problem (EBNF & regular expressions)
- Index(es):
Relevant Pages
|
|