Occurences

2005-05-29
2013-05-14
  • F.A. Pinkse
    F.A. Pinkse
    2005-05-29

    Hi All,

    One has:
    OneOrMore, ZeroOrMore, but how do you neatly do
    ZeroOrOne?

    With best regards,

    Frans.

     
    • Paul McGuire
      Paul McGuire
      2005-05-29

      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

       
    • F.A. Pinkse
      F.A. Pinkse
      2005-05-31

      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.

       
    • F.A. Pinkse
      F.A. Pinkse
      2005-07-04

      Hi, Paul,

      My appologied for the long delay, something went in between.

      I tried your suggestion and it works, great.

      Frans.