Skip to content

Adjust syntax for resetting state variables to latest grammar changes #68

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

Merged
merged 2 commits into from
Jun 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/documentation/copy/en/topics/Modal Models.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ Note that *contained* refers to all contents defined locally in the mode and in

Whenever a mode is entered with a reset transition, the subsequent timing behavior is as if the mode was never executed before.
If there are state variables that need to be reset or reinitialized, then this can be done in a reaction triggered by `reset` or by marking the state variable for automatic reset (e.g.,
<span class="lf-c">`state x:int(0) reset`</span>
<span class="lf-c">`reset state x:int(0)`</span>
<span class="lf-cpp warning">FIXME</span>
<span class="lf-py">`state x(0) reset`</span>
<span class="lf-py">`reset state x(0)`</span>
<span class="lf-ts warning">FIXME</span>
<span class="lf-rs warning">FIXME</span>
).
Expand Down
2 changes: 1 addition & 1 deletion packages/documentation/scripts/linguaFrancaUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const keywords = [
"new",
"output",
"physical", "preamble",
"reaction", "reactor", "realtime",
"reaction", "reactor", "realtime", "reset",
"sec", "secs", "shutdown", "startup", "state",
"target", "timer", "time",
"usec", "usecs",
Expand Down