[Pyparsing] Optional() is not providing the desired result
Brought to you by:
ptmcg
From: Shankar H. <sha...@ya...> - 2010-03-19 19:51:32
|
Hi All, I am shankar, just started using the pyparsing module for parsing the C++ header file, currently i am facing one problem with Optional() as below sample Code : Optional(functionSpecifierName) + Optional(typeDef) + identifier here i specified "functionSpecifierName" & "typeDef" are optional, when i give the input to the above code as only the identifier data then it is not parsing the data even though i specified "functionSpecifierName" & "typeDef" as optional Thanks -Shankar The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/ |