Optional is pretty much the same as ZeroOrOne. You can also supply a default value on Optional if there is no matching input.
All of pyparsing's classes are listed in the epydoc-generated documentation. Go to the htmldoc subdirectory of your pyparsing directory, and open index.html.
-- Paul
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I will try your suggestion when I am done with searching for my mistakes I made, obviously I made too many changes at once on another part of the tree.
With best regards,
Frans.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi All,
One has:
OneOrMore, ZeroOrMore, but how do you neatly do
ZeroOrOne?
With best regards,
Frans.
Optional is pretty much the same as ZeroOrOne. You can also supply a default value on Optional if there is no matching input.
All of pyparsing's classes are listed in the epydoc-generated documentation. Go to the htmldoc subdirectory of your pyparsing directory, and open index.html.
-- Paul
Hi Paul,
I will try your suggestion when I am done with searching for my mistakes I made, obviously I made too many changes at once on another part of the tree.
With best regards,
Frans.
Hi, Paul,
My appologied for the long delay, something went in between.
I tried your suggestion and it works, great.
Frans.