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,
|
||||
seq<one<'.'>>,
|
||||
tao::pegtl::digit>>,
|
||||
// END HACK.
|
||||
// END HACK.
|
||||
number<SIM_VALUE::TYPE_FLOAT, NOTATION::SI>,
|
||||
// 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".
|
||||
// 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>,
|
||||
try_catch<fieldParamValuePairs>>,
|
||||
any>> {};
|
||||
struct fieldInferValue : sor<seq<fieldInferValueType,
|
||||
opt<sep,
|
||||
|
|
Loading…
Reference in New Issue