The idea to deal with this issue is to create a separate filed called something like Sim.Pattern. Put '?' where pin name should be and put modifiers in correct order in respect to '?'. So the field would look like this:
? %vd ? ? [ ? ~? ]
I have created a tao::pegtl parser for the needs of this idea:
Is is still in development parsing works, but it still needs some rules for [ ] handling.
I am also open to implement inserting the modifiers into netlist, however it would be nice if someone assures me the idea behind a seperate Sim.Pattern field is ok.
I also want to ask for the need of creating a pull request, should I put the parser in separate header or connect it with
spice_model_parser?
This topic was mentioned in following issues: