Fix patterns examples
This commit is contained in:
parent
5170ad23e8
commit
b1ad08e693
|
@ -0,0 +1 @@
|
|||
include depends.tup
|
|
@ -0,0 +1,6 @@
|
|||
include ../preserves-nim/depends.tup
|
||||
NIM_FLAGS += --path:$(TUP_CWD)/../nim
|
||||
NIM_FLAGS += --path:$(TUP_CWD)/../preserves-nim/src
|
||||
NIM_FLAGS += --path:%<nimsha2>
|
||||
NIM_GROUPS += $(TUP_CWD)/../nimble/<nimsha2>
|
||||
NIM_GROUPS += $(TUP_CWD)/<protocol>
|
|
@ -1,4 +1,4 @@
|
|||
# SPDX-FileCopyrightText: ☭ 2021 Emery Hemingway
|
||||
# SPDX-FileCopyrightText: ☭ Emery Hemingway
|
||||
# SPDX-License-Identifier: Unlicense
|
||||
|
||||
## This module implements the `Syndicate DSL <https://syndicate-lang.org/doc/syndicate/>`_.
|
||||
|
@ -12,11 +12,11 @@ runnableExamples:
|
|||
me = "user"
|
||||
presenceHandle = publish(turn, ds, Present(username: me))
|
||||
|
||||
onMessage(turn, ds, grabType Says) do (who: string; what: string):
|
||||
onMessage(turn, ds, ?Says) do (who: string; what: string):
|
||||
echo who, ": ", what
|
||||
retract(turn, presenceHandle)
|
||||
|
||||
during(turn, ds, grabType Present) do (username: string):
|
||||
during(turn, ds, ?Present) do (username: string):
|
||||
echo "[", username, " arrived]"
|
||||
message(turn, ds, Says(who: me, what: "users are losers"))
|
||||
do:
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
include_rules
|
||||
: foreach *.nim | $(SYNDICATE_PROTOCOL) |> !nim_check |>
|
||||
: foreach *.nim |> !nim_check |>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Package
|
||||
|
||||
version = "20230405"
|
||||
version = "20230410"
|
||||
author = "Emery Hemingway"
|
||||
description = "Syndicated actors for conversational concurrency"
|
||||
license = "Unlicense"
|
||||
|
|
Loading…
Reference in New Issue