Remove support for multiple token values for CPL models.
It breaks param lists which contain single-token params
(ie: those without the "=<value>" part).
(cherry picked from commit 8bb807f170
)
This commit is contained in:
parent
c01681a32e
commit
81e51b00ca
|
@ -122,11 +122,12 @@ namespace SPICE_GRAMMAR
|
||||||
// Param names cannot be `token` because LTspice models contain spurious values without
|
// Param names cannot be `token` because LTspice models contain spurious values without
|
||||||
// parameter names, which we need to skip, and because tokens can include a very limited
|
// parameter names, which we need to skip, and because tokens can include a very limited
|
||||||
// subset of un-braced expressions
|
// subset of un-braced expressions
|
||||||
// Note: we must support lists of both braced expressions and tokens for CPL models.
|
// Note: we must support lists of both braced expressions and tokens for CPL models...
|
||||||
|
// ... but lists of tokens breaks cases where we have single-token name/values.
|
||||||
struct param : identifier {};
|
struct param : identifier {};
|
||||||
struct paramValue : sor<list<bracedExpr, sep>,
|
struct paramValue : sor<list<bracedExpr, sep>,
|
||||||
vectorExpr,
|
vectorExpr,
|
||||||
list<token, sep>> {};
|
token> {};
|
||||||
|
|
||||||
struct paramValuePair : seq<param,
|
struct paramValuePair : seq<param,
|
||||||
sep,
|
sep,
|
||||||
|
|
Loading…
Reference in New Issue