Fix patterns examples

This commit is contained in:
Emery Hemingway 2023-04-10 16:55:39 -05:00
parent 5170ad23e8
commit b1ad08e693
5 changed files with 12 additions and 5 deletions

1
Tuprules.tup Normal file
View File

@ -0,0 +1 @@
include depends.tup

6
depends.tup Normal file
View File

@ -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>

View File

@ -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:

View File

@ -1,2 +1,2 @@
include_rules
: foreach *.nim | $(SYNDICATE_PROTOCOL) |> !nim_check |>
: foreach *.nim |> !nim_check |>

View File

@ -1,6 +1,6 @@
# Package
version = "20230405"
version = "20230410"
author = "Emery Hemingway"
description = "Syndicated actors for conversational concurrency"
license = "Unlicense"