Sim: Don't throw exception for certain garbage characters in Value field

This commit is contained in:
Mikolaj Wielgus 2022-10-27 03:57:01 +02:00
parent a9a2cc3e84
commit 20ffb7d334
1 changed files with 6 additions and 6 deletions

View File

@ -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,