Closed sstiller closed 5 years ago
The text inside <script> ... </script> is modified resulting in uncompilable code. Example:
<script> ... </script>
<?xml version="1.0" encoding="UTF-8"?> <scxml xmlns="http://www.w3.org/2005/07/scxml" version="1.0" binding="early" name="script"> <state id="State_1"> <onentry> <script>auto str = new std::string("Hello"); str->append(" world"); std::cout << *str << '\n'; delete str;</script> </onentry> </state> <script>#include <iostream></script> </scxml>
In the generated code, the text str->append is replaced by str_>append instead of str->append
str->append
str_>append
str->append
fixed in #89
The text inside
<script> ... </script>
is modified resulting in uncompilable code. Example:In the generated code, the text
str->append
is replaced bystr_>append
instead ofstr->append