Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for string constants in Workshop #56

Open
ct2034 opened this issue Oct 8, 2024 · 0 comments · May be fixed by #57
Open

Support for string constants in Workshop #56

ct2034 opened this issue Oct 8, 2024 · 0 comments · May be fixed by #57
Labels
feature New feature or request priority: urgent

Comments

@ct2034
Copy link
Member

ct2034 commented Oct 8, 2024

  • preprocessing step that looks through the bt.xml and all scxmls for string constants
  • fixed mapping between strings constants and unique integers (like a enum)
  • replace strings with corresponding numbers in bt.xml and scxmls

e.g.
(in bt.xml)

<DetectObject name="DetectSnack" object="snacks0"/>

turns into ...

<DetectObject name="DetectSnack" object="8"/>

and
(in scxml)

<field name="data" expr="_msg.data == 'snacks0'" />

turns into ...

<field name="data" expr="_msg.data == 8" />
@ct2034 ct2034 added priority: urgent feature New feature or request labels Oct 8, 2024
@ct2034 ct2034 linked a pull request Oct 8, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request priority: urgent
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant