Sim: Don't throw exception for certain garbage characters in Value field
This commit is contained in:
parent
a9a2cc3e84
commit
20ffb7d334
|
@ -88,14 +88,14 @@ namespace SIM_MODEL_GRAMMAR
|
||||||
at<sor<tao::pegtl::digit,
|
at<sor<tao::pegtl::digit,
|
||||||
seq<one<'.'>>,
|
seq<one<'.'>>,
|
||||||
tao::pegtl::digit>>,
|
tao::pegtl::digit>>,
|
||||||
// END HACK.
|
// END HACK.
|
||||||
number<SIM_VALUE::TYPE_FLOAT, NOTATION::SI>,
|
number<SIM_VALUE::TYPE_FLOAT, NOTATION::SI>,
|
||||||
// Hackish: match anything until param-value pairs.
|
// Hackish: match anything until param-value pairs.
|
||||||
// Because the user may want to write something like
|
// Because the user may want to write something like
|
||||||
// "10k 30% 30mW w=0.4", but we care only about the
|
// "10k 30% 30mW w=0.4", but we care only about the
|
||||||
// "10k" and "w=0.4".
|
// "10k" and "w=0.4".
|
||||||
star<not_at<sep,
|
star<not_at<sep,
|
||||||
fieldParamValuePairs>,
|
try_catch<fieldParamValuePairs>>,
|
||||||
any>> {};
|
any>> {};
|
||||||
struct fieldInferValue : sor<seq<fieldInferValueType,
|
struct fieldInferValue : sor<seq<fieldInferValueType,
|
||||||
opt<sep,
|
opt<sep,
|
||||||
|
|
Loading…
Reference in New Issue