Optional parameter

38 views
Skip to first unread message

Manuel Martins

unread,
Feb 4, 2013, 3:51:26 PM2/4/13
to sprache...@googlegroups.com
Hello,

I have a situation where I'm parsing a file, line #1 can be can be either A or B, if line #1 is A then line #2 is B, however line #1 can be be B

Example 1 -  
  A|xx|xx
  B|xx|xx
  C|xx|xx

Example 2 -
  B|xx|xx
  C|xx|xx

How can I create a Parser that will allow for optional value?  I also want to get the value for A & B  returned.

Any help or direction would be greatly appreciated.

Thank you,

Manny


Reply all
Reply to author
Forward
0 new messages