Closed yipengsun closed 6 years ago
We discovered that we can leverage pyparsing
library. The following snippet might be useful:
(asciiHeader
(asciiVersion 3 0)
(fileUnits Mil)
)
import pyparsing as pp
parser = pp.nestedExpr()
parser.parseFile(<filename>)
To cleanup the parsed result, use the following method:
parser.parseFile(<filename>).asList()
Add PcadReader to pyUTM/io.py for reading Pcad
format netlist
It seems that v0.4
can do PT-side checking now. The remaining task is to do the DCB-sdie checking.
DCB-DCB parsing has been implemented.
So far we prefer
pCad
netlist, since it looks like alisp
program, which is very easy to parse. Tom was suggesting some alternative format, the name which I forget.