-
-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
819 additions
and
401 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# SPDX-FileCopyrightText: 2024 Dyne.org foundation | ||
# | ||
# SPDX-License-Identifier: AGPL-3.0-or-later | ||
|
||
[tools] | ||
emsdk = "3" | ||
meson = "1" | ||
rust = "stable" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# SPDX-FileCopyrightText: 2024 Dyne.org foundation | ||
# | ||
# SPDX-License-Identifier: AGPL-3.0-or-later | ||
|
||
version = 1 | ||
SPDX-PackageName = "Zenroom" | ||
SPDX-PackageSupplier = "Denis Roio <[email protected]>" | ||
SPDX-PackageDownloadLocation = "https://github.com/dyne/Zenroom" | ||
|
||
[[annotations]] | ||
path = [ | ||
"src/**", | ||
"bindings/**", | ||
"test/**", | ||
"docs/**", | ||
".github/**", | ||
"build/*", | ||
".gitattributes", | ||
"compile_flags.txt" | ||
] | ||
precedence = "aggregate" | ||
SPDX-FileCopyrightText = "2017-2024 Dyne.org foundation" | ||
SPDX-License-Identifier = "AGPL-3.0-or-later" | ||
|
||
[[annotations]] | ||
path = ["lib/lua54/**"] | ||
precedence = "aggregate" | ||
SPDX-FileCopyrightText = "1994-2024 Lua.org, PUC-Rio" | ||
SPDX-License-Identifier = "MIT" | ||
|
||
[[annotations]] | ||
path = ["lib/milagro-crypto-c/**"] | ||
precedence = "aggregate" | ||
SPDX-FileCopyrightText = "2019 The Apache Software Foundation" | ||
SPDX-License-Identifier = "Apache-2.0" | ||
|
||
[[annotations]] | ||
path = ["lib/pqclean/**"] | ||
precedence = "aggregate" | ||
SPDX-FileCopyrightText = "Léo Ducas, Eike Kiltz, Tancrède Lepoint, Vadim Lyubashevsky, Gregor Seiler, Peter Schwabe, Damien Stehlé" | ||
SPDX-License-Identifier = "CC0-1.0" | ||
|
||
[[annotations]] | ||
path = ["lib/ed25519-donna/**"] | ||
precedence = "aggregate" | ||
SPDX-FileCopyrightText = "Andrew M. <[email protected]>" | ||
SPDX-License-Identifier = "CC0-1.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
-Ilib/lua54/src | ||
-Ilib/milagro-crypto-c/build/include | ||
-Ilib/milagro-crypto-c/include | ||
-Ilib/ed25519-donna | ||
-Isrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,37 @@ | ||
#!/usr/bin/env bash | ||
# this file create the zencode_utterances_reworked.yaml file | ||
# that in turn is used by zencode-list.md to document all the | ||
# zenroom statements | ||
|
||
rm -f zencode_utterances_reworked.yaml | ||
|
||
for i in `ls ../../src/lua/zencode_*`; do | ||
SCENARIO=`echo $i | cut -d _ -f 2 | cut -d . -f 1` | ||
../../src/zenroom -D $SCENARIO 2>/dev/null | jq . > temp.json; | ||
SCENARIO=`echo $i | cut -d _ -f2- | cut -d . -f1` | ||
../../zenroom -D $SCENARIO 2>/dev/null | jq . > temp.json; | ||
echo "### [${SCENARIO}]" >> zencode_utterances_reworked.yaml | ||
if [ $SCENARIO == "debug" ]; then | ||
cat temp.json \ | ||
| jq '."Given" | keys[] ' \ | ||
| sed -e 's/\\\"/\"/g' -e 's/^.//g' -e 's/.$//g' \ | ||
| sort \ | ||
>> zencode_utterances_reworked.yaml | ||
if [ "$SCENARIO" == "debug" ]; then | ||
cat temp.json \ | ||
| jq '."Given" | keys[] ' \ | ||
| sed -e 's/\\\"/\"/g' -e 's/^.//g' -e 's/.$//g' \ | ||
| sort \ | ||
>> zencode_utterances_reworked.yaml | ||
else | ||
cat temp.json \ | ||
| jq '.["Given", "If", "When", "Then"] | keys[] ' \ | ||
| sed -e 's/\\\"/\"/g' -e 's/^.//g' -e 's/.$//g' \ | ||
| sort \ | ||
>> zencode_utterances_reworked.yaml | ||
cat temp.json \ | ||
| jq '.If | keys[] ' \ | ||
| sed -e 's/\\\"/\"/g' -e 's/^.//g' -e 's/.$//g' \ | ||
>> temp_if.txt | ||
cat temp.json \ | ||
| jq '.["Given", "If", "Foreach", "When", "Then"] | keys[] ' \ | ||
| sed -e 's/\\\"/\"/g' -e 's/^.//g' -e 's/.$//g' \ | ||
| sort \ | ||
>> zencode_utterances_reworked.yaml | ||
fi | ||
echo "### [${SCENARIO}]" >> zencode_utterances_reworked.yaml | ||
done | ||
|
||
echo "### [if_subset]" >> zencode_utterances_reworked.yaml | ||
cat temp_if.txt | sort >> zencode_utterances_reworked.yaml | ||
echo "### [if_subset]" >> zencode_utterances_reworked.yaml | ||
|
||
rm temp.json | ||
rm temp_if.txt |
Oops, something went wrong.