Closed gnbl closed 6 years ago
I made the correction you recommended. New version is 0.0.3 and is available on PyPi. Thanks!
As for the clarity of the debugging output, that's pretty much determined by the pyparsing package. I haven't seen any way of tailoring it to make it easier to spot problems.
Great, thank you.
Attempting to parse a netlist like
fails with a
ParseException
and many "Suppress:" messages that seem not very helpful with debugging (could this output be properly formatted or condensed to point out the actual issue a little more direct?).Removing data from the failing netlist to more resemble a working one (blank sheet) leads to the culprit: the string "a" string in
rev
, instead of a number as required in: https://github.com/xesscorp/kinparse/blob/master/kinparse/kinparse.py#L80With that info, the error output
[{Suppress:("(") Suppress:("rev") [{W:(0123...) [{"." [W:(0123...)]}]}] Suppress:(")")}] &
makes a little more sense as it seems to show what is expected (a number).Replacing this with
rev = _paren_clause('rev', Optional(anystring))
resolves the problem.