Re: [Pyparsing] Question/help with pyparsing
Brought to you by:
ptmcg
From: Ralph C. <ra...@in...> - 2007-11-11 10:51:26
|
Hi Vineet, > http://www.fauskes.net/nb/parsing-simulink/ > The above grammar spec requires that all config parameters are > enclosed in one master System {} anything outside this is ignored. I think it doesn't mandate "System" but any mdlName. > Config1 { > Name test > } > > Config2 { > Name test > } > > Only captures Config1 and ignores config2. Any suggestions on how to make it > work without everything having to be enclosed in {} Try changing mdlparser = mdlObject to mdlparser = OneOrMore(mdlObject) Cheers, Ralph. |