From 2ee289cd02cdcbdf7dd1dfa24180784750153794 Mon Sep 17 00:00:00 2001 From: Alexander Schulz-Rosengarten Date: Sat, 28 May 2022 10:07:56 +0200 Subject: [PATCH 1/2] Adjusted syntax to reset state variables to latest grammar changes --- packages/documentation/copy/en/topics/Modal Models.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/documentation/copy/en/topics/Modal Models.md b/packages/documentation/copy/en/topics/Modal Models.md index a9f8ef3df..7e0924b5a 100644 --- a/packages/documentation/copy/en/topics/Modal Models.md +++ b/packages/documentation/copy/en/topics/Modal Models.md @@ -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., -`state x:int(0) reset` +`reset state x:int(0)` FIXME -`state x(0) reset` +`reset state x(0)` FIXME FIXME ). From 1c2410534f75ed0720daa49d5e3c1ff4d811eb18 Mon Sep 17 00:00:00 2001 From: Alexander Schulz-Rosengarten Date: Sat, 28 May 2022 10:15:46 +0200 Subject: [PATCH 2/2] Added reset to the list of LF keywords --- packages/documentation/scripts/linguaFrancaUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/documentation/scripts/linguaFrancaUtils.js b/packages/documentation/scripts/linguaFrancaUtils.js index 9bf493b3a..3aba4d607 100644 --- a/packages/documentation/scripts/linguaFrancaUtils.js +++ b/packages/documentation/scripts/linguaFrancaUtils.js @@ -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",