Sim: Remove the parsing exception for LTspice compat

Silently ignoring this may be a cure worse than disease.
This commit is contained in:
Mikolaj Wielgus 2022-10-18 23:19:48 +02:00
parent 42acabb5a9
commit 1965411bf5
1 changed files with 1 additions and 8 deletions

View File

@ -114,14 +114,7 @@ namespace SPICE_GRAMMAR
struct paramValuePair : seq<param,
sep,
paramValue> {};
struct paramValuePairs : list<sor<paramValuePair,
// In some LTspice models there are spurious values without
// specified parameter name. Ngspice ignores these, and we
// follow suit.
// TODO: Possibly create an LTspice compatibility mode, so
// that we don't have to silently ignore values blanketly.
token>,
sep> {};
struct paramValuePairs : list<paramValuePair, sep> {};
struct dotModelAko : seq<opt<sep>,
if_must<seq<TAO_PEGTL_ISTRING( ".model" ),
sep,