mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-18 23:02:35 +03:00
fixed some bugs
This commit is contained in:
parent
18b71d225b
commit
f6990e75fc
350
Cargo.lock
generated
350
Cargo.lock
generated
@ -70,9 +70,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "aleo-std"
|
||||
version = "0.1.12"
|
||||
version = "0.1.14"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "cedebcd5cef12e2739faee8e07ccde1c4a0c7d23371f4007799c49ba2a7eb278"
|
||||
checksum = "6613c3c045767658f6cc0f5356414ca7814fb936df9197367914e5809e24622a"
|
||||
dependencies = [
|
||||
"aleo-std-cpu",
|
||||
"aleo-std-profiler",
|
||||
@ -90,9 +90,9 @@ checksum = "d1dcc739555d14733cbe4756f144b81d64f01843df359189b4d71bd5e521e2ee"
|
||||
|
||||
[[package]]
|
||||
name = "aleo-std-profiler"
|
||||
version = "0.1.12"
|
||||
version = "0.1.13"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "360a97d2f318af317382164debf2acb0aef276117ad06616f2768909aff01afe"
|
||||
checksum = "3d72acece2832bc2aceeebcbb58f5ea7526c2524ccbbf13229ff1be8bc9ccc15"
|
||||
|
||||
[[package]]
|
||||
name = "aleo-std-storage"
|
||||
@ -116,20 +116,20 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "aleo-std-timed"
|
||||
version = "0.1.0"
|
||||
version = "0.1.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "2b85aed1b7ca965b6613d14ab243c746316180401cbb9ba3b2cb22bff16fc08f"
|
||||
checksum = "6118baab6285accf088b31d5ea5029c37bbf9d98e62b4d8720a0a5a66bc2e427"
|
||||
dependencies = [
|
||||
"proc-macro2 1.0.37",
|
||||
"proc-macro2 1.0.39",
|
||||
"quote 1.0.18",
|
||||
"syn 1.0.91",
|
||||
"syn 1.0.96",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "aleo-std-timer"
|
||||
version = "0.1.0"
|
||||
version = "0.1.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "23bed34621f0713d3e750b59acdd3961a8950650fa7615b7cb40e6bc062a1d0b"
|
||||
checksum = "5edd669f91f0e6f9fd14aa9489fb64fff760723ee4c73c4e93f721f11aaf62e7"
|
||||
dependencies = [
|
||||
"colored",
|
||||
]
|
||||
@ -289,9 +289,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "bumpalo"
|
||||
version = "3.9.1"
|
||||
version = "3.10.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "a4a45a46ab1f2412e53d3a0ade76ffad2025804294569aae387231a0cd6e0899"
|
||||
checksum = "37ccbd214614c6783386c1af30caf03192f17891059cecc394b4fb119e363de3"
|
||||
|
||||
[[package]]
|
||||
name = "byteorder"
|
||||
@ -620,9 +620,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "curl-sys"
|
||||
version = "0.4.53+curl-7.82.0"
|
||||
version = "0.4.55+curl-7.83.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "8092905a5a9502c312f223b2775f57ec5c5b715f9a15ee9d2a8591d1364a0352"
|
||||
checksum = "23734ec77368ec583c2e61dd3f0b0e5c98b93abe6d2a004ca06b91dd7e3e2762"
|
||||
dependencies = [
|
||||
"cc",
|
||||
"libc",
|
||||
@ -639,9 +639,9 @@ version = "2.2.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "fcc3dd5e9e9c0b295d6e1e4d811fb6f157d5ffd784b8d202fc62eac8035a770b"
|
||||
dependencies = [
|
||||
"proc-macro2 1.0.37",
|
||||
"proc-macro2 1.0.39",
|
||||
"quote 1.0.18",
|
||||
"syn 1.0.91",
|
||||
"syn 1.0.96",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@ -729,9 +729,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "filetime"
|
||||
version = "0.2.15"
|
||||
version = "0.2.16"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "975ccf83d8d9d0d84682850a38c8169027be83368805971cc4f238c2b245bc98"
|
||||
checksum = "c0408e2626025178a6a7f7ffc05a25bc47103229f19c113755de7bf63816290c"
|
||||
dependencies = [
|
||||
"cfg-if 1.0.0",
|
||||
"libc",
|
||||
@ -741,13 +741,11 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "flate2"
|
||||
version = "1.0.23"
|
||||
version = "1.0.24"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b39522e96686d38f4bc984b9198e3a0613264abaebaff2c5c918bfa6b6da09af"
|
||||
checksum = "f82b0f4c27ad9f8bfd1f3208d882da2b09c301bc1c828fd3a00d0216d2fbbff6"
|
||||
dependencies = [
|
||||
"cfg-if 1.0.0",
|
||||
"crc32fast",
|
||||
"libc",
|
||||
"miniz_oxide",
|
||||
]
|
||||
|
||||
@ -949,9 +947,9 @@ checksum = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e"
|
||||
|
||||
[[package]]
|
||||
name = "hashbrown"
|
||||
version = "0.12.0"
|
||||
version = "0.12.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "8c21d40587b92fa6a6c6e3c1bdbf87d75511db5672f9c93175574b3a00df1758"
|
||||
checksum = "db0d4cf898abf0081f964436dc980e96670a0f36863e4b83aaacdb65c9d7ccc3"
|
||||
dependencies = [
|
||||
"ahash",
|
||||
]
|
||||
@ -991,20 +989,20 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "http"
|
||||
version = "0.2.6"
|
||||
version = "0.2.8"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "31f4c6746584866f0feabcc69893c5b51beef3831656a968ed7ae254cdc4fd03"
|
||||
checksum = "75f43d41e26995c17e71ee126451dd3941010b0514a81a9d11f3b341debc2399"
|
||||
dependencies = [
|
||||
"bytes",
|
||||
"fnv",
|
||||
"itoa 1.0.1",
|
||||
"itoa 1.0.2",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "http-body"
|
||||
version = "0.4.4"
|
||||
version = "0.4.5"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "1ff4f84919677303da5f147645dbea6b1881f368d03ac84e1dc09031ebd7b2c6"
|
||||
checksum = "d5f38f16d184e36f2408a55281cd658ecbd3ca05cce6d6510a176eca393e26d1"
|
||||
dependencies = [
|
||||
"bytes",
|
||||
"http",
|
||||
@ -1013,9 +1011,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "httparse"
|
||||
version = "1.7.0"
|
||||
version = "1.7.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "6330e8a36bd8c859f3fa6d9382911fbb7147ec39807f63b923933a247240b9ba"
|
||||
checksum = "496ce29bb5a52785b44e0f7ca2847ae0bb839c9bd28f69acac9b99d461c0c04c"
|
||||
|
||||
[[package]]
|
||||
name = "httpdate"
|
||||
@ -1025,9 +1023,9 @@ checksum = "c4a1e36c821dbe04574f602848a19f742f4fb3c98d40449f11bcad18d6b17421"
|
||||
|
||||
[[package]]
|
||||
name = "hyper"
|
||||
version = "0.14.18"
|
||||
version = "0.14.19"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b26ae0a80afebe130861d90abf98e3814a4f28a4c6ffeb5ab8ebb2be311e0ef2"
|
||||
checksum = "42dc3c131584288d375f2d07f822b0cb012d8c6fb899a5b9fdb3cb7eb9b6004f"
|
||||
dependencies = [
|
||||
"bytes",
|
||||
"futures-channel",
|
||||
@ -1038,7 +1036,7 @@ dependencies = [
|
||||
"http-body",
|
||||
"httparse",
|
||||
"httpdate",
|
||||
"itoa 1.0.1",
|
||||
"itoa 1.0.2",
|
||||
"pin-project-lite",
|
||||
"socket2",
|
||||
"tokio",
|
||||
@ -1073,9 +1071,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "indexmap"
|
||||
version = "1.8.1"
|
||||
version = "1.8.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "0f647032dfaa1f8b6dc29bd3edb7bbef4861b8b8007ebb118d6db284fd59f6ee"
|
||||
checksum = "e6012d540c5baa3589337a98ce73408de9b5a25ec9fc2c6fd6be8f0d39e0ca5a"
|
||||
dependencies = [
|
||||
"autocfg",
|
||||
"hashbrown 0.11.2",
|
||||
@ -1134,9 +1132,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "ipnet"
|
||||
version = "2.4.0"
|
||||
version = "2.5.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "35e70ee094dc02fd9c13fdad4940090f22dbd6ac7c9e7094a46cf0232a50bc7c"
|
||||
checksum = "879d54834c8c76457ef4293a689b2a8c59b076067ad77b15efafbb05f92a592b"
|
||||
|
||||
[[package]]
|
||||
name = "itertools"
|
||||
@ -1155,9 +1153,9 @@ checksum = "b71991ff56294aa922b450139ee08b3bfc70982c6b2c7562771375cf73542dd4"
|
||||
|
||||
[[package]]
|
||||
name = "itoa"
|
||||
version = "1.0.1"
|
||||
version = "1.0.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "1aab8fc367588b89dcee83ab0fd66b72b50b72fa1904d7095045ace2b0c81c35"
|
||||
checksum = "112c678d4050afce233f4f2852bb2eb519230b3cf12f33585275537d7e41578d"
|
||||
|
||||
[[package]]
|
||||
name = "jobserver"
|
||||
@ -1364,15 +1362,15 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "libc"
|
||||
version = "0.2.123"
|
||||
version = "0.2.126"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "cb691a747a7ab48abc15c5b42066eaafde10dc427e3b6ee2a1cf43db04c763bd"
|
||||
checksum = "349d5a591cd28b49e1d1037471617a32ddcda5731b99419008085f72d5a53836"
|
||||
|
||||
[[package]]
|
||||
name = "libz-sys"
|
||||
version = "1.1.5"
|
||||
version = "1.1.8"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "6f35facd4a5673cb5a48822be2be1d4236c1c99cb4113cab7061ac720d5bf859"
|
||||
checksum = "9702761c3935f8cc2f101793272e202c72b99da8f4224a19ddcf1279a6450bbf"
|
||||
dependencies = [
|
||||
"cc",
|
||||
"libc",
|
||||
@ -1398,9 +1396,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "log"
|
||||
version = "0.4.16"
|
||||
version = "0.4.17"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "6389c490849ff5bc16be905ae24bc913a9c8892e19b2341dbc175e14c341c2b8"
|
||||
checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e"
|
||||
dependencies = [
|
||||
"cfg-if 1.0.0",
|
||||
]
|
||||
@ -1413,9 +1411,9 @@ checksum = "a3e378b66a060d48947b590737b30a1be76706c8dd7b8ba0f2fe3989c68a853f"
|
||||
|
||||
[[package]]
|
||||
name = "memchr"
|
||||
version = "2.4.1"
|
||||
version = "2.5.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a"
|
||||
checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d"
|
||||
|
||||
[[package]]
|
||||
name = "memoffset"
|
||||
@ -1450,9 +1448,9 @@ checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
|
||||
|
||||
[[package]]
|
||||
name = "miniz_oxide"
|
||||
version = "0.5.1"
|
||||
version = "0.5.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "d2b29bd4bc3f33391105ebee3589c19197c4271e3e5a9ec9bfe8127eeff8f082"
|
||||
checksum = "6f5c75688da582b8ffc1f1799e9db273f32133c49e048f614d22ec3256773ccc"
|
||||
dependencies = [
|
||||
"adler",
|
||||
]
|
||||
@ -1470,7 +1468,7 @@ dependencies = [
|
||||
"kernel32-sys",
|
||||
"libc",
|
||||
"log",
|
||||
"miow 0.2.2",
|
||||
"miow",
|
||||
"net2",
|
||||
"slab",
|
||||
"winapi 0.2.8",
|
||||
@ -1478,16 +1476,14 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "mio"
|
||||
version = "0.8.2"
|
||||
version = "0.8.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "52da4364ffb0e4fe33a9841a98a3f3014fb964045ce4f7a45a398243c8d6b0c9"
|
||||
checksum = "713d550d9b44d89174e066b7a6217ae06234c10cb47819a88290d2b353c31799"
|
||||
dependencies = [
|
||||
"libc",
|
||||
"log",
|
||||
"miow 0.3.7",
|
||||
"ntapi",
|
||||
"wasi 0.11.0+wasi-snapshot-preview1",
|
||||
"winapi 0.3.9",
|
||||
"windows-sys",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@ -1514,15 +1510,6 @@ dependencies = [
|
||||
"ws2_32-sys",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "miow"
|
||||
version = "0.3.7"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b9f1c5b025cda876f66ef43a113f91ebc9f4ccef34843000e0adf6ebbab84e21"
|
||||
dependencies = [
|
||||
"winapi 0.3.9",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "native-tls"
|
||||
version = "0.2.10"
|
||||
@ -1586,15 +1573,6 @@ dependencies = [
|
||||
"winapi 0.3.9",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "ntapi"
|
||||
version = "0.3.7"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "c28774a7fd2fbb4f0babd8237ce554b73af68021b5f695a3cebd6c59bac0980f"
|
||||
dependencies = [
|
||||
"winapi 0.3.9",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "num-bigint"
|
||||
version = "0.4.3"
|
||||
@ -1608,9 +1586,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "num-integer"
|
||||
version = "0.1.44"
|
||||
version = "0.1.45"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "d2cc698a63b549a70bc047073d2949cce27cd1c7b0a4a862d08a8031bc2801db"
|
||||
checksum = "225d3389fb3509a24c93f5c29eb6bde2586b98d9f016636dff58d7c6f7569cd9"
|
||||
dependencies = [
|
||||
"autocfg",
|
||||
"num-traits",
|
||||
@ -1618,9 +1596,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "num-traits"
|
||||
version = "0.2.14"
|
||||
version = "0.2.15"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "9a64b1ec5cda2586e284722486d802acf1f7dbdc623e2bfc57e65ca1cd099290"
|
||||
checksum = "578ede34cf02f8924ab9447f50c28075b4d3e5b269972345e7e0372b38c6cdcd"
|
||||
dependencies = [
|
||||
"autocfg",
|
||||
]
|
||||
@ -1637,9 +1615,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "num_threads"
|
||||
version = "0.1.5"
|
||||
version = "0.1.6"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "aba1801fb138d8e85e11d0fc70baf4fe1cdfffda7c6cd34a854905df588e5ed0"
|
||||
checksum = "2819ce041d2ee131036f4fc9d6ae7ae125a3a40e97ba64d04fe799ad9dabbb44"
|
||||
dependencies = [
|
||||
"libc",
|
||||
]
|
||||
@ -1652,18 +1630,18 @@ checksum = "830b246a0e5f20af87141b25c173cd1b609bd7779a4617d6ec582abaf90870f3"
|
||||
|
||||
[[package]]
|
||||
name = "object"
|
||||
version = "0.28.3"
|
||||
version = "0.28.4"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "40bec70ba014595f99f7aa110b84331ffe1ee9aece7fe6f387cc7e3ecda4d456"
|
||||
checksum = "e42c982f2d955fac81dd7e1d0e1426a7d702acd9c98d19ab01083a6a0328c424"
|
||||
dependencies = [
|
||||
"memchr",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "once_cell"
|
||||
version = "1.10.0"
|
||||
version = "1.12.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "87f3e037eac156d1775da914196f0f37741a274155e34a0b7e427c35d2a2ecb9"
|
||||
checksum = "7709cef83f0c1f58f666e746a08b21e0085f7440fa6a29cc194d68aac97a4225"
|
||||
|
||||
[[package]]
|
||||
name = "oorandom"
|
||||
@ -1679,18 +1657,30 @@ checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5"
|
||||
|
||||
[[package]]
|
||||
name = "openssl"
|
||||
version = "0.10.38"
|
||||
version = "0.10.40"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "0c7ae222234c30df141154f159066c5093ff73b63204dcda7121eb082fc56a95"
|
||||
checksum = "fb81a6430ac911acb25fe5ac8f1d2af1b4ea8a4fdfda0f1ee4292af2e2d8eb0e"
|
||||
dependencies = [
|
||||
"bitflags",
|
||||
"cfg-if 1.0.0",
|
||||
"foreign-types",
|
||||
"libc",
|
||||
"once_cell",
|
||||
"openssl-macros",
|
||||
"openssl-sys",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "openssl-macros"
|
||||
version = "0.1.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b501e44f11665960c7e7fcf062c7d96a14ade4aa98116c004b2e37b5be7d736c"
|
||||
dependencies = [
|
||||
"proc-macro2 1.0.39",
|
||||
"quote 1.0.18",
|
||||
"syn 1.0.96",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "openssl-probe"
|
||||
version = "0.1.5"
|
||||
@ -1699,9 +1689,9 @@ checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf"
|
||||
|
||||
[[package]]
|
||||
name = "openssl-sys"
|
||||
version = "0.9.72"
|
||||
version = "0.9.74"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "7e46109c383602735fa0a2e48dd2b7c892b048e1bf69e5c3b1d804b7d9c203cb"
|
||||
checksum = "835363342df5fba8354c5b453325b110ffd54044e588c539cf2f20a8014e4cb1"
|
||||
dependencies = [
|
||||
"autocfg",
|
||||
"cc",
|
||||
@ -1712,15 +1702,15 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "os_str_bytes"
|
||||
version = "6.0.0"
|
||||
version = "6.1.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "8e22443d1643a904602595ba1cd8f7d896afe56d26712531c5ff73a15b2fbf64"
|
||||
checksum = "21326818e99cfe6ce1e524c2a805c189a99b5ae555a35d19f9a284b427d86afa"
|
||||
|
||||
[[package]]
|
||||
name = "parking_lot"
|
||||
version = "0.12.0"
|
||||
version = "0.12.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "87f5ec2493a61ac0506c0f4199f99070cbe83857b0337006a30f3e6719b8ef58"
|
||||
checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f"
|
||||
dependencies = [
|
||||
"lock_api",
|
||||
"parking_lot_core",
|
||||
@ -1728,9 +1718,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "parking_lot_core"
|
||||
version = "0.9.2"
|
||||
version = "0.9.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "995f667a6c822200b0433ac218e05582f0e2efa1b922a3fd2fbaadc5f87bab37"
|
||||
checksum = "09a279cbf25cb0757810394fbc1e359949b59e348145c643a939a525692e6929"
|
||||
dependencies = [
|
||||
"cfg-if 1.0.0",
|
||||
"libc",
|
||||
@ -1776,9 +1766,9 @@ checksum = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e"
|
||||
|
||||
[[package]]
|
||||
name = "pin-project-lite"
|
||||
version = "0.2.8"
|
||||
version = "0.2.9"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "e280fbe77cc62c91527259e9442153f4688736748d24660126286329742b4c6c"
|
||||
checksum = "e0a7ae3ac2f1173085d398531c705756c94a4c56843785df85a60c1a0afac116"
|
||||
|
||||
[[package]]
|
||||
name = "pin-utils"
|
||||
@ -1869,9 +1859,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c"
|
||||
dependencies = [
|
||||
"proc-macro-error-attr",
|
||||
"proc-macro2 1.0.37",
|
||||
"proc-macro2 1.0.39",
|
||||
"quote 1.0.18",
|
||||
"syn 1.0.91",
|
||||
"syn 1.0.96",
|
||||
"version_check",
|
||||
]
|
||||
|
||||
@ -1881,7 +1871,7 @@ version = "1.0.4"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869"
|
||||
dependencies = [
|
||||
"proc-macro2 1.0.37",
|
||||
"proc-macro2 1.0.39",
|
||||
"quote 1.0.18",
|
||||
"version_check",
|
||||
]
|
||||
@ -1892,16 +1882,16 @@ version = "0.4.30"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "cf3d2011ab5c909338f7887f4fc896d35932e29146c12c8d01da6b22a80ba759"
|
||||
dependencies = [
|
||||
"unicode-xid 0.1.0",
|
||||
"unicode-xid",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "proc-macro2"
|
||||
version = "1.0.37"
|
||||
version = "1.0.39"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "ec757218438d5fda206afc041538b2f6d889286160d649a86a24d37e1235afd1"
|
||||
checksum = "c54b25569025b7fc9651de43004ae593a75ad88543b17178aa5e1b9c4f15f56f"
|
||||
dependencies = [
|
||||
"unicode-xid 0.2.2",
|
||||
"unicode-ident",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@ -1928,7 +1918,7 @@ version = "1.0.18"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "a1feb54ed693b93a84e14094943b84b7c4eae204c512b7ccb95ab0c66d278ad1"
|
||||
dependencies = [
|
||||
"proc-macro2 1.0.37",
|
||||
"proc-macro2 1.0.39",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@ -1972,9 +1962,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rayon"
|
||||
version = "1.5.1"
|
||||
version = "1.5.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "c06aca804d41dbc8ba42dfd964f0d01334eceb64314b9ecf7c5fad5188a06d90"
|
||||
checksum = "bd99e5772ead8baa5215278c9b15bf92087709e9c1b2d1f97cdb5a183c933a7d"
|
||||
dependencies = [
|
||||
"autocfg",
|
||||
"crossbeam-deque",
|
||||
@ -1984,14 +1974,13 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rayon-core"
|
||||
version = "1.9.1"
|
||||
version = "1.9.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "d78120e2c850279833f1dd3582f730c4ab53ed95aeaaaa862a2a5c71b1656d8e"
|
||||
checksum = "258bcdb5ac6dad48491bb2992db6b7cf74878b0384908af124823d118c99683f"
|
||||
dependencies = [
|
||||
"crossbeam-channel",
|
||||
"crossbeam-deque",
|
||||
"crossbeam-utils",
|
||||
"lazy_static",
|
||||
"num_cpus",
|
||||
]
|
||||
|
||||
@ -2113,9 +2102,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "ryu"
|
||||
version = "1.0.9"
|
||||
version = "1.0.10"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "73b4b750c782965c211b42f022f59af1fbceabdd026623714f104152f1ec149f"
|
||||
checksum = "f3f6f92acf49d1b98f7a81226834412ada05458b7364277387724a237f062695"
|
||||
|
||||
[[package]]
|
||||
name = "same-file"
|
||||
@ -2128,12 +2117,12 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "schannel"
|
||||
version = "0.1.19"
|
||||
version = "0.1.20"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "8f05ba609c234e60bee0d547fe94a4c7e9da733d1c962cf6e59efa4cd9c8bc75"
|
||||
checksum = "88d6731146462ea25d9244b2ed5fd1d716d25c52e4d54aa4fb0f3c4e9854dbe2"
|
||||
dependencies = [
|
||||
"lazy_static",
|
||||
"winapi 0.3.9",
|
||||
"windows-sys",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@ -2191,9 +2180,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "semver"
|
||||
version = "1.0.7"
|
||||
version = "1.0.9"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "d65bd28f48be7196d222d95b9243287f48d27aca604e08497513019ff0502cc4"
|
||||
checksum = "8cb243bdfdb5936c8dc3c45762a19d12ab4550cdc753bc247637d4ec35a040fd"
|
||||
|
||||
[[package]]
|
||||
name = "serde"
|
||||
@ -2220,19 +2209,19 @@ version = "1.0.137"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "1f26faba0c3959972377d3b2d306ee9f71faee9714294e41bb777f83f88578be"
|
||||
dependencies = [
|
||||
"proc-macro2 1.0.37",
|
||||
"proc-macro2 1.0.39",
|
||||
"quote 1.0.18",
|
||||
"syn 1.0.91",
|
||||
"syn 1.0.96",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "serde_json"
|
||||
version = "1.0.79"
|
||||
version = "1.0.81"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "8e8d9fa5c3b304765ce1fd9c4c8a3de2c8db365a5b91be52f186efc675681d95"
|
||||
checksum = "9b7ce2b32a1aed03c558dc61a5cd328f15aff2dbc17daad8fb8af04d2100e15c"
|
||||
dependencies = [
|
||||
"indexmap",
|
||||
"itoa 1.0.1",
|
||||
"itoa 1.0.2",
|
||||
"ryu",
|
||||
"serde",
|
||||
]
|
||||
@ -2244,7 +2233,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd"
|
||||
dependencies = [
|
||||
"form_urlencoded",
|
||||
"itoa 1.0.1",
|
||||
"itoa 1.0.2",
|
||||
"ryu",
|
||||
"serde",
|
||||
]
|
||||
@ -2320,7 +2309,7 @@ dependencies = [
|
||||
"curl",
|
||||
"derivative",
|
||||
"digest",
|
||||
"hashbrown 0.12.0",
|
||||
"hashbrown 0.12.1",
|
||||
"hex",
|
||||
"itertools",
|
||||
"lazy_static",
|
||||
@ -2362,9 +2351,9 @@ source = "git+https://github.com/AleoHQ/snarkVM.git?rev=51633e2#51633e2fac247bc8
|
||||
dependencies = [
|
||||
"proc-macro-crate",
|
||||
"proc-macro-error",
|
||||
"proc-macro2 1.0.37",
|
||||
"proc-macro2 1.0.39",
|
||||
"quote 1.0.18",
|
||||
"syn 1.0.91",
|
||||
"syn 1.0.96",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@ -2500,9 +2489,9 @@ source = "git+https://github.com/AleoHQ/snarkVM.git?rev=85b7a79#85b7a790659168d6
|
||||
dependencies = [
|
||||
"proc-macro-crate",
|
||||
"proc-macro-error",
|
||||
"proc-macro2 1.0.37",
|
||||
"proc-macro2 1.0.39",
|
||||
"quote 1.0.18",
|
||||
"syn 1.0.91",
|
||||
"syn 1.0.96",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@ -2546,9 +2535,9 @@ checksum = "dcb5ae327f9cc13b68763b5749770cb9e048a99bd9dfdfa58d0cf05d5f64afe0"
|
||||
dependencies = [
|
||||
"heck",
|
||||
"proc-macro-error",
|
||||
"proc-macro2 1.0.37",
|
||||
"proc-macro2 1.0.39",
|
||||
"quote 1.0.18",
|
||||
"syn 1.0.91",
|
||||
"syn 1.0.96",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@ -2565,18 +2554,18 @@ checksum = "9ca4b3b69a77cbe1ffc9e198781b7acb0c7365a883670e8f1c1bc66fba79a5c5"
|
||||
dependencies = [
|
||||
"proc-macro2 0.4.30",
|
||||
"quote 0.6.13",
|
||||
"unicode-xid 0.1.0",
|
||||
"unicode-xid",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "syn"
|
||||
version = "1.0.91"
|
||||
version = "1.0.96"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b683b2b825c8eef438b77c36a06dc262294da3d5a5813fac20da149241dcd44d"
|
||||
checksum = "0748dd251e24453cb8717f0354206b91557e4ec8703673a4b30208f2abaf1ebf"
|
||||
dependencies = [
|
||||
"proc-macro2 1.0.37",
|
||||
"proc-macro2 1.0.39",
|
||||
"quote 1.0.18",
|
||||
"unicode-xid 0.2.2",
|
||||
"unicode-ident",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@ -2667,9 +2656,9 @@ version = "1.0.31"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "0396bc89e626244658bef819e22d0cc459e795a5ebe878e6ec336d1674a8d79a"
|
||||
dependencies = [
|
||||
"proc-macro2 1.0.37",
|
||||
"proc-macro2 1.0.39",
|
||||
"quote 1.0.18",
|
||||
"syn 1.0.91",
|
||||
"syn 1.0.96",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@ -2687,7 +2676,7 @@ version = "0.3.9"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "c2702e08a7a860f005826c6815dcac101b19b5eb330c27fe4a5928fec1d20ddd"
|
||||
dependencies = [
|
||||
"itoa 1.0.1",
|
||||
"itoa 1.0.2",
|
||||
"libc",
|
||||
"num_threads",
|
||||
"time-macros",
|
||||
@ -2711,9 +2700,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "tinyvec"
|
||||
version = "1.5.1"
|
||||
version = "1.6.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "2c1c1d5a42b6245520c249549ec267180beaffcc0615401ac8e31853d4b6d8d2"
|
||||
checksum = "87cc5ceb3875bb20c2890005a4e226a4651264a5c75edb2421b52861a0a0cb50"
|
||||
dependencies = [
|
||||
"tinyvec_macros",
|
||||
]
|
||||
@ -2726,15 +2715,16 @@ checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c"
|
||||
|
||||
[[package]]
|
||||
name = "tokio"
|
||||
version = "1.17.0"
|
||||
version = "1.19.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "2af73ac49756f3f7c01172e34a23e5d0216f6c32333757c2c61feb2bbff5a5ee"
|
||||
checksum = "c51a52ed6686dd62c320f9b89299e9dfb46f730c7a48e635c19f21d116cb1439"
|
||||
dependencies = [
|
||||
"bytes",
|
||||
"libc",
|
||||
"memchr",
|
||||
"mio 0.8.2",
|
||||
"mio 0.8.3",
|
||||
"num_cpus",
|
||||
"once_cell",
|
||||
"pin-project-lite",
|
||||
"socket2",
|
||||
"winapi 0.3.9",
|
||||
@ -2752,9 +2742,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "tokio-util"
|
||||
version = "0.7.1"
|
||||
version = "0.7.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "0edfdeb067411dba2044da6d1cb2df793dd35add7888d73c16e3381ded401764"
|
||||
checksum = "cc463cd8deddc3770d20f9852143d50bf6094e640b485cb2e189a2099085ff45"
|
||||
dependencies = [
|
||||
"bytes",
|
||||
"futures-core",
|
||||
@ -2793,20 +2783,20 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "tracing-attributes"
|
||||
version = "0.1.20"
|
||||
version = "0.1.21"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "2e65ce065b4b5c53e73bb28912318cb8c9e9ad3921f1d669eb0e68b4c8143a2b"
|
||||
checksum = "cc6b8ad3567499f98a1db7a752b07a7c8c7c7c34c332ec00effb2b0027974b7c"
|
||||
dependencies = [
|
||||
"proc-macro2 1.0.37",
|
||||
"proc-macro2 1.0.39",
|
||||
"quote 1.0.18",
|
||||
"syn 1.0.91",
|
||||
"syn 1.0.96",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "tracing-core"
|
||||
version = "0.1.25"
|
||||
version = "0.1.26"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "6dfce9f3241b150f36e8e54bb561a742d5daa1a47b5dd9a5ce369fd4a4db2210"
|
||||
checksum = "f54c8ca710e81886d498c2fd3331b56c93aa248d49de2222ad2742247c60072f"
|
||||
dependencies = [
|
||||
"lazy_static",
|
||||
"valuable",
|
||||
@ -2814,9 +2804,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "tracing-log"
|
||||
version = "0.1.2"
|
||||
version = "0.1.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "a6923477a48e41c1951f1999ef8bb5a3023eb723ceadafe78ffb65dc366761e3"
|
||||
checksum = "78ddad33d2d10b1ed7eb9d1f518a5674713876e97e5bb9b7345a7984fbb4f922"
|
||||
dependencies = [
|
||||
"lazy_static",
|
||||
"log",
|
||||
@ -2860,9 +2850,15 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "unicode-bidi"
|
||||
version = "0.3.7"
|
||||
version = "0.3.8"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "1a01404663e3db436ed2746d9fefef640d868edae3cceb81c3b8d5732fda678f"
|
||||
checksum = "099b7128301d285f79ddd55b9a83d5e6b9e97c92e0ea0daebee7263e932de992"
|
||||
|
||||
[[package]]
|
||||
name = "unicode-ident"
|
||||
version = "1.0.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "d22af068fba1eb5edcb4aea19d382b2a3deb4c8f9d475c589b6ada9e0fd493ee"
|
||||
|
||||
[[package]]
|
||||
name = "unicode-normalization"
|
||||
@ -2891,12 +2887,6 @@ version = "0.1.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "fc72304796d0818e357ead4e000d19c9c174ab23dc11093ac919054d20a6a7fc"
|
||||
|
||||
[[package]]
|
||||
name = "unicode-xid"
|
||||
version = "0.2.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3"
|
||||
|
||||
[[package]]
|
||||
name = "url"
|
||||
version = "2.2.2"
|
||||
@ -2994,9 +2984,9 @@ dependencies = [
|
||||
"bumpalo",
|
||||
"lazy_static",
|
||||
"log",
|
||||
"proc-macro2 1.0.37",
|
||||
"proc-macro2 1.0.39",
|
||||
"quote 1.0.18",
|
||||
"syn 1.0.91",
|
||||
"syn 1.0.96",
|
||||
"wasm-bindgen-shared",
|
||||
]
|
||||
|
||||
@ -3028,9 +3018,9 @@ version = "0.2.80"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "99ec0dc7a4756fffc231aab1b9f2f578d23cd391390ab27f952ae0c9b3ece20b"
|
||||
dependencies = [
|
||||
"proc-macro2 1.0.37",
|
||||
"proc-macro2 1.0.39",
|
||||
"quote 1.0.18",
|
||||
"syn 1.0.91",
|
||||
"syn 1.0.96",
|
||||
"wasm-bindgen-backend",
|
||||
"wasm-bindgen-shared",
|
||||
]
|
||||
@ -3096,9 +3086,9 @@ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
|
||||
|
||||
[[package]]
|
||||
name = "windows-sys"
|
||||
version = "0.34.0"
|
||||
version = "0.36.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "5acdd78cb4ba54c0045ac14f62d8f94a03d10047904ae2a40afa1e99d8f70825"
|
||||
checksum = "ea04155a16a59f9eab786fe12a4a450e75cdb175f9e0d80da1e17db09f55b8d2"
|
||||
dependencies = [
|
||||
"windows_aarch64_msvc",
|
||||
"windows_i686_gnu",
|
||||
@ -3109,33 +3099,33 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "windows_aarch64_msvc"
|
||||
version = "0.34.0"
|
||||
version = "0.36.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "17cffbe740121affb56fad0fc0e421804adf0ae00891205213b5cecd30db881d"
|
||||
checksum = "9bb8c3fd39ade2d67e9874ac4f3db21f0d710bee00fe7cab16949ec184eeaa47"
|
||||
|
||||
[[package]]
|
||||
name = "windows_i686_gnu"
|
||||
version = "0.34.0"
|
||||
version = "0.36.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "2564fde759adb79129d9b4f54be42b32c89970c18ebf93124ca8870a498688ed"
|
||||
checksum = "180e6ccf01daf4c426b846dfc66db1fc518f074baa793aa7d9b9aaeffad6a3b6"
|
||||
|
||||
[[package]]
|
||||
name = "windows_i686_msvc"
|
||||
version = "0.34.0"
|
||||
version = "0.36.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "9cd9d32ba70453522332c14d38814bceeb747d80b3958676007acadd7e166956"
|
||||
checksum = "e2e7917148b2812d1eeafaeb22a97e4813dfa60a3f8f78ebe204bcc88f12f024"
|
||||
|
||||
[[package]]
|
||||
name = "windows_x86_64_gnu"
|
||||
version = "0.34.0"
|
||||
version = "0.36.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "cfce6deae227ee8d356d19effc141a509cc503dfd1f850622ec4b0f84428e1f4"
|
||||
checksum = "4dcd171b8776c41b97521e5da127a2d86ad280114807d0b2ab1e462bc764d9e1"
|
||||
|
||||
[[package]]
|
||||
name = "windows_x86_64_msvc"
|
||||
version = "0.34.0"
|
||||
version = "0.36.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "d19538ccc21819d01deaf88d6a17eae6596a12e9aafdbb97916fb49896d89de9"
|
||||
checksum = "c811ca4a8c853ef420abd8592ba53ddbbac90410fab6903b3e79972a631f7680"
|
||||
|
||||
[[package]]
|
||||
name = "winreg"
|
||||
@ -3187,18 +3177,18 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "zstd"
|
||||
version = "0.10.0+zstd.1.5.2"
|
||||
version = "0.10.2+zstd.1.5.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "3b1365becbe415f3f0fcd024e2f7b45bacfb5bdd055f0dc113571394114e7bdd"
|
||||
checksum = "5f4a6bd64f22b5e3e94b4e238669ff9f10815c27a5180108b849d24174a83847"
|
||||
dependencies = [
|
||||
"zstd-safe",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "zstd-safe"
|
||||
version = "4.1.4+zstd.1.5.2"
|
||||
version = "4.1.6+zstd.1.5.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "2f7cd17c9af1a4d6c24beb1cc54b17e2ef7b593dc92f19e9d9acad8b182bbaee"
|
||||
checksum = "94b61c51bb270702d6167b8ce67340d2754b088d0c091b06e593aa772c3ee9bb"
|
||||
dependencies = [
|
||||
"libc",
|
||||
"zstd-sys",
|
||||
|
@ -22,7 +22,7 @@ use std::fmt;
|
||||
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
|
||||
pub enum ParamMode {
|
||||
Constant,
|
||||
Const,
|
||||
Private,
|
||||
Public,
|
||||
}
|
||||
@ -32,7 +32,7 @@ impl fmt::Display for ParamMode {
|
||||
use ParamMode::*;
|
||||
|
||||
match self {
|
||||
Constant => write!(f, "constant"),
|
||||
Const => write!(f, "const"),
|
||||
Private => write!(f, "private"),
|
||||
Public => write!(f, "public"),
|
||||
}
|
||||
|
@ -69,8 +69,8 @@ impl ParserContext<'_> {
|
||||
}
|
||||
|
||||
match (public, constant, const_) {
|
||||
(None, Some(_), None) => Ok(ParamMode::Constant),
|
||||
(None, None, Some(_)) => Ok(ParamMode::Constant),
|
||||
(None, Some(_), None) => Ok(ParamMode::Const),
|
||||
(None, None, Some(_)) => Ok(ParamMode::Const),
|
||||
(None, None, None) => Ok(ParamMode::Private),
|
||||
(Some(_), None, None) => Ok(ParamMode::Public),
|
||||
(Some(m1), Some(m2), None) | (Some(m1), None, Some(m2)) | (None, Some(m1), Some(m2)) => {
|
||||
|
@ -341,7 +341,12 @@ impl Token {
|
||||
));
|
||||
}
|
||||
|
||||
Err(ParserError::could_not_lex(input.collect::<String>()).into())
|
||||
Err(ParserError::could_not_lex(
|
||||
input
|
||||
.take_while(|c| *c != ';' && !c.is_whitespace())
|
||||
.collect::<String>(),
|
||||
)
|
||||
.into())
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -20,7 +20,7 @@ use serde::{Deserialize, Serialize};
|
||||
use std::fmt;
|
||||
|
||||
/// Represents all valid Leo syntax tokens.
|
||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
|
||||
pub enum Token {
|
||||
// Lexical Grammar
|
||||
// Literals
|
||||
@ -110,6 +110,7 @@ pub const KEYWORD_TOKENS: &[Token] = &[
|
||||
Token::Bool,
|
||||
Token::Console,
|
||||
Token::Const,
|
||||
Token::Constant,
|
||||
Token::Else,
|
||||
Token::False,
|
||||
Token::Field,
|
||||
|
@ -18,7 +18,7 @@ use std::fmt::Display;
|
||||
|
||||
use leo_ast::Function;
|
||||
use leo_errors::{AstError, Result};
|
||||
use leo_span::Symbol;
|
||||
use leo_span::{Span, Symbol};
|
||||
|
||||
use indexmap::IndexMap;
|
||||
|
||||
@ -35,11 +35,11 @@ pub struct SymbolTable<'a> {
|
||||
}
|
||||
|
||||
impl<'a> SymbolTable<'a> {
|
||||
pub fn check_shadowing(&self, symbol: &Symbol) -> Result<()> {
|
||||
if let Some(function) = self.functions.get(symbol) {
|
||||
Err(AstError::shadowed_function(symbol, function.span).into())
|
||||
pub fn check_shadowing(&self, symbol: &Symbol, span: Span) -> Result<()> {
|
||||
if self.functions.contains_key(symbol) {
|
||||
Err(AstError::shadowed_function(symbol, span).into())
|
||||
} else {
|
||||
self.variables.check_shadowing(symbol)?;
|
||||
self.variables.check_shadowing(symbol, span)?;
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
@ -49,13 +49,13 @@ impl<'a> SymbolTable<'a> {
|
||||
}
|
||||
|
||||
pub fn insert_fn(&mut self, symbol: Symbol, insert: &'a Function) -> Result<()> {
|
||||
self.check_shadowing(&symbol)?;
|
||||
self.check_shadowing(&symbol, insert.span)?;
|
||||
self.functions.insert(symbol, insert);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn insert_variable(&mut self, symbol: Symbol, insert: VariableSymbol<'a>) -> Result<()> {
|
||||
self.check_shadowing(&symbol)?;
|
||||
self.check_shadowing(&symbol, insert.span)?;
|
||||
self.variables.variables.insert(symbol, insert);
|
||||
Ok(())
|
||||
}
|
||||
|
@ -18,7 +18,7 @@ use std::fmt::Display;
|
||||
|
||||
use indexmap::IndexMap;
|
||||
use leo_errors::{AstError, Result};
|
||||
use leo_span::Symbol;
|
||||
use leo_span::{Span, Symbol};
|
||||
|
||||
use crate::VariableSymbol;
|
||||
|
||||
@ -35,11 +35,11 @@ pub struct VariableScope<'a> {
|
||||
}
|
||||
|
||||
impl<'a> VariableScope<'a> {
|
||||
pub fn check_shadowing(&self, symbol: &Symbol) -> Result<()> {
|
||||
if let Some(var) = self.variables.get(symbol) {
|
||||
Err(AstError::shadowed_variable(symbol, var.span).into())
|
||||
pub fn check_shadowing(&self, symbol: &Symbol, span: Span) -> Result<()> {
|
||||
if self.variables.contains_key(symbol) {
|
||||
Err(AstError::shadowed_variable(symbol, span).into())
|
||||
} else if let Some(parent) = &self.parent {
|
||||
parent.check_shadowing(symbol)
|
||||
parent.check_shadowing(symbol, span)
|
||||
} else {
|
||||
Ok(())
|
||||
}
|
||||
|
@ -69,7 +69,7 @@ impl<'a> StatementVisitorDirector<'a> for Director<'a> {
|
||||
.visitor
|
||||
.handler
|
||||
.emit_err(TypeCheckerError::cannont_assign_to_const_var(var_name, var.span).into()),
|
||||
Declaration::Input(ParamMode::Constant) => self
|
||||
Declaration::Input(ParamMode::Const) => self
|
||||
.visitor
|
||||
.handler
|
||||
.emit_err(TypeCheckerError::cannont_assign_to_const_input(var_name, var.span).into()),
|
||||
|
@ -73,6 +73,7 @@ keyword = %s"address"
|
||||
/ %s"const"
|
||||
/ %s"constant"
|
||||
/ %s"else"
|
||||
/ %s"false"
|
||||
/ %s"field"
|
||||
/ %s"for"
|
||||
/ %s"function"
|
||||
@ -88,6 +89,8 @@ keyword = %s"address"
|
||||
/ %s"public"
|
||||
/ %s"return"
|
||||
/ %s"scalar"
|
||||
/ %s"string"
|
||||
/ %s"true"
|
||||
/ %s"u8"
|
||||
/ %s"u16"
|
||||
/ %s"u32"
|
||||
|
@ -28,7 +28,7 @@ macro_rules! create_messages {
|
||||
};
|
||||
($(#[$error_type_docs:meta])* $type_:ident, code_mask: $code_mask:expr, code_prefix: $code_prefix:expr, $($(#[$docs:meta])* @$formatted_or_backtraced_list:ident $names:ident { args: ($($arg_names:ident: $arg_types:ty$(,)?)*), msg: $messages:expr, help: $helps:expr, })*) => {
|
||||
#[allow(unused_imports)] // Allow unused for errors that only use formatted or backtraced errors.
|
||||
use crate::{Backtraced, Formatted, LeoMessageCode};
|
||||
use $crate::{Backtraced, Formatted, LeoMessageCode};
|
||||
|
||||
use backtrace::Backtrace;
|
||||
|
||||
|
@ -143,7 +143,7 @@ create_messages!(
|
||||
@formatted
|
||||
shadowed_function {
|
||||
args: (func: impl Display),
|
||||
msg: format!("function `{func}` shadowed"),
|
||||
msg: format!("function `{func}` shadowed by"),
|
||||
help: None,
|
||||
}
|
||||
|
||||
@ -151,7 +151,7 @@ create_messages!(
|
||||
@formatted
|
||||
shadowed_variable {
|
||||
args: (var: impl Display),
|
||||
msg: format!("variable `{var}` shadowed"),
|
||||
msg: format!("variable `{var}` shadowed by"),
|
||||
help: None,
|
||||
}
|
||||
);
|
||||
|
@ -244,7 +244,7 @@ create_messages!(
|
||||
@backtraced
|
||||
could_not_lex {
|
||||
args: (input: impl Display),
|
||||
msg: format!("Could not lex the following content: `{}`.", input),
|
||||
msg: format!("Could not lex the following content: `{}`.\n", input),
|
||||
help: None,
|
||||
}
|
||||
|
||||
|
@ -191,7 +191,7 @@ where
|
||||
.get::<FormattedFields<N>>()
|
||||
.expect("Unable to find FormattedFields in extensions; this is a bug");
|
||||
if !fields.is_empty() {
|
||||
message += &format!("{{{}}}", fields);
|
||||
message = format!("{message} {{{fields}}}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,4 +2,4 @@
|
||||
namespace: Compile
|
||||
expectation: Fail
|
||||
outputs:
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'';\n}\n`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `''`.\n"
|
||||
|
@ -2,4 +2,4 @@
|
||||
namespace: Compile
|
||||
expectation: Fail
|
||||
outputs:
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'a' ? 'a' : 'Z';\n}\n`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'a'`.\n"
|
||||
|
@ -2,4 +2,4 @@
|
||||
namespace: Compile
|
||||
expectation: Fail
|
||||
outputs:
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'z' ? 'x' : character;\n}\n`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'z'`.\n"
|
||||
|
@ -2,4 +2,4 @@
|
||||
namespace: Compile
|
||||
expectation: Fail
|
||||
outputs:
|
||||
- "Error [EAST0372014]: function `main` shadowed\n --> compiler-test:3:1\n |\n 3 | function main(y: bool) -> bool {\n 4 | console.log(\"{}\", 1u8);\n 5 | return y;\n 6 | }\n | ^\n"
|
||||
- "Error [EAST0372014]: function `main` shadowed by\n --> compiler-test:8:1\n |\n 8 | function main(y: bool) -> bool {\n 9 | console.log(\"{}\", 2u8);\n 10 | return y; \n 11 | }\n | ^\n"
|
||||
|
@ -2,4 +2,4 @@
|
||||
namespace: Compile
|
||||
expectation: Fail
|
||||
outputs:
|
||||
- "Error [EAST0372015]: variable `a` shadowed\n --> compiler-test:3:15\n |\n 3 | function main(a: u32, a: u32) -> u32 {\n | ^\n"
|
||||
- "Error [EAST0372015]: variable `a` shadowed by\n --> compiler-test:3:23\n |\n 3 | function main(a: u32, a: u32) -> u32 {\n | ^\n"
|
||||
|
@ -2,4 +2,4 @@
|
||||
namespace: Compile
|
||||
expectation: Fail
|
||||
outputs:
|
||||
- "Error [EAST0372014]: function `hi` shadowed\n --> compiler-test:3:1\n |\n 3 | function hi() -> u8 {\n 4 | return 0u8;\n 5 | }\n | ^\n"
|
||||
- "Error [EAST0372014]: function `hi` shadowed by\n --> compiler-test:7:17\n |\n 7 | function tester(hi: u8) -> u8 {\n | ^^\n"
|
||||
|
@ -4,5 +4,5 @@ expectation: Pass
|
||||
outputs:
|
||||
- output:
|
||||
- initial_input_ast: b26b209013041060043f6269635f9af934cc06c0f8384a8b0e6b10df0d3f5cb9
|
||||
initial_ast: 66ae45c15c3f26615d40f25b904599180fbc7fb8f38c20b1249abb1e8d3dd2a1
|
||||
symbol_table: 031a91bf50d051b6ffb92f6853fa4bece1f5f8f0aa145a28abed6bd1d4cf7bdd
|
||||
initial_ast: cbf1b9369fe1a0b4dd0739d9053f6bfa68332f15e05e04a789d3f5c4a12cd2b8
|
||||
symbol_table: 0c159f2d4019e8ce09298ed85f51214a307e72e2e0cbfae36ff844e54221f6f3
|
||||
|
@ -4,5 +4,5 @@ expectation: Pass
|
||||
outputs:
|
||||
- output:
|
||||
- initial_input_ast: 0aad54fd47d9c5f87dc0559e8c7cde742e1f6ea554f26d00367cf5b03921495e
|
||||
initial_ast: 56cb9d299b0ad0d22a31929f017aebc28ca23d2217f5a5b8fd247548d5b39a3a
|
||||
symbol_table: ec750d5d5f4a1e5b31a63e0bc8e12944eef200f2d71efcdb0fd85811ac6e2d31
|
||||
initial_ast: 266cee8b7e829b087f62e88b8b3b136a15b8009643e0d62cf81708fd34bac72a
|
||||
symbol_table: 876b01cb4c834949c3a9bae4d6ebc2a675c5c6d8f0d44738ad3624be693169d5
|
||||
|
@ -4,5 +4,5 @@ expectation: Pass
|
||||
outputs:
|
||||
- output:
|
||||
- initial_input_ast: ab788992b0e08b3ba20bde1db2c473a4e006f06adefcddca936b148efff76b89
|
||||
initial_ast: 64526d163b440348895219c405c6aeca8e41d671883ab07c9a202f4a1ffd51ec
|
||||
symbol_table: 14140f05d5fb8a85352940a67860fd36ed597f93ac882fdb76ef3d1ed89b5031
|
||||
initial_ast: 41ee3e9f3d7ab64d1d4a6972678fa7f891eb5fdd2359a98fca496142eb4ea616
|
||||
symbol_table: 5b4e625f4a8684ff3dbfce2fb03cd8e64d1f22f1397b8106aee9e13034bef0ac
|
||||
|
@ -4,5 +4,5 @@ expectation: Pass
|
||||
outputs:
|
||||
- output:
|
||||
- initial_input_ast: b9e3c34f642651adf69796a7619a504427dcc3ff7733e5a8925dd31bb1677e9a
|
||||
initial_ast: c4eadb0618a6696d4c4bc807bf3a3ceebd2ba8f8a09af15c8a8dbb6882c9286c
|
||||
symbol_table: 9674d1e094af108a21c9a8f2e9c5b911f76504d728866f9b57b6e38318c52741
|
||||
initial_ast: 8c1e8c1a4eca6c8d444729150d12308d4202fef24343edb3cd992a9cc2a05ca9
|
||||
symbol_table: cbab89bb481942bafb0524e8228ea50c64926bdec2bb8c75a13f1733515459f4
|
||||
|
@ -2,4 +2,4 @@
|
||||
namespace: Compile
|
||||
expectation: Fail
|
||||
outputs:
|
||||
- "Error [EAST0372015]: variable `x` shadowed\n --> compiler-test:4:2\n |\n 4 | \tlet x: u8 = 1u8;\n | ^^^^^^^^^^^^^^^\n"
|
||||
- "Error [EAST0372015]: variable `x` shadowed by\n --> compiler-test:5:4\n |\n 5 | \tlet x: bool = true;\n | ^^^^^^^^^^^^^^^^^^\n"
|
||||
|
@ -2,56 +2,56 @@
|
||||
namespace: Token
|
||||
expectation: Fail
|
||||
outputs:
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'a'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'Z'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\\"'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\''`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\t'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\r'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\0'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u{F}'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `''`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u{E5}'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'å'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u{4e0}'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'Ӡ'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u{d800}'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u{2764}'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'❤'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u{1F622}'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'😭'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u{10001F}'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x2A'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x7f'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x00'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x01'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x02'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x03'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x04'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x05'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x06'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x07'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x10'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x11'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x12'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x13'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x14'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x15'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x16'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x17'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x20'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x21'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x22'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x23'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x24'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x25'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x26'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x27'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x30'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x31'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x32'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x33'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x34'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x35'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x36'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x37'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'a'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'Z'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\\"'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\''`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\t'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\r'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\0'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u{F}'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `''`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u{E5}'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'å'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u{4e0}'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'Ӡ'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u{d800}'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u{2764}'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'❤'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u{1F622}'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'😭'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u{10001F}'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x2A'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x7f'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x00'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x01'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x02'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x03'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x04'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x05'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x06'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x07'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x10'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x11'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x12'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x13'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x14'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x15'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x16'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x17'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x20'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x21'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x22'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x23'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x24'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x25'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x26'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x27'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x30'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x31'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x32'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x33'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x34'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x35'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x36'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x37'`.\n"
|
||||
|
@ -2,50 +2,50 @@
|
||||
namespace: Token
|
||||
expectation: Fail
|
||||
outputs:
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `\\`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `\\n`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'a`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `''`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x7'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\xz'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x9A'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x7g'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x80'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\xc1'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\xc2'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\xDF'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\xC0'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\xe0'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x9f'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'abcdefg'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\a'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\z'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\A'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\Z'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\1'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\9'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\*'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\t\\t'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\uz'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u1'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u};`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'🦀\\n'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u123'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'🦀1🦀'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u6🦀}'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u{af🦀'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u{2764z'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u{276g}'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u9999999'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u00000000'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u01000000'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u{110000}'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u{1234567890}'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u{bbbbb}\\u{aaaa}'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'😭😂😘'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `''`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `\\`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `\\n`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'a`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `''`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x7'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\xz'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x9A'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x7g'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x80'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\xc1'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\xc2'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\xDF'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\xC0'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\xe0'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x9f'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'abcdefg'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\a'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\z'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\A'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\Z'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\1'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\9'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\*'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\t\\t'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\uz'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u1'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u}`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'🦀\\n'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u123'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'🦀1🦀'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u6🦀}'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u{af🦀'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u{2764z'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u{276g}'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u9999999'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u00000000'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u01000000'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u{110000}'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u{1234567890}'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u{bbbbb}\\u{aaaa}'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'😭😂😘'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `''`.\n"
|
||||
|
@ -2,54 +2,54 @@
|
||||
namespace: Token
|
||||
expectation: Fail
|
||||
outputs:
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'a'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'Z'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\\"'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\t'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\r'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\0'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u{F}'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `''`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u{E5}'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'å'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u{4e0}'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'Ӡ'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u{2764}'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'❤'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u{1F622}'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'😭'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u{10001F}'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x2A'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x7f'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x00'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x01'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x02'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x03'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x04'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x05'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x06'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x07'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x10'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x11'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x12'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x13'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x14'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x15'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x16'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x17'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x20'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x21'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x22'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x23'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x24'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x25'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x26'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x27'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x30'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x31'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x32'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x33'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x34'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x35'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x36'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x37'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'a'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'Z'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\\"'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\t'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\r'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\0'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u{F}'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `''`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u{E5}'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'å'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u{4e0}'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'Ӡ'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u{2764}'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'❤'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u{1F622}'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'😭'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u{10001F}'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x2A'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x7f'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x00'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x01'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x02'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x03'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x04'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x05'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x06'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x07'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x10'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x11'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x12'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x13'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x14'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x15'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x16'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x17'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x20'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x21'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x22'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x23'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x24'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x25'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x26'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x27'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x30'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x31'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x32'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x33'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x34'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x35'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x36'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\x37'`.\n"
|
||||
|
@ -7,8 +7,8 @@ outputs:
|
||||
- "Error [EPAR0370009]: unexpected string: expected 'expression', got '/'\n --> test:1:1\n |\n 1 | / /\n | ^"
|
||||
- "Error [EPAR0370025]: Block comment does not close with content: `/*/`."
|
||||
- "Error [EPAR0370009]: unexpected string: expected 'expression', got '*'\n --> test:1:1\n |\n 1 | */\n | ^"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `🦀**/`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `🦀*/`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `🦀**/`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `🦀*/`.\n"
|
||||
- "Error [EPAR0370025]: Block comment does not close with content: `/*🦀/`."
|
||||
- "Error [EPAR0370025]: Block comment does not close with content: `/**🦀`."
|
||||
- "Error [EPAR0370025]: Block comment does not close with content: `/*🦀`."
|
||||
|
@ -2,15 +2,15 @@
|
||||
namespace: ParseExpression
|
||||
expectation: Fail
|
||||
outputs:
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `~`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `~`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `~`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `~`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `~`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `~`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'h' ~`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `@test`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `~`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `~`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `~`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `~`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `~`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `~`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `~`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'h'`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `@test`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `~`.\n"
|
||||
- "Error [EPAR0370009]: unexpected string: expected 'expression', got '&&'\n --> test:1:1\n |\n 1 | &&\n | ^^"
|
||||
- "Error [EPAR0370009]: unexpected string: expected 'expression', got '||'\n --> test:1:1\n |\n 1 | ||\n | ^^"
|
||||
- "Error [EPAR0370009]: unexpected string: expected 'expression', got '=='\n --> test:1:1\n |\n 1 | ==\n | ^^"
|
||||
@ -46,22 +46,22 @@ outputs:
|
||||
- "Error [EPAR0370009]: unexpected string: expected 'expression', got '?'\n --> test:1:1\n |\n 1 | ?\n | ^"
|
||||
- "Error [EPAR0370009]: unexpected string: expected 'expression', got '->'\n --> test:1:1\n |\n 1 | ->\n | ^^"
|
||||
- "Error [EPAR0370009]: unexpected string: expected 'expression', got '_'\n --> test:1:1\n |\n 1 | _\n | ^"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `~`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `~`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `~`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `~`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `~`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `~`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `~`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `~`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `~`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `~`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `~`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `~`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `~`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `~`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `~`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `~`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `~`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `~`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `~`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `~`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `~`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `~`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `~`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `~`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `~`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `~`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `~`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `~`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `~`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `~`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `~`.\n"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `~`.\n"
|
||||
- "Error [EPAR0370009]: unexpected string: expected 'expression', got 'console'\n --> test:1:1\n |\n 1 | console\n | ^^^^^^^"
|
||||
- "Error [EPAR0370009]: unexpected string: expected 'expression', got 'const'\n --> test:1:1\n |\n 1 | const\n | ^^^^^"
|
||||
- "Error [EPAR0370009]: unexpected string: expected 'expression', got 'else'\n --> test:1:1\n |\n 1 | else\n | ^^^^"
|
||||
|
@ -2,4 +2,4 @@
|
||||
namespace: Parse
|
||||
expectation: Fail
|
||||
outputs:
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `@foo(?, bar, ?)\nfunction x() {\n return ();\n}\n\n@bar(123) // ints not vali\nfunction x() {\n return ();\n}\n\n\n@context // recovery witness\nfunction x() {\n return ();\n}\n`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `@foo(?,`.\n"
|
||||
|
@ -2,4 +2,4 @@
|
||||
namespace: Parse
|
||||
expectation: Fail
|
||||
outputs:
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `@context\nfunction f() {\n return ();\n}\n\n@context // recovery witness\nfunction g() {\n return ();\n}\n`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `@context`.\n"
|
||||
|
@ -10,7 +10,7 @@ outputs:
|
||||
input:
|
||||
- Variable:
|
||||
identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":19,\\\"hi\\\":20}\"}"
|
||||
mode: Constant
|
||||
mode: Const
|
||||
type_:
|
||||
IntegerType: U8
|
||||
span:
|
||||
@ -32,7 +32,7 @@ outputs:
|
||||
input:
|
||||
- Variable:
|
||||
identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":56,\\\"hi\\\":57}\"}"
|
||||
mode: Constant
|
||||
mode: Const
|
||||
type_:
|
||||
IntegerType: U64
|
||||
span:
|
||||
|
@ -18,7 +18,7 @@ outputs:
|
||||
hi: 14
|
||||
- Variable:
|
||||
identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":30,\\\"hi\\\":31}\"}"
|
||||
mode: Constant
|
||||
mode: Const
|
||||
type_:
|
||||
IntegerType: I32
|
||||
span:
|
||||
@ -52,7 +52,7 @@ outputs:
|
||||
input:
|
||||
- Variable:
|
||||
identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":85,\\\"hi\\\":86}\"}"
|
||||
mode: Constant
|
||||
mode: Const
|
||||
type_:
|
||||
IntegerType: U32
|
||||
span:
|
||||
|
@ -2,4 +2,4 @@
|
||||
namespace: Parse
|
||||
expectation: Fail
|
||||
outputs:
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `\\`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `\\`.\n"
|
||||
|
@ -5,7 +5,7 @@ outputs:
|
||||
- sections:
|
||||
- name: main
|
||||
definitions:
|
||||
- mode: Constant
|
||||
- mode: Const
|
||||
type_: Boolean
|
||||
name: "{\"name\":\"a\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}"
|
||||
value:
|
||||
@ -18,7 +18,7 @@ outputs:
|
||||
span:
|
||||
lo: 18
|
||||
hi: 22
|
||||
- mode: Constant
|
||||
- mode: Const
|
||||
type_:
|
||||
IntegerType: U8
|
||||
name: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":38,\\\"hi\\\":39}\"}"
|
||||
@ -33,7 +33,7 @@ outputs:
|
||||
span:
|
||||
lo: 41
|
||||
hi: 43
|
||||
- mode: Constant
|
||||
- mode: Const
|
||||
type_: Field
|
||||
name: "{\"name\":\"c\",\"span\":\"{\\\"lo\\\":60,\\\"hi\\\":61}\"}"
|
||||
value:
|
||||
@ -46,7 +46,7 @@ outputs:
|
||||
span:
|
||||
lo: 63
|
||||
hi: 68
|
||||
- mode: Constant
|
||||
- mode: Const
|
||||
type_: Group
|
||||
name: "{\"name\":\"d\",\"span\":\"{\\\"lo\\\":85,\\\"hi\\\":86}\"}"
|
||||
value:
|
||||
@ -71,7 +71,7 @@ outputs:
|
||||
span:
|
||||
lo: 88
|
||||
hi: 93
|
||||
- mode: Constant
|
||||
- mode: Const
|
||||
type_: Address
|
||||
name: "{\"name\":\"e\",\"span\":\"{\\\"lo\\\":115,\\\"hi\\\":116}\"}"
|
||||
value:
|
||||
@ -84,7 +84,7 @@ outputs:
|
||||
span:
|
||||
lo: 118
|
||||
hi: 125
|
||||
- mode: Constant
|
||||
- mode: Const
|
||||
type_:
|
||||
IntegerType: I8
|
||||
name: "{\"name\":\"f\",\"span\":\"{\\\"lo\\\":199,\\\"hi\\\":200}\"}"
|
||||
|
@ -5,7 +5,7 @@ outputs:
|
||||
- sections:
|
||||
- name: main
|
||||
definitions:
|
||||
- mode: Constant
|
||||
- mode: Const
|
||||
type_: Boolean
|
||||
name: "{\"name\":\"a\",\"span\":\"{\\\"lo\\\":18,\\\"hi\\\":19}\"}"
|
||||
value:
|
||||
@ -18,7 +18,7 @@ outputs:
|
||||
span:
|
||||
lo: 21
|
||||
hi: 25
|
||||
- mode: Constant
|
||||
- mode: Const
|
||||
type_:
|
||||
IntegerType: U8
|
||||
name: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":44,\\\"hi\\\":45}\"}"
|
||||
@ -33,7 +33,7 @@ outputs:
|
||||
span:
|
||||
lo: 47
|
||||
hi: 49
|
||||
- mode: Constant
|
||||
- mode: Const
|
||||
type_: Field
|
||||
name: "{\"name\":\"c\",\"span\":\"{\\\"lo\\\":69,\\\"hi\\\":70}\"}"
|
||||
value:
|
||||
@ -46,7 +46,7 @@ outputs:
|
||||
span:
|
||||
lo: 72
|
||||
hi: 77
|
||||
- mode: Constant
|
||||
- mode: Const
|
||||
type_: Group
|
||||
name: "{\"name\":\"d\",\"span\":\"{\\\"lo\\\":97,\\\"hi\\\":98}\"}"
|
||||
value:
|
||||
@ -71,7 +71,7 @@ outputs:
|
||||
span:
|
||||
lo: 100
|
||||
hi: 105
|
||||
- mode: Constant
|
||||
- mode: Const
|
||||
type_: Address
|
||||
name: "{\"name\":\"e\",\"span\":\"{\\\"lo\\\":130,\\\"hi\\\":131}\"}"
|
||||
value:
|
||||
@ -84,7 +84,7 @@ outputs:
|
||||
span:
|
||||
lo: 133
|
||||
hi: 140
|
||||
- mode: Constant
|
||||
- mode: Const
|
||||
type_:
|
||||
IntegerType: I8
|
||||
name: "{\"name\":\"f\",\"span\":\"{\\\"lo\\\":217,\\\"hi\\\":218}\"}"
|
||||
|
@ -2,4 +2,4 @@
|
||||
namespace: Parse
|
||||
expectation: Fail
|
||||
outputs:
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `\\`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `\\`.\n"
|
||||
|
@ -2,4 +2,4 @@
|
||||
namespace: Parse
|
||||
expectation: Fail
|
||||
outputs:
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `$`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `$`.\n"
|
||||
|
@ -2,4 +2,4 @@
|
||||
namespace: Parse
|
||||
expectation: Fail
|
||||
outputs:
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `\\1u8`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `\\1u8`.\n"
|
||||
|
@ -2,4 +2,4 @@
|
||||
namespace: Parse
|
||||
expectation: Fail
|
||||
outputs:
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'`.\n"
|
||||
|
@ -2,4 +2,4 @@
|
||||
namespace: Parse
|
||||
expectation: Fail
|
||||
outputs:
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `~`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `~`.\n"
|
||||
|
@ -2,4 +2,4 @@
|
||||
namespace: Parse
|
||||
expectation: Fail
|
||||
outputs:
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `'\\u`.\n"
|
||||
|
@ -15,4 +15,4 @@ outputs:
|
||||
- "Error [EPAR0370005]: expected ; -- got '{'\n --> test:1:3\n |\n 1 | x {x: y, y: z} = y;\n | ^"
|
||||
- "Error [EPAR0370011]: invalid assignment target\n --> test:1:1\n |\n 1 | x() = y;\n | ^^^"
|
||||
- "Error [EPAR0370009]: unexpected string: expected 'int or ident', got 'y'\n --> test:1:3\n |\n 1 | x.y() = y;\n | ^"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `🦀 = y;`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `🦀`.\n"
|
||||
|
@ -42,6 +42,6 @@ outputs:
|
||||
- "Error [EPAR0370005]: expected 'address', 'bool', 'field', 'group', 'scalar', 'string', 'i8', 'i16', 'i32', 'i64', 'i128', 'u8', 'u16', 'u32', 'u64', 'u128' -- got '['\n --> test:1:8\n |\n 1 | let x: [u8;\n | ^"
|
||||
- "Error [EPAR0370005]: expected 'address', 'bool', 'field', 'group', 'scalar', 'string', 'i8', 'i16', 'i32', 'i64', 'i128', 'u8', 'u16', 'u32', 'u64', 'u128' -- got '['\n --> test:1:8\n |\n 1 | let x: [u8; 1u8] = [1,\n | ^"
|
||||
- "Error [EPAR0370009]: unexpected string: expected 'expression', got ']'\n --> test:1:15\n |\n 1 | let dbg: u8 = ];\n | ^"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `🦀: u8 = 0;`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `🦀:`.\n"
|
||||
- "Error [EPAR0370035]: do not put parens around single variable names\n --> test:1:6\n |\n 1 | let (x) = ...;\n | ^\nError [EPAR0370005]: expected : -- got '='\n --> test:1:9\n |\n 1 | let (x) = ...;\n | ^"
|
||||
- "Error [EPAR0370035]: do not put parens around single variable names\n --> test:1:6\n |\n 1 | let (x,) = ...;\n | ^\nError [EPAR0370005]: expected : -- got '='\n --> test:1:10\n |\n 1 | let (x,) = ...;\n | ^"
|
||||
|
@ -4,7 +4,7 @@ expectation: Fail
|
||||
outputs:
|
||||
- "Error [EPAR0370009]: unexpected string: expected 'expression', got ']'\n --> test:1:2\n |\n 1 | (];\n | ^"
|
||||
- "Error [EPAR0370009]: unexpected string: expected 'expression', got '['\n --> test:1:1\n |\n 1 | [);\n | ^"
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `\\y;`."
|
||||
- "Error [EPAR0370026]: Could not lex the following content: `\\y`.\n"
|
||||
- "Error [EPAR0370037]: Found the char `;`, but expected `|`"
|
||||
- "Error [EPAR0370005]: expected ; -- got '['\n --> test:1:2\n |\n 1 | x[};\n | ^"
|
||||
- "Error [EPAR0370005]: expected ) -- got ']'\n --> test:1:6\n |\n 1 | (x, y];\n | ^"
|
||||
|
@ -26,7 +26,7 @@ use std::{
|
||||
|
||||
use crate::{error::*, fetch::find_tests, output::TestExpectation, test::*};
|
||||
|
||||
#[derive(Debug, PartialEq, Clone, Copy)]
|
||||
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
|
||||
pub enum ParseType {
|
||||
Line,
|
||||
ContinuousLines,
|
||||
|
@ -16,7 +16,7 @@
|
||||
|
||||
use std::collections::BTreeMap;
|
||||
|
||||
#[derive(serde::Serialize, serde::Deserialize, PartialEq, Debug, Clone)]
|
||||
#[derive(serde::Serialize, serde::Deserialize, PartialEq, Eq, Debug, Clone)]
|
||||
pub enum TestExpectationMode {
|
||||
Pass,
|
||||
Fail,
|
||||
|
Loading…
Reference in New Issue
Block a user