Sim: Ignore everything between principal value and parameter-value pairs
This commit is contained in:
parent
d1bf889e71
commit
209ff933e7
|
@ -89,7 +89,13 @@ namespace SIM_MODEL_GRAMMAR
|
||||||
one<'.'>>>,
|
one<'.'>>>,
|
||||||
// END HACK.
|
// END HACK.
|
||||||
number<SIM_VALUE::TYPE_FLOAT, NOTATION::SI>,
|
number<SIM_VALUE::TYPE_FLOAT, NOTATION::SI>,
|
||||||
star<not_at<sep>, not_at<one<'='>>, any>> {};
|
// Hackish: match anything until param-value pairs.
|
||||||
|
// Because the user may want to write something like
|
||||||
|
// "10k 30% 30mW w=0.4", but we care only about the
|
||||||
|
// "10k" and "w=0.4".
|
||||||
|
star<not_at<sep,
|
||||||
|
fieldParamValuePairs>,
|
||||||
|
any>> {};
|
||||||
struct fieldInferValue : sor<seq<fieldInferValueType,
|
struct fieldInferValue : sor<seq<fieldInferValueType,
|
||||||
opt<sep,
|
opt<sep,
|
||||||
fieldParamValuePairs>>,
|
fieldParamValuePairs>>,
|
||||||
|
|
Loading…
Reference in New Issue