Closed fnunnari closed 3 years ago
Adapt the flex file's regular expressions for floats and/or cup grammar to cover such notations.
Fabrizio Nunnari @.***> schrieb am Do., 24. Juni 2021, 17:49:
When executing a scene like:
PlayAction("[botty set_tcp_target x=-0.43 y=-0.56 z=0.55 or_w=4.456203E-4]")`
the parser would assign or_w to 4.456203. It ignores the "scientific notation"
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/SceneMaker/VisualSceneMaker/issues/230, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB2QOJF7OJVDPJAGOZFVGSDTUNHZTANCNFSM47IFGUUQ .
Adapt the flex file's regular expressions for floats and/or cup grammar to cover such notations.
Looks like the parsing was not done by Flex, but rather by a custom regular expression hand-written by Patrick.
Right, I remember, whoever it was 😊 Using Antlr would allow to parse such expressions with the same grammar as used for scenes...
Fabrizio Nunnari @.***> schrieb am So., 27. Juni 2021, 16:11:
Adapt the flex file's regular expressions for floats and/or cup grammar to cover such notations.
Looks like the parsing was not done by Flex, but rather by a custom regular expression hand-written by Patrik.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/SceneMaker/VisualSceneMaker/issues/230#issuecomment-869170273, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB2QOJH6GVV6JWDIXLF7BITTU4WS5ANCNFSM47IFGUUQ .
When executing a scene like:
the parser would assign
or_w
to 4.456203. It ignores the "scientific notation"