More PEGTL tomfoolery.
This commit is contained in:
parent
4920c6b00b
commit
8aaca0509c
|
@ -156,6 +156,17 @@ namespace SPICE_GRAMMAR
|
||||||
opt<sep>,
|
opt<sep>,
|
||||||
newline>> {};
|
newline>> {};
|
||||||
|
|
||||||
|
struct dotModelCPL : seq<opt<sep>,
|
||||||
|
if_must<seq<TAO_PEGTL_ISTRING( ".model" ),
|
||||||
|
sep,
|
||||||
|
modelName,
|
||||||
|
sep,
|
||||||
|
TAO_PEGTL_ISTRING( "CPL" )>,
|
||||||
|
opt<sep,
|
||||||
|
cplParamValuePairs>,
|
||||||
|
opt<sep>,
|
||||||
|
newline>> {};
|
||||||
|
|
||||||
struct dotModel : seq<opt<sep>,
|
struct dotModel : seq<opt<sep>,
|
||||||
if_must<TAO_PEGTL_ISTRING( ".model" ),
|
if_must<TAO_PEGTL_ISTRING( ".model" ),
|
||||||
sep,
|
sep,
|
||||||
|
@ -167,19 +178,6 @@ namespace SPICE_GRAMMAR
|
||||||
opt<sep>,
|
opt<sep>,
|
||||||
newline>> {};
|
newline>> {};
|
||||||
|
|
||||||
struct dotModelCPL : seq<opt<sep>,
|
|
||||||
if_must<TAO_PEGTL_ISTRING( ".model" ),
|
|
||||||
sep,
|
|
||||||
modelName,
|
|
||||||
sep,
|
|
||||||
TAO_PEGTL_ISTRING( "CPL" ),
|
|
||||||
opt<sep,
|
|
||||||
cplParamValuePairs>,
|
|
||||||
opt<sep>,
|
|
||||||
newline>> {};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
struct dotSubcktParamValuePair : seq<param,
|
struct dotSubcktParamValuePair : seq<param,
|
||||||
// TODO: Check if these `star<space>`s match Ngspice's
|
// TODO: Check if these `star<space>`s match Ngspice's
|
||||||
// behavior.
|
// behavior.
|
||||||
|
@ -216,6 +214,7 @@ namespace SPICE_GRAMMAR
|
||||||
|
|
||||||
struct modelUnit : seq<star<commentLine>,
|
struct modelUnit : seq<star<commentLine>,
|
||||||
sor<dotModelAko,
|
sor<dotModelAko,
|
||||||
|
dotModelCPL,
|
||||||
dotModel,
|
dotModel,
|
||||||
dotSubckt>> {};
|
dotSubckt>> {};
|
||||||
|
|
||||||
|
@ -305,7 +304,9 @@ namespace SPICE_GRAMMAR
|
||||||
"";
|
"";
|
||||||
template <> inline constexpr auto errorMessage<opt<sep, paramValuePairs>> =
|
template <> inline constexpr auto errorMessage<opt<sep, paramValuePairs>> =
|
||||||
"";
|
"";
|
||||||
template <> inline constexpr auto errorMessage<opt<sep, dotSubcktPinSequence>> =
|
template <> inline constexpr auto errorMessage<opt<sep, cplParamValuePairs>> =
|
||||||
|
"";
|
||||||
|
template <> inline constexpr auto errorMessage<opt<sep, dotSubcktPinSequence>> =
|
||||||
"";
|
"";
|
||||||
template <> inline constexpr auto errorMessage<opt<sep, dotSubcktParams>> =
|
template <> inline constexpr auto errorMessage<opt<sep, dotSubcktParams>> =
|
||||||
"";
|
"";
|
||||||
|
|
Loading…
Reference in New Issue