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)] {