From b4f40a6b11595e99d67c08f96e6b700fca088dfa Mon Sep 17 00:00:00 2001 From: AneesHl Date: Sat, 20 Jul 2024 14:30:54 +0200 Subject: [PATCH] fixed grammar of Rust target. --- docs/writing-reactors/a-first-reactor.mdx | 18 +++++++++++++++++- .../writing-reactors/a-first-reactor.mdx | 18 +++++++++++++++++- .../writing-reactors/a-first-reactor.mdx | 18 +++++++++++++++++- .../writing-reactors/a-first-reactor.mdx | 18 +++++++++++++++++- .../writing-reactors/a-first-reactor.mdx | 18 +++++++++++++++++- 5 files changed, 85 insertions(+), 5 deletions(-) diff --git a/docs/writing-reactors/a-first-reactor.mdx b/docs/writing-reactors/a-first-reactor.mdx index e27393b04..5d249674c 100644 --- a/docs/writing-reactors/a-first-reactor.mdx +++ b/docs/writing-reactors/a-first-reactor.mdx @@ -94,13 +94,14 @@ The general structure of a reactor definition is as follows: timer ([[, ]]) logical action [: ] physical action [: ] + [const] method (parameters): {= ... body ...=} reaction [] (triggers) [] [-> ] [{= ... body ...=}] = new ([]) [, ...] -> [, ...] [after ] } ``` - + ```lf [main] reactor [(parameters)] { input : @@ -116,6 +117,21 @@ The general structure of a reactor definition is as follows: } ``` + + ```lf + [main] reactor [(parameters)] { + input : + output : + state : [= ] + timer ([[, ]]) + logical action [: ] + physical action [: ] + reaction [] (triggers) [] [-> ] [{= ... body ...=}] + = new ([]) + [, ...] -> [, ...] [after ] + } + ``` + ```lf [main or federated] reactor [(parameters)] { diff --git a/versioned_docs/version-0.5.0/writing-reactors/a-first-reactor.mdx b/versioned_docs/version-0.5.0/writing-reactors/a-first-reactor.mdx index e27393b04..5d249674c 100644 --- a/versioned_docs/version-0.5.0/writing-reactors/a-first-reactor.mdx +++ b/versioned_docs/version-0.5.0/writing-reactors/a-first-reactor.mdx @@ -94,13 +94,14 @@ The general structure of a reactor definition is as follows: timer ([[, ]]) logical action [: ] physical action [: ] + [const] method (parameters): {= ... body ...=} reaction [] (triggers) [] [-> ] [{= ... body ...=}] = new ([]) [, ...] -> [, ...] [after ] } ``` - + ```lf [main] reactor [(parameters)] { input : @@ -116,6 +117,21 @@ The general structure of a reactor definition is as follows: } ``` + + ```lf + [main] reactor [(parameters)] { + input : + output : + state : [= ] + timer ([[, ]]) + logical action [: ] + physical action [: ] + reaction [] (triggers) [] [-> ] [{= ... body ...=}] + = new ([]) + [, ...] -> [, ...] [after ] + } + ``` + ```lf [main or federated] reactor [(parameters)] { diff --git a/versioned_docs/version-0.6.0/writing-reactors/a-first-reactor.mdx b/versioned_docs/version-0.6.0/writing-reactors/a-first-reactor.mdx index e27393b04..5d249674c 100644 --- a/versioned_docs/version-0.6.0/writing-reactors/a-first-reactor.mdx +++ b/versioned_docs/version-0.6.0/writing-reactors/a-first-reactor.mdx @@ -94,13 +94,14 @@ The general structure of a reactor definition is as follows: timer ([[, ]]) logical action [: ] physical action [: ] + [const] method (parameters): {= ... body ...=} reaction [] (triggers) [] [-> ] [{= ... body ...=}] = new ([]) [, ...] -> [, ...] [after ] } ``` - + ```lf [main] reactor [(parameters)] { input : @@ -116,6 +117,21 @@ The general structure of a reactor definition is as follows: } ``` + + ```lf + [main] reactor [(parameters)] { + input : + output : + state : [= ] + timer ([[, ]]) + logical action [: ] + physical action [: ] + reaction [] (triggers) [] [-> ] [{= ... body ...=}] + = new ([]) + [, ...] -> [, ...] [after ] + } + ``` + ```lf [main or federated] reactor [(parameters)] { diff --git a/versioned_docs/version-0.7.0/writing-reactors/a-first-reactor.mdx b/versioned_docs/version-0.7.0/writing-reactors/a-first-reactor.mdx index e27393b04..5d249674c 100644 --- a/versioned_docs/version-0.7.0/writing-reactors/a-first-reactor.mdx +++ b/versioned_docs/version-0.7.0/writing-reactors/a-first-reactor.mdx @@ -94,13 +94,14 @@ The general structure of a reactor definition is as follows: timer ([[, ]]) logical action [: ] physical action [: ] + [const] method (parameters): {= ... body ...=} reaction [] (triggers) [] [-> ] [{= ... body ...=}] = new ([]) [, ...] -> [, ...] [after ] } ``` - + ```lf [main] reactor [(parameters)] { input : @@ -116,6 +117,21 @@ The general structure of a reactor definition is as follows: } ``` + + ```lf + [main] reactor [(parameters)] { + input : + output : + state : [= ] + timer ([[, ]]) + logical action [: ] + physical action [: ] + reaction [] (triggers) [] [-> ] [{= ... body ...=}] + = new ([]) + [, ...] -> [, ...] [after ] + } + ``` + ```lf [main or federated] reactor [(parameters)] { diff --git a/versioned_docs/version-0.8.0/writing-reactors/a-first-reactor.mdx b/versioned_docs/version-0.8.0/writing-reactors/a-first-reactor.mdx index e27393b04..5d249674c 100644 --- a/versioned_docs/version-0.8.0/writing-reactors/a-first-reactor.mdx +++ b/versioned_docs/version-0.8.0/writing-reactors/a-first-reactor.mdx @@ -94,13 +94,14 @@ The general structure of a reactor definition is as follows: timer ([[, ]]) logical action [: ] physical action [: ] + [const] method (parameters): {= ... body ...=} reaction [] (triggers) [] [-> ] [{= ... body ...=}] = new ([]) [, ...] -> [, ...] [after ] } ``` - + ```lf [main] reactor [(parameters)] { input : @@ -116,6 +117,21 @@ The general structure of a reactor definition is as follows: } ``` + + ```lf + [main] reactor [(parameters)] { + input : + output : + state : [= ] + timer ([[, ]]) + logical action [: ] + physical action [: ] + reaction [] (triggers) [] [-> ] [{= ... body ...=}] + = new ([]) + [, ...] -> [, ...] [after ] + } + ``` + ```lf [main or federated] reactor [(parameters)] {