Re: [Tutor] pattern expressions

2008-11-07 Thread Kent Johnson
On Fri, Nov 7, 2008 at 4:22 PM, spir <[EMAIL PROTECTED]> wrote: > This guy who develops pyParsing thinks at everything. There are so > many helper functions and processing methods -- how can you know all of that > by heart, Paul ? Maybe because he *is* the guy who develops pyparsing? ;-) Kent ___

Re: [Tutor] pattern expressions

2008-11-07 Thread spir
Paul McGuire a écrit : > Question 1: > format_code:= '+' | '-' | '*' | '#' > I need to specify that a single, identical, format_code code may be > repeated. > Not that a there may be several one on a sequence. > format := (format_code)+ > would catch '+-', which is wrong. I wan

[Tutor] pattern expressions

2008-11-07 Thread Paul McGuire
Question 1: format_code := '+' | '-' | '*' | '#' I need to specify that a single, identical, format_code code may be repeated. Not that a there may be several one on a sequence. format := (format_code)+ would catch '+-', which is wrong. I want only patterns such as '--', '+++',... T

[Tutor] pattern expressions

2008-11-07 Thread spir
Hello, I'm learning to use parsers: trying pyParsing, construct and simpleparse to have a better overview. I know a bit regular expressions and rather used to BNF-like formats such as used for specification of languages. But I have never really employed them personly, so the following may be t