Skip to content

Commit 7ec8524

Browse files
authored
Merge pull request #68 from lf-lang/modal-models
Adjust syntax for resetting state variables to latest grammar changes
2 parents cb8660c + 1c24105 commit 7ec8524

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/documentation/copy/en/topics/Modal Models.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ Note that *contained* refers to all contents defined locally in the mode and in
104104

105105
Whenever a mode is entered with a reset transition, the subsequent timing behavior is as if the mode was never executed before.
106106
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.,
107-
<span class="lf-c">`state x:int(0) reset`</span>
107+
<span class="lf-c">`reset state x:int(0)`</span>
108108
<span class="lf-cpp warning">FIXME</span>
109-
<span class="lf-py">`state x(0) reset`</span>
109+
<span class="lf-py">`reset state x(0)`</span>
110110
<span class="lf-ts warning">FIXME</span>
111111
<span class="lf-rs warning">FIXME</span>
112112
).

packages/documentation/scripts/linguaFrancaUtils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const keywords = [
2020
"new",
2121
"output",
2222
"physical", "preamble",
23-
"reaction", "reactor", "realtime",
23+
"reaction", "reactor", "realtime", "reset",
2424
"sec", "secs", "shutdown", "startup", "state",
2525
"target", "timer", "time",
2626
"usec", "usecs",

0 commit comments

Comments
 (0)