Re: [Pyparsing] Question/help with pyparsing
Brought to you by:
ptmcg
From: Vineet J. \(gmail\) <vin...@gm...> - 2007-11-10 13:32:50
|
Quick update. I ended up using: http://www.fauskes.net/nb/parsing-simulink/ to setup the configuration for my user models. The only change I had to make was that names were not allowed to have underscores in them. I tried to fix that by changing: mdlName = Word('$'+'.'+alphas+nums) to mdlName = Word('$'+'.'+alphas+nums+'_') and it worked. Cool. The above grammar spec requires that all config parameters are enclosed in one master System {} anything outside this is ignored. For example: System { Config1 { Name test } Config2 { Name test } } Works. However, 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 {} |