remove unused errors

This commit is contained in:
Mazdak Farrokhzad 2022-07-20 20:19:00 +02:00
parent afd3fa3dc5
commit db42194d49
86 changed files with 381 additions and 1881 deletions

View File

@ -1,52 +0,0 @@
# An empty string `""`
## Example
This error occurs when an empty string literal was specified.
Erroneous code example:
```js
function main() {
let empty_string = "";
}
```
The compiler will reject this code with:
```java
Error: --> main.leo:2:24
|
2 | let empty_string = "";
| ^^
|
= Cannot constrcut an empty string: it has the type of [char; 0] which is not possible.
```
As the error indicates, the type of `""`, the empty string, would be `[char; 0]`.
The type is not, as one might expect in languages like Rust or Java,
a `String` or `str`, where the size is statically unknown.
Rather, string literals in Leo are arrays of `char`s.
So given that `""` is an array type with size `0`,
the Leo compiler will reject the program, as it would have done with e.g...:
```js
function main() {
let empty: [u8; 0] = [];
}
```
## Solutions
You will not be able to use `""`, but all is not lost.
Depending on what you want to achieve in your program, there may be solutions.
For example, if you want to select between two strings,
you can pad the other strings with whitespace to represent emptiness.
```js
function main() {
let condition = false;
let a_or_empty = condition ? "a" : " ";
}
```
Here, `" "` represents the empty string but is of the same type as `"a"`.

View File

@ -66,63 +66,6 @@ create_messages!(
help: None, help: None,
} }
/// For when a user tries to use the `Self` keyword outside of a cricuit.
@formatted
big_self_outside_of_circuit {
args: (),
msg: "cannot call keyword `Self` outside of a circuit function",
help: None,
}
/// For when a user tries to define a array dimension of 0.
@formatted
invalid_array_dimension_size {
args: (),
msg: "received dimension size of 0, expected it to be 1 or larger.",
help: None,
}
/// For when a user tries to give certain statements a block rather than another statement.
@formatted
ast_statement_not_block {
args: (),
msg: "AstStatement should be be a block",
help: None,
}
/// For when a user tries to construct an empty string, which is a zero size array.
@formatted
empty_string {
args: (),
msg: "Cannot constrcut an empty string: it has the type of [char; 0] which is not possible.",
help: None,
}
/// This error should never be reached, but represents trying to expand a console assert.
@formatted
impossible_console_assert_call {
args: (),
msg: "Console::Assert cannot be matched here, its handled in another case.",
help: None,
}
/// This error is for when a user tries to use the library and programmatically inject an import
/// on the rust side.
@backtraced
injected_programs {
args: (injected_import_count: impl Display),
msg: format!("It seems the AST has {} injected imports. This is unexpected please import the library naturally", injected_import_count),
help: None,
}
/// For when a import of the specified name is unresolved.
@formatted
unresolved_import {
args: (name: impl Display),
msg: format!("failed to resolve import: '{}'", name),
help: None,
}
/// For when the AST fails to be represented as a JSON value. /// For when the AST fails to be represented as a JSON value.
@backtraced @backtraced
failed_to_convert_ast_to_json_value { failed_to_convert_ast_to_json_value {

View File

@ -26,111 +26,6 @@ create_messages!(
code_mask: 7000i32, code_mask: 7000i32,
code_prefix: "CLI", code_prefix: "CLI",
/// Not actually ever returned anywhere outside a test.
@backtraced
opt_args_error {
args: (error: impl ErrorArg),
msg: format!("opt arg error {}", error),
help: None,
}
/// For when APM returns an unidentifed API error.
@backtraced
unidentified_api {
args: (),
msg: "Unidentified API error",
help: None,
}
/// For when the CLI is unable to connect to a Leo Package Manager.
@backtraced
unable_to_connect_aleo_pm {
args: (),
msg: "Unable to connect to Aleo PM. If you specified custom API endpoint, then check the URL for errors",
help: None,
}
/// For when APM is unable to find to a package.
@backtraced
package_not_found {
args: (),
msg: "Package is not found - check author and/or package name",
help: None,
}
/// For when APM returns an unknown API error.
@backtraced
unkown_api_error {
args: (status: impl Display),
msg: format!("Unknown API error: {}", status),
help: None,
}
/// For when the APM account username is not registered, or password is incorrect.
@backtraced
account_not_found {
args: (),
msg: "This username is not yet registered or the password is incorrect",
help: None,
}
/// For when APM account password is incorrect.
@backtraced
incorrect_password {
args: (),
msg: "Incorrect password",
help: None,
}
/// For when a request to APM fails witha bad request status.
@backtraced
bad_request {
args: (msg: impl Display),
msg: msg,
help: None,
}
/// For when the user is performing some APM action that
/// requires the user to be logged in first.
@backtraced
not_logged_in {
args: (),
msg: "You are not logged in. Please use `leo login` to login",
help: None,
}
/// For when a package with the same name and author name is already published.
@backtraced
already_published {
args: (),
msg: "This package version is already published",
help: None,
}
/// For when APM is experiencing a HTTP Status of 500.
@backtraced
internal_server_error {
args: (),
msg: "Server error, please contact us at https://github.com/AleoHQ/leo/issues",
help: None,
}
/// For when the reqwest library fails to get the request JSON.
@backtraced
reqwest_json_error {
args: (error: impl ErrorArg),
msg: format!("request JSON failed {}", error),
help: None,
}
/// For when the user provides an incorrect command argument.
@backtraced
incorrect_command_argument {
args: (),
msg: "Incorrect argument, please use --help for information on command use",
help: None,
}
/// For when the CLI experiences an IO error. /// For when the CLI experiences an IO error.
@backtraced @backtraced
cli_io_error { cli_io_error {
@ -139,199 +34,6 @@ create_messages!(
help: None, help: None,
} }
/// For when the CLI experiences a bytes conversion error.
@backtraced
cli_bytes_conversion_error {
args: (error: impl ErrorArg),
msg: format!("cli bytes conversion error {}", error),
help: None,
}
/// For when the CLI experiences a zip error.
@backtraced
cli_zip_error {
args: (error: impl ErrorArg),
msg: format!("cli zip error {}", error),
help: None,
}
/// For when the CLI cannot find the manifest file.
@backtraced
manifest_file_not_found {
args: (),
msg: "Package manifest not found, try running `leo init`",
help: None,
}
/// For when the CLI was unable to get the user token.
@backtraced
unable_to_get_user_token {
args: (),
msg: "Unable to get token",
help: None,
}
/// For when the CLI was supplied an incorrect user token.
@backtraced
supplied_token_is_incorrect {
args: (),
msg: "Supplied token is incorrect",
help: None,
}
/// For when the CLI user's stored credentials expire.
@backtraced
stored_credentials_expired {
args: (),
msg: "Stored credentials are incorrect or expired, please login again",
help: None,
}
/// For when the user does not provide credentials to the CLI.
@backtraced
no_credentials_provided {
args: (),
msg: "No credentials provided",
help: None,
}
/// For when the CLI does not have persmission to modify the .leo folder
/// and cannot logout the user.
@backtraced
logout_permision_denied {
args: (),
msg: "permission denied - check file permission in .leo folder",
help: None,
}
/// For when the CLI cannot access the logout file.
@backtraced
cannot_access_logout_file {
args: (),
msg: "something went wrong, can't access the file",
help: None,
}
/// For when the user tries to name a package after a Leo keyword.
@backtraced
package_cannot_be_named_after_a_keyword {
args: (),
msg: "Cannot be named a package after a keyword",
help: None,
}
/// For when the user has not provided a package description.
@backtraced
no_package_description {
args: (),
msg: "No package description",
help: None,
}
/// For when the user has not provided a package license.
@backtraced
missing_package_license {
args: (),
msg: "Missing package license",
help: None,
}
/// For when the package is missing its remote section in the Leo.toml file.
@backtraced
missing_package_remote {
args: (),
msg: "Missing package remote",
help: None,
}
/// For when the user has not provided the package author field in the Leo.toml file.
@backtraced
package_author_is_not_set {
args: (),
msg: "Package author is not set. Specify package author in [remote] section of Leo.toml",
help: None,
}
/// For when the CLI fails to convert an object to TOML.
@backtraced
failed_to_convert_to_toml {
args: (error: impl ErrorArg),
msg: format!("failed to covnert to TOML {}", error),
help: None,
}
/// For when the CLI fails to TOML an object.
@backtraced
failed_to_convert_from_toml {
args: (error: impl ErrorArg),
msg: format!("failed to covnert from TOML {}", error),
help: None,
}
/// For when the current package directory doesn't exist.
@backtraced
package_directory_does_not_exist {
args: (),
msg: "Directory does not exist",
help: None,
}
/// For when the current project has an invalid name.
@backtraced
invalid_project_name {
args: (),
msg: "Project name invalid",
help: None,
}
/// For when the current package has an invalid name.
@backtraced
invalid_package_name {
args: (name: impl Display),
msg: format!("Invalid Leo package name: {}", name),
help: None,
}
/// For when the package main.leo file is not found.
@backtraced
package_main_file_not_found {
args: (),
msg: "File main.leo not found in src/ directory",
help: None,
}
/// For when the package directory already exists.
@backtraced
package_directory_already_exists {
args: (path: impl Debug),
msg: format!("Directory already exists {:?}", path),
help: None,
}
/// For when the CLI could not a directory.
@backtraced
package_could_not_create_directory {
args: (error: impl ErrorArg),
msg: format!("Could not create directory {}", error),
help: None,
}
/// For when the CLI could not setup a Leo command.
@backtraced
unable_to_setup {
args: (),
msg: "Unable to setup, see command output for more details",
help: None,
}
/// For when the program file does not exist.
@backtraced
program_file_does_not_exist {
args: (path: impl Display),
msg: format!("Program file does not exist {}", path),
help: None,
}
/// For when the CLI could not fetch the versions. /// For when the CLI could not fetch the versions.
@backtraced @backtraced
could_not_fetch_versions { could_not_fetch_versions {
@ -340,14 +42,6 @@ create_messages!(
help: None, help: None,
} }
/// For when the CLI failed to watch the Leo package.
@backtraced
unable_to_watch {
args: (error: impl ErrorArg),
msg: format!("Unable to watch, check that directory contains Leo.toml file. Error: {}", error),
help: None,
}
/// For when the CLI fails to enable ansi support. /// For when the CLI fails to enable ansi support.
@backtraced @backtraced
failed_to_enable_ansi_support { failed_to_enable_ansi_support {
@ -380,27 +74,6 @@ create_messages!(
help: None, help: None,
} }
@backtraced
dependencies_are_not_installed {
args: (),
msg: "dependencies are not installed, please run `leo fetch` first",
help: None,
}
@backtraced
recursive_dependency_found {
args: (message: impl Display),
msg: format!("recursive dependency found \n{}", message),
help: None,
}
@backtraced
unable_to_read_imported_dependency_manifest {
args: (),
msg: "unable to parse imported dependency's manifest",
help: None,
}
@backtraced @backtraced
failed_to_load_instructions { failed_to_load_instructions {
args: (error: impl Display), args: (error: impl Display),
@ -408,13 +81,6 @@ create_messages!(
help: Some("Generated Aleo instructions have been left in `main.aleo`".to_string()), help: Some("Generated Aleo instructions have been left in `main.aleo`".to_string()),
} }
@backtraced
failed_to_write_to_aleo_file {
args: (path: impl Display, error: impl Display),
msg: format!("Failed to write to the Aleo file at `{}`.\nSnarkVM Error: {}", path, error),
help: None,
}
@backtraced @backtraced
failed_to_execute_aleo_build { failed_to_execute_aleo_build {
args: (error: impl Display), args: (error: impl Display),
@ -449,32 +115,4 @@ create_messages!(
msg: format!("Failed to parse the `aleo run` command.\nSnarkVM Error: {}", error), msg: format!("Failed to parse the `aleo run` command.\nSnarkVM Error: {}", error),
help: None, help: None,
} }
@backtraced
failed_to_execute_aleo_clean {
args: (error: impl Display),
msg: format!("Failed to execute the `aleo clean` command.\nSnarkVM Error: {}", error),
help: None,
}
); );
impl CliError {
/// Possible errors that can be thrown when the CLI is removing the token and username.
pub fn remove_token_and_username(error: std::io::Error) -> Self {
use std::io::ErrorKind;
match error.kind() {
ErrorKind::NotFound => {
// tracing::info!("you are not logged in");
Self::not_logged_in()
}
ErrorKind::PermissionDenied => {
// tracing::error!("permission denied - check file permission in .leo folder");
Self::logout_permision_denied()
}
_ => {
// tracing::error!("something went wrong, can't access the file");
Self::cannot_access_logout_file()
}
}
}
}

View File

@ -27,14 +27,6 @@ create_messages!(
code_mask: 6000i32, code_mask: 6000i32,
code_prefix: "CMP", code_prefix: "CMP",
/// For when the test function has invalid test context.
@backtraced
invalid_test_context {
args: (name: impl Display),
msg: format!("Cannot find input files with context name `{}`", name),
help: None,
}
/// For when the compiler can't read a file from the provided path. /// For when the compiler can't read a file from the provided path.
@backtraced @backtraced
file_read_error { file_read_error {
@ -43,268 +35,6 @@ create_messages!(
help: None, help: None,
} }
/// For when there is no main function in a Leo program.
@backtraced
no_main_function {
args: (),
msg: "There must be a function named `main`",
help: None,
}
/// For when the compiler can't find the test input files with the specified name.
@backtraced
no_test_input {
args: (),
msg: "Failed to find input files for the current test",
help: None,
}
/// For when the console formatter expected a left or right brace after a left brace.
@formatted
console_fmt_expected_left_or_right_brace {
args: (),
msg: "Formatter given a {. Expected a { or } after",
help: None,
}
/// For when the console formatter expected a right brace after a right brace.
@formatted
console_fmt_expected_escaped_right_brace {
args: (),
msg: "Formatter given a }. Expected a container {} or }}",
help: None,
}
/// For when the amount of arguments, and number of containers mismatch
/// in a format statement.
@formatted
console_container_parameter_length_mismatch {
args: (containers: impl Display, parameters: impl Display),
msg: format!(
"Formatter given {} containers and found {} parameters",
containers, parameters
),
help: None,
}
/// For when a experssion gadget oepration cannot be enforced due to a SnarkVM syntehsis error.
@formatted
cannot_enforce_expression {
args: (operation: impl Display, error: impl ErrorArg),
msg: format!(
"the gadget operation `{}` failed due to synthesis error `{:?}`",
operation, error,
),
help: None,
}
/// For when an expression has mismatching types for an operation.
@formatted
cannot_evaluate_expression {
args: (operation: impl Display),
msg: format!("Mismatched types found for operation `{}`", operation),
help: None,
}
/// For when the expected circuit member could not be found.
@formatted
expected_circuit_member {
args: (expected: impl Display),
msg: format!("expected circuit member `{}`, not found", expected),
help: None,
}
/// For when an array index does not resolve to an integer type.
@formatted
invalid_index_expression {
args: (actual: impl Display),
msg: format!("index must resolve to an integer, found `{}`", actual),
help: None,
}
/// For when the input variable type mismatches the declared function input type.
@formatted
input_variable_type_mismatch {
args: (expected: impl Display, actual: impl Display, variable: impl Display),
msg: format!(
"Expected input variable `{}` to be type `{}`, found type `{}`",
variable, expected, actual
),
help: None,
}
/// For when the declared function input variable was expected to be a valid array
/// in the input file.
@formatted
invalid_function_input_array {
args: (actual: impl Display),
msg: format!("Expected function input array, found `{}`", actual),
help: None,
}
/// For when the declared function input variable was expected to be an array with differing dimensions.
@formatted
invalid_input_array_dimensions {
args: (expected: impl Display, actual: impl Display),
msg: format!(
"Input array dimensions mismatch expected {}, found array dimensions {}",
expected, actual
),
help: None,
}
/// For when the declared function input variable was expected to be a tuple
/// with a different number of arguments.
@formatted
input_tuple_size_mismatch {
args: (expected: impl Display, actual: impl Display),
msg: format!(
"Input tuple size mismatch expected {}, found tuple with length {}",
expected, actual
),
help: None,
}
/// For when the declared function input variable was expected to be a valid tuple
/// in the input file.
@formatted
invalid_function_input_tuple {
args: (actual: impl Display),
msg: format!("Expected function input tuple, found `{}`", actual),
help: None,
}
/// For when the declared function input variable was not defined
/// in the input file.
@formatted
function_input_not_found {
args: (function: impl Display, expected: impl Display),
msg: format!("function `{}` input {} not found", function, expected),
help: None,
}
/// For when the declared function input register was not defined
@formatted
function_missing_input_register {
args: (expected: impl Display),
msg: format!("missing input '{}' for registers", expected),
help: None,
}
/// For when the declared function input variable was defined twice
/// in the input file.
@formatted
double_input_declaration {
args: (input_name: impl Display),
msg: format!("Input variable {} declared twice", input_name),
help: None,
}
/// For when the input file does not define enough registers.
@formatted
output_not_enough_registers {
args: (),
msg: "number of input registers must be greater than or equal to output registers",
help: None,
}
/// For when the input file register types do not match the output types being generated.
@formatted
output_mismatched_types {
args: (left: impl Display, right: impl Display),
msg: format!(
"Mismatched types. Expected register output type `{}`, found type `{}`.",
left, right
),
help: None,
}
/// For when a circuit was passed as input
@formatted
circuit_as_input {
args: (),
msg: "input circuits not supported for input",
help: None,
}
/// For when there's an IO error with the output file.
@backtraced
output_file_io_error {
args: (error: impl ErrorArg),
msg: error,
help: None,
}
/// For when the output file cannot be removed.
@backtraced
output_file_cannot_remove {
args: (path: impl Debug),
msg: format!("Cannot remove the provided ouput file - {:?}", path),
help: None,
}
/// For when a function returns multiple times.
@formatted
statement_multiple_returns {
args: (),
msg: "This function returns multiple times and produces unreachable circuits with undefined behavior.",
help: None,
}
/// For when a function expects a return type and has no valid return statements.
@formatted
statement_no_returns {
args: (expected: impl Display),
msg: format!(
"function expected `{}` return type but no valid branches returned a result",
expected
),
help: None,
}
/// For when SnarkVM fails to conditionally select between values for a gadget.
@formatted
statement_select_fail {
args: (first: impl Display, second: impl Display),
msg: format!(
"Conditional select gadget failed to select between `{}` or `{}`",
first, second
),
help: None,
}
/// For when there is an invalid address value.
@formatted
address_value_invalid_address {
args: (actual: impl Display),
msg: format!("expected address input type, found `{}`", actual),
help: None,
}
/// For when there is an integer type mismatch, one kind was expected but another was received.
@formatted
integer_value_integer_type_mismatch {
args: (expected: impl Display, received: impl Display),
msg: format!("expected data type `{}`, found `{}`", expected, received),
help: None,
}
/// For when .len() method is used on non-array values/variables.
@formatted
lengthof_can_only_be_used_on_arrays {
args: (),
msg: "len() can only be called on an array value",
help: None,
}
/// For when a circuit static const access was execpted.
@formatted
expected_circuit_static_const_access {
args: (),
msg: "A circuit static const access was expected",
help: None,
}
/// For when a user tries to assign to a circuit static member. /// For when a user tries to assign to a circuit static member.
@formatted @formatted
illegal_static_member_assignment { illegal_static_member_assignment {

View File

@ -53,60 +53,4 @@ create_messages!(
), ),
help: None, help: None,
} }
/// For when a loop bound goes negative or above usize::MAX
@formatted
incorrect_loop_bound {
args: (pos: impl Display, bound: impl Display),
msg: format!(
"The loop has an incorrect `{pos}` bound of `{bound}`.",
),
help: None,
}
/// For when a loop bound is non const.
@formatted
non_const_loop_bounds {
args: (pos: impl Display),
msg: format!(
"The loop has a `{pos}` bound that is non_const.",
),
help: None,
}
/// For when there is no main function.
@backtraced
no_main_function {
args: (),
msg: "The program has no main function.",
help: None,
}
/// For when the main function has a mismatching type for a constant input.
@formatted
main_function_mismatching_const_input_type {
args: (type_: impl Display, input_type_: impl Display),
msg: format!(
"The input was expected to be `{type_}` but the input file has `{input_type_}`"
),
help: None,
}
/// For when the main function has constant variable but the input file does not.
@formatted
input_file_does_not_have_constant {
args: (constant: impl Display),
msg: format!(
"The main function expected a constant `{constant}` but the input file does not have one."
),
help: None,
}
/// For when the main function has constant variables but the input file has none.
@formatted
input_file_has_no_constants {
args: (),
msg: "The main function expected constant inputs but the input file does not have any.",
help: None,
}
); );

View File

@ -26,99 +26,4 @@ create_errors!(
ImportError, ImportError,
exit_code_mask: 4000i32, exit_code_mask: 4000i32,
error_code_prefix: "IMP", error_code_prefix: "IMP",
/// For when an imported package has the same name as an imported core_package.
@formatted
conflicting_imports {
args: (name: impl Display),
msg: format!("conflicting imports found for `{}`.", name),
help: None,
}
/// For when imports are recursive.
@formatted
recursive_imports {
args: (package: impl Display),
msg: format!("recursive imports for `{}`.", package),
help: None,
}
/// For when the crate failed to convert a file path into an os string.
@formatted
convert_os_string {
args: (),
msg: "Failed to convert file string name, maybe an illegal character?",
help: None,
}
/// For when the crate failed to find the directory of the current file.
@formatted
current_directory_error {
args: (error: impl ErrorArg),
msg: format!("Compilation failed trying to find current directory - {:?}.", error),
help: None,
}
/// For when the crate failed to open or get the name of a directory.
@formatted
directory_error {
args: (error: impl ErrorArg, path:impl Debug),
msg: format!(
"Compilation failed due to directory error @ '{:?}' - {:?}.",
path,
error
),
help: None,
}
/// For when the crate failed to find a main file for the current package.
@formatted
expected_main_file {
args: (entry: impl Debug),
msg: format!("Expected main file at `{:?}`.", entry),
help: None,
}
/// For when the crate failed to import a package name.
@formatted
unknown_package {
args: (name: impl Display),
msg: format!(
"Cannot find imported package `{}` in source files or import directory.",
name
),
help: None,
}
/// For when the crate failed due to an IO error.
@formatted
io_error {
args: (path: impl Display, error: impl ErrorArg),
msg: format!("cannot read imported file '{}': {:?}", path, error),
help: None,
}
/// For when the stdlib import file could not be found.
@backtraced
no_such_stdlib_file {
args: (import: impl Display),
msg: format!("failed to find the stdlib import file `{}`", import),
help: None,
}
/// For when the stdlib import file could not be read.
@backtraced
failed_to_read_stdlib_file {
args: (import: impl Display),
msg: format!("failed to read the stdlib import file `{}`", import),
help: None,
}
/// For when directory name matches file name in the same source folder.
@formatted
conflicting_local_imports {
args: (names: impl Debug),
msg: format!("unable to select import location, conflicting paths are found: `{:?}`", names),
help: None,
}
); );

View File

@ -35,33 +35,6 @@ create_messages!(
help: None, help: None,
} }
/// For when string value is assigned to an array of non Char type.
@formatted
string_is_array_of_chars {
args: (expected: impl Display),
msg: format!(
"strings transforms into array of 'char', expected: {}",
expected,
),
help: None,
}
/// For when array init is using spread.
@formatted
array_spread_is_not_allowed {
args: (),
msg: "array spread is not allowed in inputs",
help: None,
}
/// For when any of the array dimensions is zero.
@formatted
invalid_array_dimension_size {
args: (),
msg: "received dimension size of 0, expected it to be 1 or larger.",
help: None,
}
/// For when the expression is not allowed in an input file. /// For when the expression is not allowed in an input file.
@formatted @formatted
illegal_expression { illegal_expression {
@ -85,12 +58,4 @@ create_messages!(
), ),
help: None, help: None,
} }
/// For when declared tuple length is not equal to the value's.
@formatted
tuple_length_mismatch {
args: (expected: impl Display, received: impl Display),
msg: format!("tuple length mismatch, defined {} types, got {} values", expected, received),
help: None,
}
); );

View File

@ -27,30 +27,6 @@ create_messages!(
code_mask: 5000i32, code_mask: 5000i32,
code_prefix: "PAK", code_prefix: "PAK",
/// For when the specified import does not exist.
@backtraced
import_does_not_exist {
args: (package: impl Display),
msg: format!("package {} does not exist as an import", package),
help: None,
}
/// For when creating the imports directory failed.
@backtraced
failed_to_create_imports_directory {
args: (error: impl ErrorArg),
msg: format!("failed creating imports directory {}", error),
help: None,
}
/// For when removing the imports directory failed.
@backtraced
failed_to_remove_imports_directory {
args: (error: impl ErrorArg),
msg: format!("failed removing imports directory {}", error),
help: None,
}
/// For when getting a input file entry failed. /// For when getting a input file entry failed.
@backtraced @backtraced
failed_to_get_input_file_entry { failed_to_get_input_file_entry {
@ -59,14 +35,6 @@ create_messages!(
help: None, help: None,
} }
/// For when getting the input file name failed.
@backtraced
failed_to_get_input_file_name {
args: (file: impl Debug),
msg: format!("failed to get input file name: {:?}", file),
help: None,
}
/// For when getting the input file type failed. /// For when getting the input file type failed.
@backtraced @backtraced
failed_to_get_input_file_type { failed_to_get_input_file_type {
@ -115,15 +83,6 @@ create_messages!(
help: None, help: None,
} }
/// For when reading the state file failed.
@backtraced
failed_to_read_state_file {
args: (path: impl Debug),
msg: format!("Cannot read state file from the provided file path - {:?}", path),
help: None,
}
/// For when reading the snapshot file failed. /// For when reading the snapshot file failed.
@backtraced @backtraced
failed_to_read_snapshot_file { failed_to_read_snapshot_file {
@ -132,14 +91,6 @@ create_messages!(
help: None, help: None,
} }
/// For when reading the aleo file failed.
@backtraced
failed_to_read_aleo_file {
args: (path: impl Debug),
msg: format!("Cannot read aleo file from the provided file path - {:?}", path),
help: None,
}
/// For when reading the checksum file failed. /// For when reading the checksum file failed.
@backtraced @backtraced
failed_to_read_checksum_file { failed_to_read_checksum_file {
@ -148,127 +99,6 @@ create_messages!(
help: None, help: None,
} }
/// For when reading the proof file failed.
@backtraced
failed_to_read_proof_file {
args: (path: impl Debug),
msg: format!("Cannot read proof file from the provided file path - {:?}", path),
help: None,
}
/// For when reading the proving key failed.
@backtraced
failed_to_read_proving_key_file {
args: (path: impl Debug),
msg: format!("Cannot read proving key file from the provided file path - {:?}", path),
help: None,
}
/// For when reading the verification key file failed.
@backtraced
failed_to_read_verification_key_file {
args: (path: impl Debug),
msg: format!("Cannot read verification key file from the provided file path - {:?}", path),
help: None,
}
// /// For when creating the manifest file failed.
// @backtraced
// failed_to_create_manifest_file {
// args: (filename: impl Display, error: impl ErrorArg),
// msg: format!("failed creating manifest file `{}` {}", filename, error),
// help: None,
// }
//
// /// For when parsing the manifest file failed.
// @backtraced
// failed_to_parse_manifest_file {
// args: (filename: impl Display, error: impl ErrorArg),
// msg: format!("failed parsing manifest file `{}` {}", filename, error),
// help: None,
// }
//
// /// For when opening the manifest file failed.
// @backtraced
// failed_to_open_manifest_file {
// args: (filename: impl Display, error: impl ErrorArg),
// msg: format!("failed openining manifest file `{}` {}", filename, error),
// help: None,
// }
//
// /// For when reading the manifest file failed.
// @backtraced
// failed_to_read_manifest_file {
// args: (filename: impl Display, error: impl ErrorArg),
// msg: format!("failed reading manifest file `{}` {}", filename, error),
// help: None,
// }
//
// /// For when writing the manifest file failed.
// @backtraced
// failed_to_write_manifest_file {
// args: (filename: impl Display, error: impl ErrorArg),
// msg: format!("failed writing manifest file `{}` {}", filename, error),
// help: None,
// }
//
// /// For when the manifest file has an IO error.
// @backtraced
// io_error_manifest_file {
// args: (error: impl ErrorArg),
// msg: format!("IO error manifest file from the provided file path - {}", error),
// help: None,
// }
//
// /// For when getting the manifest metadata file failed.
// @backtraced
// failed_to_get_manifest_metadata_file {
// args: (filename: impl Display, error: impl ErrorArg),
// msg: format!("failed getting manifest metadata file `{}` {}", filename, error),
// help: None,
// }
/// For when creating the zip file failed.
@backtraced
failed_to_create_zip_file {
args: (error: impl ErrorArg),
msg: format!("failed creating zip file {}", error),
help: None,
}
/// For when opening the zip file failed.
@backtraced
failed_to_open_zip_file {
args: (error: impl ErrorArg),
msg: format!("failed opening zip file {}", error),
help: None,
}
/// For when reading the zip file failed.
@backtraced
failed_to_read_zip_file {
args: (error: impl ErrorArg),
msg: format!("failed reading zip file {}", error),
help: None,
}
/// For when writing the zip file failed.
@backtraced
failed_to_write_zip_file {
args: (error: impl ErrorArg),
msg: format!("failed writing zip file {}", error),
help: None,
}
/// For when the zip file has an IO error.
@backtraced
io_error_zip_file {
args: (error: impl ErrorArg),
msg: format!("IO error zip file from the provided file path - {}", error),
help: None,
}
/// For when the circuit file has an IO error. /// For when the circuit file has an IO error.
@backtraced @backtraced
io_error_circuit_file { io_error_circuit_file {
@ -285,22 +115,6 @@ create_messages!(
help: None, help: None,
} }
/// For when the proof file has an IO error.
@backtraced
io_error_proof_file {
args: (error: impl ErrorArg),
msg: format!("IO error proof file from the provided file path - {}", error),
help: None,
}
/// For when the readme file has an IO error.
@backtraced
io_error_readme_file {
args: (error: impl ErrorArg),
msg: format!("IO error readme file from the provided file path - {}", error),
help: None,
}
/// For when the main file has an IO error. /// For when the main file has an IO error.
@backtraced @backtraced
io_error_main_file { io_error_main_file {
@ -309,14 +123,6 @@ create_messages!(
help: None, help: None,
} }
/// For when the aleo file has an IO error.
@backtraced
io_error_aleo_file {
args: (error: impl ErrorArg),
msg: format!("IO error aleo file from the provided file path - {}", error),
help: None,
}
/// For when removing the circuit file failed. /// For when removing the circuit file failed.
@backtraced @backtraced
failed_to_remove_circuit_file { failed_to_remove_circuit_file {
@ -333,14 +139,6 @@ create_messages!(
help: None, help: None,
} }
/// For when removing the zip file failed.
@backtraced
failed_to_remove_zip_file {
args: (path: impl Debug),
msg: format!("failed removing zip file from the provided file path - {:?}", path),
help: None,
}
/// For when removing the snapshot file failed. /// For when removing the snapshot file failed.
@backtraced @backtraced
failed_to_remove_snapshot_file { failed_to_remove_snapshot_file {
@ -349,31 +147,6 @@ create_messages!(
help: None, help: None,
} }
/// For when removing the proof file failed.
@backtraced
failed_to_remove_proof_file {
args: (path: impl Debug),
msg: format!("failed removing proof file from the provided file path - {:?}", path),
help: None,
}
/// For when removing the proving_key file failed.
@backtraced
failed_to_remove_proving_key_file {
args: (path: impl Debug),
msg: format!("failed removing proving_key file from the provided file path - {:?}", path),
help: None,
}
/// For when removing the verification_key file failed.
@backtraced
failed_to_remove_verification_key_file {
args: (path: impl Debug),
msg: format!("failed removing verification_key file from the provided file path - {:?}", path),
help: None,
}
/// For when the input file has an IO error. /// For when the input file has an IO error.
@backtraced @backtraced
io_error_input_file { io_error_input_file {
@ -382,31 +155,6 @@ create_messages!(
help: None, help: None,
} }
/// For when the state file has an IO error.
@backtraced
io_error_state_file {
args: (error: impl ErrorArg),
msg: format!("IO error state file from the provided file path - {}", error),
help: None,
}
/// For when the proving_key file has an IO error.
@backtraced
io_error_proving_key_file {
args: (error: impl ErrorArg),
msg: format!("IO error proving_key file from the provided file path - {}", error),
help: None,
}
/// For when the verification_key file has an IO error.
@backtraced
io_error_verification_key_file {
args: (error: impl ErrorArg),
msg: format!("IO error verification_key file from the provided file path - {}", error),
help: None,
}
/// For when the gitignore file has an IO error. /// For when the gitignore file has an IO error.
@backtraced @backtraced
io_error_gitignore_file { io_error_gitignore_file {
@ -439,14 +187,6 @@ create_messages!(
help: None, help: None,
} }
/// For when getting the Leo file type failed.
@backtraced
failed_to_get_leo_file_type {
args: (file: impl Debug, error: impl ErrorArg),
msg: format!("Failed to get Leo file `{:?}` type: {}.", file, error),
help: None,
}
/// For when the Leo file has an invalid extension. /// For when the Leo file has an invalid extension.
@backtraced @backtraced
invalid_leo_file_extension { invalid_leo_file_extension {
@ -471,60 +211,6 @@ create_messages!(
help: None, help: None,
} }
@backtraced
failed_to_create_lock_file {
args: (filename: impl Display, error: impl ErrorArg),
msg: format!("failed creating lock file `{}` {}", filename, error),
help: None,
}
/// For when getting the lock file metadata failed.
@backtraced
failed_to_get_lock_file_metadata {
args: (filename: impl Display, error: impl ErrorArg),
msg: format!("failed getting lock file metadata `{}` {}", filename, error),
help: None,
}
/// For when opening the lock file failed.
@backtraced
failed_to_open_lock_file {
args: (filename: impl Display, error: impl ErrorArg),
msg: format!("failed openining lock file `{}` {}", filename, error),
help: None,
}
/// For when parsing the lock file failed.
@backtraced
failed_to_parse_lock_file {
args: (filename: impl Display, error: impl ErrorArg),
msg: format!("failed parsing lock file `{}` {}", filename, error),
help: None,
}
/// For when reading the lock file failed.
@backtraced
failed_to_read_lock_file {
args: (filename: impl Display, error: impl ErrorArg),
msg: format!("failed reading lock file `{}` {}", filename, error),
help: None,
}
/// For when writing the lock file failed.
@backtraced
failed_to_write_lock_file {
args: (filename: impl Display, error: impl ErrorArg),
msg: format!("failed writing lock file `{}` {}", filename, error),
help: None,
}
@backtraced
failed_to_serialize_lock_file {
args: (error: impl ErrorArg),
msg: format!("serialization failed: {}", error),
help: None,
}
/// For when opening a directory failed. /// For when opening a directory failed.
@backtraced @backtraced
directory_not_found { directory_not_found {
@ -557,22 +243,6 @@ create_messages!(
help: None, help: None,
} }
/// For when file failed to remove.
@backtraced
failed_to_remove_file {
args: (path: impl Display, error: impl ErrorArg),
msg: format!("failed to remove file: {}, error: {}", path, error),
help: None,
}
/// For when I/O operation failed.
@backtraced
io_error {
args: (file: impl Display, error: impl ErrorArg),
msg: format!("i/o operation failed, file: {}, error: {}", file, error),
help: None,
}
@backtraced @backtraced
failed_to_get_file_name { failed_to_get_file_name {
args: (), args: (),

View File

@ -120,14 +120,6 @@ create_messages!(
help: None, help: None,
} }
/// For when the parser encountered an invalid package name.
@formatted
invalid_package_name {
args: (),
msg: "package names must be lowercase alphanumeric ascii with underscores and singular dashes",
help: None,
}
/// For when the parser encountered a deprecated `test function`. /// For when the parser encountered a deprecated `test function`.
@formatted @formatted
test_function { test_function {
@ -136,62 +128,6 @@ create_messages!(
help: None, help: None,
} }
/// For when the parser encountered a deprecated `@context(...)` annotation.
@formatted
context_annotation {
args: (),
msg: "\"@context(...)\" is deprecated. Did you mean @test annotation?",
help: None,
}
/// For when the parser failed to parse array dimensions.
@formatted
unable_to_parse_array_dimensions {
args: (),
msg: "unable to parse array dimensions",
help: None,
}
/// For when the parser encountered a deprecated `mut self` parameter in a member function declaration.
@formatted
mut_self_parameter {
args: (),
msg: "`mut self` is no longer accepted. Use `&self` if you would like to pass in a mutable reference to `self`",
help: None,
}
/// When a member const comes after a member variable.
@formatted
member_const_after_var {
args: (),
msg: "Member variables must come after member consts.",
help: None,
}
/// When a member const comes after a member function.
@formatted
member_const_after_fun {
args: (),
msg: "Member functions must come after member consts.",
help: None,
}
/// When a member variable comes after a member function.
@formatted
member_var_after_fun {
args: (),
msg: "Member functions must come after member variables.",
help: None,
}
/// E.g., on `[u8; ()]`.
@formatted
array_tuple_dimensions_empty {
args: (),
msg: "Array dimensions specified as a tuple cannot be empty.",
help: None,
}
/// When more input was expected but not found. /// When more input was expected but not found.
@backtraced @backtraced
lexer_empty_input { lexer_empty_input {
@ -240,14 +176,6 @@ create_messages!(
help: None, help: None,
} }
/// When a valid hex character was expected.
@backtraced
lexer_expected_valid_hex_char {
args: (input: impl Display),
msg: format!("Expected a valid hex character but found `{}`.", input),
help: None,
}
/// When the user tries to pass an implicit value. /// When the user tries to pass an implicit value.
@formatted @formatted
implicit_values_not_allowed { implicit_values_not_allowed {
@ -256,29 +184,6 @@ create_messages!(
help: None, help: None,
} }
/// When a escaped unicode char was given but no following closing symbol.
@backtraced
lexer_unclosed_escaped_unicode_char {
args: (input: impl Display),
msg: format!("There was no closing `}}` after a escaped unicode `{}`.", input),
help: None,
}
/// When a escaped unicode char was given but it had an incorrect length. 38
@backtraced
lexer_invalid_escaped_unicode_length {
args: (input: impl Display),
msg: format!("The escaped unicode char `{}` is not within valid length of [1, 6].", input),
help: None,
}
/// When a escaped unicode char was given but exceeded maximum value.
@backtraced
lexer_invalid_character_exceeded_max_value {
args: (input: impl Display),
msg: format!("The escaped unicode char `{}` is greater than 0x10FFFF.", input),
help: None,
}
/// When a hex number is provided. /// When a hex number is provided.
@backtraced @backtraced
lexer_hex_number_provided { lexer_hex_number_provided {
@ -287,54 +192,14 @@ create_messages!(
help: None, help: None,
} }
/// When a function recieved a self argument outside the first argument. /// For when a user specified more than a type on a parameter.
@backtraced
parser_self_outside_first_argument {
args: (),
msg: "A function received a self argument as not the first argument.",
help: None,
}
/// When a escaped unicode char was given but not opened.
@backtraced
lexer_unopened_escaped_unicode_char {
args: (input: impl Display),
msg: format!("There was no opening `{{` after starting an escaped unicode `{}`.", input),
help: None,
}
/// For when a user puts parens around a single array dimension.
@formatted @formatted
invalid_parens_around_single_array_dimension_size { inputs_multiple_variable_types_specified {
args: (), args: (),
msg: "do not put parens around single dimension array size", msg: "A parameter cannot be both public and const.",
help: None, help: None,
} }
/// For when a user puts parens around a single defined variable.
@backtraced
lexer_expected_but_found {
args: (found: impl Display, expected: impl Display),
msg: format!("Found the char `{}`, but expected `{}`", found, expected),
help: None,
}
/// For when a user specified more than a type on a parameter.
@formatted
inputs_multiple_variable_types_specified {
args: (),
msg: "A parameter cannot be both public and const.",
help: None,
}
/// For when a user used const on a parameter or input instead of constant.
@formatted
const_parameter_or_input {
args: (),
msg: "`constant` is preferred over `const` for function parameters to indicate a R1CS constant.",
help: None,
}
/// For when the lexer encountered a bidi override character /// For when the lexer encountered a bidi override character
@backtraced @backtraced
lexer_bidi_override { lexer_bidi_override {

View File

@ -26,52 +26,4 @@ create_errors!(
StateError, StateError,
exit_code_mask: 1000i32, exit_code_mask: 1000i32,
error_code_prefix: "STA", error_code_prefix: "STA",
/// For when it cannot parse the state boolean value.
@backtraced
parse_bool_error {
args: (error: impl ErrorArg),
msg: format!("failed to parse state file bool: {}", error),
help: None,
}
/// For when it cannot parse the state int value.
@backtraced
parse_int_error {
args: (error: impl ErrorArg),
msg: format!("failed to parse state file int: {}", error),
help: None,
}
/// For when it expected an array of u8 bytes but found something else.
@backtraced
expected_bytes {
args: (found: impl Display),
msg: format!("expected parameter array of u8 bytes, found `{}`", found),
help: None,
}
/// For when an int was expected but received something else.
@backtraced
expected_int {
args: (found: impl Display),
msg: format!("expected integer parameter, found `{}`", found),
help: None,
}
/// For when it cannot parse the state int value.
@backtraced
missing_parameter {
args: (parameter: impl Display),
msg: format!("input parameter `{}` not found in state file", parameter),
help: None,
}
/// For when the crate encounters an IO error.
@backtraced
state_io_error {
args: (error: impl ErrorArg),
msg: format!("io error found {}", error),
help: None,
}
); );

View File

@ -71,16 +71,6 @@ create_messages!(
help: None, help: None,
} }
/// The method name is known but not supported for the given type.
@formatted
type_method_not_supported {
args: (type_: impl Display, method: impl Display),
msg: format!(
"Type `{type_}` does not support associated method `{method}`",
),
help: None,
}
/// For when the user tries to return a unknown variable. /// For when the user tries to return a unknown variable.
@formatted @formatted
unknown_sym { unknown_sym {
@ -91,26 +81,6 @@ create_messages!(
help: None, help: None,
} }
/// For when the user tries to expect a non integer type .
@formatted
type_should_be_integer {
args: (op: impl Debug, type_: impl Display),
msg: format!(
"Binary statement has numeric operation `{op:?}` but has expected type `{type_}`",
),
help: None,
}
/// For when the user tries to negate a non negatable type.
@formatted
type_is_not_negatable {
args: (type_: impl Display),
msg: format!(
"The type `{type_}` is not negatable",
),
help: None,
}
/// For when the user tries calls a function with the incorrect number of args. /// For when the user tries calls a function with the incorrect number of args.
@formatted @formatted
incorrect_num_args_to_call { incorrect_num_args_to_call {
@ -131,26 +101,6 @@ create_messages!(
help: None, help: None,
} }
/// For when the base of a power is not a valid type.
@formatted
incorrect_pow_base_type {
args: (type_: impl Display),
msg: format!(
"The first operand must be an integer or field but got type `{type_}`",
),
help: None,
}
/// For when the exponent of a power is not a valid type.
@formatted
incorrect_pow_exponent_type {
args: (allowed: impl Display, type_: impl Display),
msg: format!(
"The second operand must be a {allowed} but got type `{type_}`",
),
help: None,
}
/// For when an integer is not in a valid range. /// For when an integer is not in a valid range.
@formatted @formatted
invalid_int_value { invalid_int_value {
@ -201,16 +151,6 @@ create_messages!(
help: None, help: None,
} }
/// For when the user tries initialize a circuit with the incorrect number of args.
@formatted
incorrect_num_record_variables {
args: (expected: impl Display, received: impl Display),
msg: format!(
"Record expected `{expected}` variables, but got `{received}`",
),
help: None,
}
/// For when the user is missing a circuit member during initialization. /// For when the user is missing a circuit member during initialization.
@formatted @formatted
missing_circuit_member { missing_circuit_member {

View File

@ -2,4 +2,4 @@
namespace: Compile namespace: Compile
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [ETYC0372027]: Comparison `>` is not supported for the address type.\n --> compiler-test:6:12\n |\n 6 | return x > sender;\n | ^^^^^^^^^^\n" - "Error [ETYC0372021]: Comparison `>` is not supported for the address type.\n --> compiler-test:6:12\n |\n 6 | return x > sender;\n | ^^^^^^^^^^\n"

View File

@ -2,4 +2,4 @@
namespace: Compile namespace: Compile
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [ETYC0372027]: Comparison `>=` is not supported for the address type.\n --> compiler-test:6:12\n |\n 6 | return x >= sender;\n | ^^^^^^^^^^^\n" - "Error [ETYC0372021]: Comparison `>=` is not supported for the address type.\n --> compiler-test:6:12\n |\n 6 | return x >= sender;\n | ^^^^^^^^^^^\n"

View File

@ -2,4 +2,4 @@
namespace: Compile namespace: Compile
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [ETYC0372027]: Comparison `<` is not supported for the address type.\n --> compiler-test:6:12\n |\n 6 | return x < sender;\n | ^^^^^^^^^^\n" - "Error [ETYC0372021]: Comparison `<` is not supported for the address type.\n --> compiler-test:6:12\n |\n 6 | return x < sender;\n | ^^^^^^^^^^\n"

View File

@ -2,4 +2,4 @@
namespace: Compile namespace: Compile
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [ETYC0372027]: Comparison `<=` is not supported for the address type.\n --> compiler-test:6:12\n |\n 6 | return x <= sender;\n | ^^^^^^^^^^^\n" - "Error [ETYC0372021]: Comparison `<=` is not supported for the address type.\n --> compiler-test:6:12\n |\n 6 | return x <= sender;\n | ^^^^^^^^^^^\n"

View File

@ -2,4 +2,4 @@
namespace: Compile namespace: Compile
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [EPAR0370025]: Could not lex the following content: `''`.\n" - "Error [EPAR0370017]: Could not lex the following content: `''`.\n"

View File

@ -2,4 +2,4 @@
namespace: Compile namespace: Compile
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [EPAR0370025]: Could not lex the following content: `'a'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'a'`.\n"

View File

@ -2,4 +2,4 @@
namespace: Compile namespace: Compile
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [EPAR0370025]: Could not lex the following content: `'z'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'z'`.\n"

View File

@ -2,4 +2,4 @@
namespace: Compile namespace: Compile
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [ETYC0372021]: Circuit Bar defined with more than one member with the same name.\n --> compiler-test:3:1\n |\n 3 | circuit Bar {\n 4 | x: u32,\n 5 | x: u32,\n 6 | }\n | ^\n" - "Error [ETYC0372015]: Circuit Bar defined with more than one member with the same name.\n --> compiler-test:3:1\n |\n 3 | circuit Bar {\n 4 | x: u32,\n 5 | x: u32,\n 6 | }\n | ^\n"

View File

@ -2,4 +2,4 @@
namespace: Compile namespace: Compile
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [EAST0372016]: circuit `Bar` shadowed by\n --> compiler-test:8:5\n |\n 8 | const Bar: u32 = 66u32;\n | ^^^^^^^^^^^^^^^^^^^^^^\n" - "Error [EAST0372009]: circuit `Bar` shadowed by\n --> compiler-test:8:5\n |\n 8 | const Bar: u32 = 66u32;\n | ^^^^^^^^^^^^^^^^^^^^^^\n"

View File

@ -2,4 +2,4 @@
namespace: Compile namespace: Compile
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [ETYC0372006]: Unknown variable `b`\n --> compiler-test:10:13\n |\n 10 | return (b.x == a.x) == y;\n | ^\nError [ETYC0372004]: Could not determine the type of `b`\n --> compiler-test:10:13\n |\n 10 | return (b.x == a.x) == y;\n | ^\nError [ETYC0372003]: Expected type `u8` but type `no type` was found\n --> compiler-test:10:13\n |\n 10 | return (b.x == a.x) == y;\n | ^^^^^^^^\n" - "Error [ETYC0372005]: Unknown variable `b`\n --> compiler-test:10:13\n |\n 10 | return (b.x == a.x) == y;\n | ^\nError [ETYC0372004]: Could not determine the type of `b`\n --> compiler-test:10:13\n |\n 10 | return (b.x == a.x) == y;\n | ^\nError [ETYC0372003]: Expected type `u8` but type `no type` was found\n --> compiler-test:10:13\n |\n 10 | return (b.x == a.x) == y;\n | ^^^^^^^^\n"

View File

@ -2,4 +2,4 @@
namespace: Compile namespace: Compile
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [ETYC0372015]: The type ComputeKey is a reserved core type name.\n --> compiler-test:4:35\n |\n 4 | function main(public compute_key: ComputeKey, a: bool) -> bool {\n | ^^^^^^^^^^\n" - "Error [ETYC0372010]: The type ComputeKey is a reserved core type name.\n --> compiler-test:4:35\n |\n 4 | function main(public compute_key: ComputeKey, a: bool) -> bool {\n | ^^^^^^^^^^\n"

View File

@ -2,4 +2,4 @@
namespace: Compile namespace: Compile
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [ETYC0372015]: The type PrivateKey is a reserved core type name.\n --> compiler-test:4:35\n |\n 4 | function main(public private_key: PrivateKey, a: bool) -> bool {\n | ^^^^^^^^^^\n" - "Error [ETYC0372010]: The type PrivateKey is a reserved core type name.\n --> compiler-test:4:35\n |\n 4 | function main(public private_key: PrivateKey, a: bool) -> bool {\n | ^^^^^^^^^^\n"

View File

@ -2,4 +2,4 @@
namespace: Compile namespace: Compile
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [ETYC0372015]: The type Signature is a reserved core type name.\n --> compiler-test:4:33\n |\n 4 | function main(public signature: Signature, a: bool) -> bool {\n | ^^^^^^^^^\n" - "Error [ETYC0372010]: The type Signature is a reserved core type name.\n --> compiler-test:4:33\n |\n 4 | function main(public signature: Signature, a: bool) -> bool {\n | ^^^^^^^^^\n"

View File

@ -2,4 +2,4 @@
namespace: Compile namespace: Compile
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [ETYC0372015]: The type ViewKey is a reserved core type name.\n --> compiler-test:4:32\n |\n 4 | function main(public view_key: ViewKey, a: bool) -> bool {\n | ^^^^^^^\n" - "Error [ETYC0372010]: The type ViewKey is a reserved core type name.\n --> compiler-test:4:32\n |\n 4 | function main(public view_key: ViewKey, a: bool) -> bool {\n | ^^^^^^^\n"

View File

@ -2,4 +2,4 @@
namespace: Compile namespace: Compile
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [ETYC0372010]: Expected one type from `bool, i8, i16, i32, i64, u8, u16, u32, u64, string`, but got `u128`\n --> compiler-test:4:20\n |\n 4 | let a: group = Pedersen64::hash(1u128);\n | ^^^^^^^^^^^^^^^^^^^^^^^\n" - "Error [ETYC0372007]: Expected one type from `bool, i8, i16, i32, i64, u8, u16, u32, u64, string`, but got `u128`\n --> compiler-test:4:20\n |\n 4 | let a: group = Pedersen64::hash(1u128);\n | ^^^^^^^^^^^^^^^^^^^^^^^\n"

View File

@ -2,4 +2,4 @@
namespace: Compile namespace: Compile
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [ETYC0372006]: Unknown variable `b`\n --> compiler-test:4:14\n |\n 4 | \tlet b: u8 = b;\n | ^\n" - "Error [ETYC0372005]: Unknown variable `b`\n --> compiler-test:4:14\n |\n 4 | \tlet b: u8 = b;\n | ^\n"

View File

@ -2,4 +2,4 @@
namespace: Compile namespace: Compile
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [EAST0372015]: 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" - "Error [EAST0372008]: 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"

View File

@ -2,4 +2,4 @@
namespace: Compile namespace: Compile
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [EAST0372018]: variable `a` shadowed by\n --> compiler-test:3:23\n |\n 3 | function main(a: u32, a: u32) -> u32 {\n | ^\n" - "Error [EAST0372011]: variable `a` shadowed by\n --> compiler-test:3:23\n |\n 3 | function main(a: u32, a: u32) -> u32 {\n | ^\n"

View File

@ -2,4 +2,4 @@
namespace: Compile namespace: Compile
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [ETYC0372016]: The function main has no return statement.\n --> compiler-test:3:1\n |\n 3 | function main() -> u8 {}\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n" - "Error [ETYC0372011]: The function main has no return statement.\n --> compiler-test:3:1\n |\n 3 | function main() -> u8 {}\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n"

View File

@ -2,4 +2,4 @@
namespace: Compile namespace: Compile
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [EAST0372015]: function `hi` shadowed by\n --> compiler-test:7:17\n |\n 7 | function tester(hi: u8) -> u8 {\n | ^^\n" - "Error [EAST0372008]: function `hi` shadowed by\n --> compiler-test:7:17\n |\n 7 | function tester(hi: u8) -> u8 {\n | ^^\n"

View File

@ -2,4 +2,4 @@
namespace: Compile namespace: Compile
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [EPAR0370039]: Expression statements are not supported.\n --> compiler-test:4:5\n |\n 4 | my_function();\n | ^^^^^^^^^^^^^^" - "Error [EPAR0370022]: Expression statements are not supported.\n --> compiler-test:4:5\n |\n 4 | my_function();\n | ^^^^^^^^^^^^^^"

View File

@ -2,4 +2,4 @@
namespace: Compile namespace: Compile
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [ETYC0372010]: Expected one type from `scalar`, but got `group`\n --> compiler-test:4:26\n |\n 4 | return (_, _)group * a;\n | ^\n" - "Error [ETYC0372007]: Expected one type from `scalar`, but got `group`\n --> compiler-test:4:26\n |\n 4 | return (_, _)group * a;\n | ^\n"

View File

@ -2,4 +2,4 @@
namespace: Compile namespace: Compile
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [ETYC0372026]: The field `gates` in a `record` must have type `u64`.\n --> compiler-test:4:1\n |\n 4 | record Token {\n 5 | gates: address,\n 6 | owner: address,\n 7 | }\n | ^\n" - "Error [ETYC0372020]: The field `gates` in a `record` must have type `u64`.\n --> compiler-test:4:1\n |\n 4 | record Token {\n 5 | gates: address,\n 6 | owner: address,\n 7 | }\n | ^\n"

View File

@ -2,4 +2,4 @@
namespace: Compile namespace: Compile
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [EAST0372017]: record `Token` shadowed by\n --> compiler-test:12:1\n |\n 12 | circuit Token { // This circuit cannot have the same name as the record defined above it.\n 13 | x: u32,\n 14 | }\n | ^\n" - "Error [EAST0372010]: record `Token` shadowed by\n --> compiler-test:12:1\n |\n 12 | circuit Token { // This circuit cannot have the same name as the record defined above it.\n 13 | x: u32,\n 14 | }\n | ^\n"

View File

@ -2,4 +2,4 @@
namespace: Compile namespace: Compile
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [ETYC0372022]: Record Token defined with more than one variable with the same name.\n --> compiler-test:3:1\n |\n 3 | record Token {\n 4 | // The token owner.\n 5 | owner: address,\n 6 | // The token owner.\n 7 | owner: address, // Cannot define two record variables with the same name.\n 8 | // The Aleo balance (in gates).\n 9 | gates: u64,\n 10 | // The token amount.\n 11 | amount: u64,\n 12 | }\n | ^\n" - "Error [ETYC0372016]: Record Token defined with more than one variable with the same name.\n --> compiler-test:3:1\n |\n 3 | record Token {\n 4 | // The token owner.\n 5 | owner: address,\n 6 | // The token owner.\n 7 | owner: address, // Cannot define two record variables with the same name.\n 8 | // The Aleo balance (in gates).\n 9 | gates: u64,\n 10 | // The token amount.\n 11 | amount: u64,\n 12 | }\n | ^\n"

View File

@ -2,4 +2,4 @@
namespace: Compile namespace: Compile
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [ETYC0372019]: Circuit initialization expression for `Token` is missing member `owner`.\n --> compiler-test:13:12\n |\n 13 | return Token {\n 14 | sender: r0, // This variable should be named `owner`.\n 15 | gates: 0u64,\n 16 | amount: r1,\n 17 | };\n | ^^^^^^\n" - "Error [ETYC0372013]: Circuit initialization expression for `Token` is missing member `owner`.\n --> compiler-test:13:12\n |\n 13 | return Token {\n 14 | sender: r0, // This variable should be named `owner`.\n 15 | gates: 0u64,\n 16 | amount: r1,\n 17 | };\n | ^^^^^^\n"

View File

@ -2,4 +2,4 @@
namespace: Compile namespace: Compile
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [ETYC0372025]: The `record` type requires the variable `owner: address`.\n --> compiler-test:4:1\n |\n 4 | record Token {\n 5 | // The Aleo balance (in gates).\n 6 | gates: u64,\n 7 | // The token amount.\n 8 | amount: u64,\n 9 | }\n | ^\n" - "Error [ETYC0372019]: The `record` type requires the variable `owner: address`.\n --> compiler-test:4:1\n |\n 4 | record Token {\n 5 | // The Aleo balance (in gates).\n 6 | gates: u64,\n 7 | // The token amount.\n 8 | amount: u64,\n 9 | }\n | ^\n"

View File

@ -2,4 +2,4 @@
namespace: Compile namespace: Compile
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [ETYC0372026]: The field `owner` in a `record` must have type `address`.\n --> compiler-test:4:1\n |\n 4 | record Token {\n 5 | gates: u64,\n 6 | owner: bool,\n 7 | }\n | ^\n" - "Error [ETYC0372020]: The field `owner` in a `record` must have type `address`.\n --> compiler-test:4:1\n |\n 4 | record Token {\n 5 | gates: u64,\n 6 | owner: bool,\n 7 | }\n | ^\n"

View File

@ -2,4 +2,4 @@
namespace: Compile namespace: Compile
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [EPAR0370025]: Could not lex the following content: `🦀`.\n" - "Error [EPAR0370017]: Could not lex the following content: `🦀`.\n"

View File

@ -2,4 +2,4 @@
namespace: Compile namespace: Compile
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [ETYC0372010]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:4:20\n |\n 4 | let b: bool = -a == -1u8;\n | ^\nError [ETYC0372010]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:4:26\n |\n 4 | let b: bool = -a == -1u8;\n | ^^^\nError [ETYC0372010]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:5:20\n |\n 5 | let c: bool = -a > -1u8;\n | ^\nError [ETYC0372010]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:5:25\n |\n 5 | let c: bool = -a > -1u8;\n | ^^^\nError [ETYC0372010]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:6:20\n |\n 6 | let d: bool = -a < -1u8;\n | ^\nError [ETYC0372010]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:6:25\n |\n 6 | let d: bool = -a < -1u8;\n | ^^^\nError [ETYC0372010]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:7:20\n |\n 7 | let e: bool = -a >= -1u8;\n | ^\nError [ETYC0372010]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:7:26\n |\n 7 | let e: bool = -a >= -1u8;\n | ^^^\nError [ETYC0372010]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:8:20\n |\n 8 | let f: bool = -a <= -1u8;\n | ^\nError [ETYC0372010]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:8:26\n |\n 8 | let f: bool = -a <= -1u8;\n | ^^^\nError [ETYC0372010]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:9:18\n |\n 9 | let g: u8 = -a * -1u8;\n | ^\nError [ETYC0372010]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:9:23\n |\n 9 | let g: u8 = -a * -1u8;\n | ^^^\nError [ETYC0372010]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:10:18\n |\n 10 | let h: u8 = -a ** -1u8;\n | ^\nError [ETYC0372010]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:10:24\n |\n 10 | let h: u8 = -a ** -1u8;\n | ^^^\n" - "Error [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:4:20\n |\n 4 | let b: bool = -a == -1u8;\n | ^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:4:26\n |\n 4 | let b: bool = -a == -1u8;\n | ^^^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:5:20\n |\n 5 | let c: bool = -a > -1u8;\n | ^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:5:25\n |\n 5 | let c: bool = -a > -1u8;\n | ^^^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:6:20\n |\n 6 | let d: bool = -a < -1u8;\n | ^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:6:25\n |\n 6 | let d: bool = -a < -1u8;\n | ^^^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:7:20\n |\n 7 | let e: bool = -a >= -1u8;\n | ^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:7:26\n |\n 7 | let e: bool = -a >= -1u8;\n | ^^^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:8:20\n |\n 8 | let f: bool = -a <= -1u8;\n | ^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:8:26\n |\n 8 | let f: bool = -a <= -1u8;\n | ^^^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:9:18\n |\n 9 | let g: u8 = -a * -1u8;\n | ^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:9:23\n |\n 9 | let g: u8 = -a * -1u8;\n | ^^^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:10:18\n |\n 10 | let h: u8 = -a ** -1u8;\n | ^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:10:24\n |\n 10 | let h: u8 = -a ** -1u8;\n | ^^^\n"

View File

@ -2,4 +2,4 @@
namespace: Compile namespace: Compile
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [EAST0372018]: variable `x` shadowed by\n --> compiler-test:5:4\n |\n 5 | \tlet x: bool = true;\n | ^^^^^^^^^^^^^^^^^^\n" - "Error [EAST0372011]: variable `x` shadowed by\n --> compiler-test:5:4\n |\n 5 | \tlet x: bool = true;\n | ^^^^^^^^^^^^^^^^^^\n"

View File

@ -2,4 +2,4 @@
namespace: Compile namespace: Compile
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [ETYC0372006]: Unknown variable `z`\n --> compiler-test:4:19\n |\n 4 | \tlet b: u8 = 1u8**z;\n | ^\n" - "Error [ETYC0372005]: Unknown variable `z`\n --> compiler-test:4:19\n |\n 4 | \tlet b: u8 = 1u8**z;\n | ^\n"

View File

@ -2,4 +2,4 @@
namespace: Compile namespace: Compile
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [ETYC0372006]: Unknown variable `x`\n --> compiler-test:4:14\n |\n 4 | \tlet b: u8 = x*z;\n | ^\nError [ETYC0372006]: Unknown variable `z`\n --> compiler-test:4:16\n |\n 4 | \tlet b: u8 = x*z;\n | ^\n" - "Error [ETYC0372005]: Unknown variable `x`\n --> compiler-test:4:14\n |\n 4 | \tlet b: u8 = x*z;\n | ^\nError [ETYC0372005]: Unknown variable `z`\n --> compiler-test:4:16\n |\n 4 | \tlet b: u8 = x*z;\n | ^\n"

View File

@ -2,4 +2,4 @@
namespace: Compile namespace: Compile
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [ETYC0372030]: Tuple index `2` out of range for a tuple with length `2`\n --> compiler-test:6:20\n |\n 6 | return (t.0, t.2); // Index `t.2` is out of bounds.\n | ^\nError [ETYC0372020]: t.2 is not a valid core circuit call.\n --> compiler-test:6:20\n |\n 6 | return (t.0, t.2); // Index `t.2` is out of bounds.\n | ^\n" - "Error [ETYC0372024]: Tuple index `2` out of range for a tuple with length `2`\n --> compiler-test:6:20\n |\n 6 | return (t.0, t.2); // Index `t.2` is out of bounds.\n | ^\nError [ETYC0372014]: t.2 is not a valid core circuit call.\n --> compiler-test:6:20\n |\n 6 | return (t.0, t.2); // Index `t.2` is out of bounds.\n | ^\n"

View File

@ -2,4 +2,4 @@
namespace: Compile namespace: Compile
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [EAST0372014]: Tuples of one element are not allowed.\n --> compiler-test:3:36\n |\n 3 | function main(a: bool, b: bool) -> (bool) {\n | ^^^^^^\n |\n = Try defining a single type by removing the parenthesis `( )`" - "Error [EAST0372007]: Tuples of one element are not allowed.\n --> compiler-test:3:36\n |\n 3 | function main(a: bool, b: bool) -> (bool) {\n | ^^^^^^\n |\n = Try defining a single type by removing the parenthesis `( )`"

View File

@ -2,4 +2,4 @@
namespace: Compile namespace: Compile
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [EAST0372013]: Tuples of zero elements are not allowed.\n --> compiler-test:3:36\n |\n 3 | function main(a: bool, b: bool) -> () {\n | ^^" - "Error [EAST0372006]: Tuples of zero elements are not allowed.\n --> compiler-test:3:36\n |\n 3 | function main(a: bool, b: bool) -> () {\n | ^^"

View File

@ -2,4 +2,4 @@
namespace: Compile namespace: Compile
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [ETYC0372031]: Tuples are only allowed as function return types.\n --> compiler-test:7:14\n |\n 7 | function foo(a: (u8, u16)) -> (u8, u16) {\n | ^\nError [ETYC0372031]: Tuples are only allowed as function return types.\n --> compiler-test:11:1\n |\n 11 | function bar() -> (u8, (u16, u32)) {\n 12 | return (1u8, (2u16, 3u32));\n 13 | }\n | ^\nError [ETYC0372010]: Expected one type from `i8, i16, i32, i64, i128, u8, u16, u32, u64, u128`, but got `(u8,u16)`\n --> compiler-test:16:9\n |\n 16 | for i: (u8, u16) in 0u8..2u8 {}\n | ^\nError [ETYC0372003]: Expected type `(u8,u16)` but type `u8` was found\n --> compiler-test:16:25\n |\n 16 | for i: (u8, u16) in 0u8..2u8 {}\n | ^^^\nError [ETYC0372003]: Expected type `(u8,u16)` but type `u8` was found\n --> compiler-test:16:30\n |\n 16 | for i: (u8, u16) in 0u8..2u8 {}\n | ^^^\nError [ETYC0372031]: Tuples are only allowed as function return types.\n --> compiler-test:21:5\n |\n 21 | mem: (u8, u16)\n | ^^^\n" - "Error [ETYC0372025]: Tuples are only allowed as function return types.\n --> compiler-test:7:14\n |\n 7 | function foo(a: (u8, u16)) -> (u8, u16) {\n | ^\nError [ETYC0372025]: Tuples are only allowed as function return types.\n --> compiler-test:11:1\n |\n 11 | function bar() -> (u8, (u16, u32)) {\n 12 | return (1u8, (2u16, 3u32));\n 13 | }\n | ^\nError [ETYC0372007]: Expected one type from `i8, i16, i32, i64, i128, u8, u16, u32, u64, u128`, but got `(u8,u16)`\n --> compiler-test:16:9\n |\n 16 | for i: (u8, u16) in 0u8..2u8 {}\n | ^\nError [ETYC0372003]: Expected type `(u8,u16)` but type `u8` was found\n --> compiler-test:16:25\n |\n 16 | for i: (u8, u16) in 0u8..2u8 {}\n | ^^^\nError [ETYC0372003]: Expected type `(u8,u16)` but type `u8` was found\n --> compiler-test:16:30\n |\n 16 | for i: (u8, u16) in 0u8..2u8 {}\n | ^^^\nError [ETYC0372025]: Tuples are only allowed as function return types.\n --> compiler-test:21:5\n |\n 21 | mem: (u8, u16)\n | ^^^\n"

View File

@ -2,4 +2,4 @@
namespace: ParseExpression namespace: ParseExpression
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [EPAR0370027]: Could not parse the implicit value: 1.\n --> test:1:1\n |\n 1 | 1 == 2 == 3\n | ^" - "Error [EPAR0370018]: Could not parse the implicit value: 1.\n --> test:1:1\n |\n 1 | 1 == 2 == 3\n | ^"

View File

@ -2,4 +2,4 @@
namespace: ParseExpression namespace: ParseExpression
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [EPAR0370027]: Could not parse the implicit value: 1.\n --> test:1:1\n |\n 1 | 1 != 2 != 3\n | ^" - "Error [EPAR0370018]: Could not parse the implicit value: 1.\n --> test:1:1\n |\n 1 | 1 != 2 != 3\n | ^"

View File

@ -2,56 +2,56 @@
namespace: Token namespace: Token
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [EPAR0370025]: Could not lex the following content: `'a'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'a'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'Z'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'Z'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\\"'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\\"'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\''`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\''`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\t'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\t'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\r'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\r'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\0'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\0'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\u{F}'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\u{F}'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `''`.\n" - "Error [EPAR0370017]: Could not lex the following content: `''`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\u{E5}'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\u{E5}'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'å'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'å'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\u{4e0}'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\u{4e0}'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'Ӡ'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'Ӡ'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\u{d800}'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\u{d800}'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\u{2764}'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\u{2764}'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'❤'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'❤'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\u{1F622}'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\u{1F622}'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'😭'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'😭'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\u{10001F}'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\u{10001F}'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x2A'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x2A'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x7f'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x7f'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x00'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x00'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x01'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x01'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x02'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x02'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x03'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x03'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x04'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x04'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x05'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x05'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x06'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x06'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x07'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x07'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x10'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x10'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x11'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x11'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x12'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x12'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x13'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x13'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x14'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x14'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x15'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x15'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x16'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x16'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x17'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x17'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x20'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x20'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x21'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x21'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x22'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x22'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x23'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x23'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x24'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x24'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x25'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x25'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x26'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x26'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x27'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x27'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x30'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x30'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x31'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x31'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x32'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x32'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x33'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x33'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x34'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x34'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x35'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x35'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x36'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x36'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x37'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x37'`.\n"

View File

@ -2,50 +2,50 @@
namespace: Token namespace: Token
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [EPAR0370025]: Could not lex the following content: `'\\'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `\\`.\n" - "Error [EPAR0370017]: Could not lex the following content: `\\`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `\\n`.\n" - "Error [EPAR0370017]: Could not lex the following content: `\\n`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'a`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'a`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `''`.\n" - "Error [EPAR0370017]: Could not lex the following content: `''`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x7'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x7'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\xz'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\xz'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x9A'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x9A'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x7g'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x7g'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x80'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x80'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\xc1'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\xc1'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\xc2'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\xc2'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\xDF'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\xDF'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\xC0'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\xC0'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\xe0'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\xe0'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x9f'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x9f'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'abcdefg'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'abcdefg'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\a'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\a'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\z'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\z'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\A'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\A'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\Z'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\Z'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\1'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\1'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\9'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\9'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\*'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\*'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\u'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\u'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\t\\t'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\t\\t'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\uz'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\uz'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\u1'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\u1'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\u}`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\u}`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'🦀\\n'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'🦀\\n'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\u123'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\u123'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'🦀1🦀'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'🦀1🦀'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\u6🦀}'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\u6🦀}'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\u{af🦀'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\u{af🦀'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\u{2764z'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\u{2764z'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\u{276g}'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\u{276g}'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\u9999999'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\u9999999'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\u00000000'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\u00000000'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\u01000000'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\u01000000'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\u{110000}'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\u{110000}'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\u{1234567890}'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\u{1234567890}'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\u{bbbbb}\\u{aaaa}'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\u{bbbbb}\\u{aaaa}'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'😭😂😘'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'😭😂😘'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `''`.\n" - "Error [EPAR0370017]: Could not lex the following content: `''`.\n"

View File

@ -2,54 +2,54 @@
namespace: Token namespace: Token
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [EPAR0370025]: Could not lex the following content: `'a'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'a'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'Z'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'Z'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\\"'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\\"'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\t'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\t'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\r'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\r'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\0'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\0'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\u{F}'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\u{F}'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `''`.\n" - "Error [EPAR0370017]: Could not lex the following content: `''`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\u{E5}'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\u{E5}'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'å'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'å'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\u{4e0}'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\u{4e0}'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'Ӡ'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'Ӡ'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\u{2764}'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\u{2764}'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'❤'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'❤'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\u{1F622}'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\u{1F622}'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'😭'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'😭'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\u{10001F}'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\u{10001F}'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x2A'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x2A'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x7f'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x7f'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x00'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x00'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x01'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x01'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x02'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x02'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x03'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x03'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x04'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x04'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x05'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x05'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x06'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x06'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x07'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x07'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x10'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x10'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x11'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x11'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x12'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x12'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x13'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x13'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x14'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x14'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x15'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x15'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x16'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x16'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x17'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x17'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x20'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x20'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x21'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x21'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x22'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x22'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x23'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x23'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x24'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x24'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x25'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x25'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x26'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x26'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x27'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x27'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x30'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x30'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x31'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x31'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x32'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x32'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x33'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x33'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x34'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x34'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x35'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x35'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x36'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x36'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'\\x37'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\x37'`.\n"

View File

@ -2,14 +2,14 @@
namespace: ParseExpression namespace: ParseExpression
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [EPAR0370023]: Empty block comment." - "Error [EPAR0370015]: Empty block comment."
- "Error [EPAR0370024]: Block comment does not close with content: `/* test`." - "Error [EPAR0370016]: Block comment does not close with content: `/* test`."
- "Error [EPAR0370009]: unexpected string: expected 'expression', found '/'\n --> test:1:1\n |\n 1 | / /\n | ^" - "Error [EPAR0370009]: unexpected string: expected 'expression', found '/'\n --> test:1:1\n |\n 1 | / /\n | ^"
- "Error [EPAR0370024]: Block comment does not close with content: `/*/`." - "Error [EPAR0370016]: Block comment does not close with content: `/*/`."
- "Error [EPAR0370009]: unexpected string: expected 'expression', found '*'\n --> test:1:1\n |\n 1 | */\n | ^" - "Error [EPAR0370009]: unexpected string: expected 'expression', found '*'\n --> test:1:1\n |\n 1 | */\n | ^"
- "Error [EPAR0370025]: Could not lex the following content: `🦀**/`.\n" - "Error [EPAR0370017]: Could not lex the following content: `🦀**/`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `🦀*/`.\n" - "Error [EPAR0370017]: Could not lex the following content: `🦀*/`.\n"
- "Error [EPAR0370024]: Block comment does not close with content: `/*🦀/`." - "Error [EPAR0370016]: Block comment does not close with content: `/*🦀/`."
- "Error [EPAR0370024]: Block comment does not close with content: `/**🦀`." - "Error [EPAR0370016]: Block comment does not close with content: `/**🦀`."
- "Error [EPAR0370024]: Block comment does not close with content: `/*🦀`." - "Error [EPAR0370016]: Block comment does not close with content: `/*🦀`."
- "Error [EPAR0370024]: Block comment does not close with content: `/*/*`." - "Error [EPAR0370016]: Block comment does not close with content: `/*/*`."

View File

@ -3,14 +3,14 @@ namespace: ParseExpression
expectation: Fail expectation: Fail
outputs: outputs:
- "did not consume all input: 'group' @ 1:3-8\n" - "did not consume all input: 'group' @ 1:3-8\n"
- "Error [EPAR0370027]: Could not parse the implicit value: 123.\n --> test:1:2\n |\n 1 | (123)group\n | ^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 123.\n --> test:1:2\n |\n 1 | (123)group\n | ^^^"
- "Error [EPAR0370009]: unexpected string: expected 'expression', found ','\n --> test:1:2\n |\n 1 | (,)group\n | ^" - "Error [EPAR0370009]: unexpected string: expected 'expression', found ','\n --> test:1:2\n |\n 1 | (,)group\n | ^"
- "Error [EPAR0370009]: unexpected string: expected 'expression', found '+'\n --> test:1:2\n |\n 1 | (+, -,)group\n | ^" - "Error [EPAR0370009]: unexpected string: expected 'expression', found '+'\n --> test:1:2\n |\n 1 | (+, -,)group\n | ^"
- "Error [EPAR0370009]: unexpected string: expected 'expression', found ','\n --> test:1:2\n |\n 1 | (,+, -)group\n | ^" - "Error [EPAR0370009]: unexpected string: expected 'expression', found ','\n --> test:1:2\n |\n 1 | (,+, -)group\n | ^"
- "did not consume all input: 'group' @ 1:6-11\n" - "did not consume all input: 'group' @ 1:6-11\n"
- "Error [EPAR0370027]: Could not parse the implicit value: 123.\n --> test:1:2\n |\n 1 | (123,456u8)group\n | ^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 123.\n --> test:1:2\n |\n 1 | (123,456u8)group\n | ^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 123.\n --> test:1:2\n |\n 1 | (123,456field)group\n | ^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 123.\n --> test:1:2\n |\n 1 | (123,456field)group\n | ^^^"
- "Error [EPAR0370004]: Unexpected white space between terms (123,456) and group\n --> test:1:11\n |\n 1 | (123, 456) group\n | ^" - "Error [EPAR0370004]: Unexpected white space between terms (123,456) and group\n --> test:1:11\n |\n 1 | (123, 456) group\n | ^"
- "Error [EPAR0370027]: Could not parse the implicit value: 123.\n --> test:1:2\n |\n 1 | (123, )group\n | ^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 123.\n --> test:1:2\n |\n 1 | (123, )group\n | ^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 123.\n --> test:1:2\n |\n 1 | (123, 456, 789)group\n | ^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 123.\n --> test:1:2\n |\n 1 | (123, 456, 789)group\n | ^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 123.\n --> test:1:2\n |\n 1 | (123, 456)bool\n | ^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 123.\n --> test:1:2\n |\n 1 | (123, 456)bool\n | ^^^"

View File

@ -2,6 +2,6 @@
namespace: ParseExpression namespace: ParseExpression
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [EPAR0370031]: A hex number `0x..` was provided but hex is not allowed." - "Error [EPAR0370019]: A hex number `0x..` was provided but hex is not allowed."
- "Error [EPAR0370031]: A hex number `0x..` was provided but hex is not allowed." - "Error [EPAR0370019]: A hex number `0x..` was provided but hex is not allowed."
- "Error [EPAR0370031]: A hex number `0x..` was provided but hex is not allowed." - "Error [EPAR0370019]: A hex number `0x..` was provided but hex is not allowed."

View File

@ -2,4 +2,4 @@
namespace: ParseExpression namespace: ParseExpression
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [EPAR0370031]: A hex number `0x..` was provided but hex is not allowed." - "Error [EPAR0370019]: A hex number `0x..` was provided but hex is not allowed."

View File

@ -2,108 +2,108 @@
namespace: ParseExpression namespace: ParseExpression
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [EPAR0370027]: Could not parse the implicit value: 123.\n --> test:1:1\n |\n 1 | 123\n | ^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 123.\n --> test:1:1\n |\n 1 | 123\n | ^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 123.\n --> test:1:1\n |\n 1 | 123\n | ^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 123.\n --> test:1:1\n |\n 1 | 123\n | ^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 456.\n --> test:1:1\n |\n 1 | 456\n | ^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 456.\n --> test:1:1\n |\n 1 | 456\n | ^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 87377802873778028737780287377802873778028737780287377802873778028737780287377802.\n --> test:1:1\n |\n 1 | 87377802873778028737780287377802873778028737780287377802873778028737780287377802\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 87377802873778028737780287377802873778028737780287377802873778028737780287377802.\n --> test:1:1\n |\n 1 | 87377802873778028737780287377802873778028737780287377802873778028737780287377802\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802.\n --> test:1:1\n |\n 1 | 8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802.\n --> test:1:1\n |\n 1 | 8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 340130024.\n --> test:1:1\n |\n 1 | 340130024\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 340130024.\n --> test:1:1\n |\n 1 | 340130024\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 158951116.\n --> test:1:1\n |\n 1 | 158951116\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 158951116.\n --> test:1:1\n |\n 1 | 158951116\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 155529659.\n --> test:1:1\n |\n 1 | 155529659\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 155529659.\n --> test:1:1\n |\n 1 | 155529659\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 642023166.\n --> test:1:1\n |\n 1 | 642023166\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 642023166.\n --> test:1:1\n |\n 1 | 642023166\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 228481736.\n --> test:1:1\n |\n 1 | 228481736\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 228481736.\n --> test:1:1\n |\n 1 | 228481736\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 469712960.\n --> test:1:1\n |\n 1 | 469712960\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 469712960.\n --> test:1:1\n |\n 1 | 469712960\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 929437719.\n --> test:1:1\n |\n 1 | 929437719\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 929437719.\n --> test:1:1\n |\n 1 | 929437719\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 721072814.\n --> test:1:1\n |\n 1 | 721072814\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 721072814.\n --> test:1:1\n |\n 1 | 721072814\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 363254789.\n --> test:1:1\n |\n 1 | 363254789\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 363254789.\n --> test:1:1\n |\n 1 | 363254789\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 906732565.\n --> test:1:1\n |\n 1 | 906732565\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 906732565.\n --> test:1:1\n |\n 1 | 906732565\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 288246391.\n --> test:1:1\n |\n 1 | 288246391\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 288246391.\n --> test:1:1\n |\n 1 | 288246391\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 724940549.\n --> test:1:1\n |\n 1 | 724940549\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 724940549.\n --> test:1:1\n |\n 1 | 724940549\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 487101620.\n --> test:1:1\n |\n 1 | 487101620\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 487101620.\n --> test:1:1\n |\n 1 | 487101620\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 261373583.\n --> test:1:1\n |\n 1 | 261373583\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 261373583.\n --> test:1:1\n |\n 1 | 261373583\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 891163927.\n --> test:1:1\n |\n 1 | 891163927\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 891163927.\n --> test:1:1\n |\n 1 | 891163927\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 743967544.\n --> test:1:1\n |\n 1 | 743967544\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 743967544.\n --> test:1:1\n |\n 1 | 743967544\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 8372586.\n --> test:1:1\n |\n 1 | 8372586\n | ^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 8372586.\n --> test:1:1\n |\n 1 | 8372586\n | ^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 461793278.\n --> test:1:1\n |\n 1 | 461793278\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 461793278.\n --> test:1:1\n |\n 1 | 461793278\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 806307045.\n --> test:1:1\n |\n 1 | 806307045\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 806307045.\n --> test:1:1\n |\n 1 | 806307045\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 122764546.\n --> test:1:1\n |\n 1 | 122764546\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 122764546.\n --> test:1:1\n |\n 1 | 122764546\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 356336181.\n --> test:1:1\n |\n 1 | 356336181\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 356336181.\n --> test:1:1\n |\n 1 | 356336181\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 158370903.\n --> test:1:1\n |\n 1 | 158370903\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 158370903.\n --> test:1:1\n |\n 1 | 158370903\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 774460877.\n --> test:1:1\n |\n 1 | 774460877\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 774460877.\n --> test:1:1\n |\n 1 | 774460877\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 557174131.\n --> test:1:1\n |\n 1 | 557174131\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 557174131.\n --> test:1:1\n |\n 1 | 557174131\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 492401267.\n --> test:1:1\n |\n 1 | 492401267\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 492401267.\n --> test:1:1\n |\n 1 | 492401267\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 893445620.\n --> test:1:1\n |\n 1 | 893445620\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 893445620.\n --> test:1:1\n |\n 1 | 893445620\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 957757048.\n --> test:1:1\n |\n 1 | 957757048\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 957757048.\n --> test:1:1\n |\n 1 | 957757048\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 721540649.\n --> test:1:1\n |\n 1 | 721540649\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 721540649.\n --> test:1:1\n |\n 1 | 721540649\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 390746493.\n --> test:1:1\n |\n 1 | 390746493\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 390746493.\n --> test:1:1\n |\n 1 | 390746493\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 211251725.\n --> test:1:1\n |\n 1 | 211251725\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 211251725.\n --> test:1:1\n |\n 1 | 211251725\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 938266114.\n --> test:1:1\n |\n 1 | 938266114\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 938266114.\n --> test:1:1\n |\n 1 | 938266114\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 156985870.\n --> test:1:1\n |\n 1 | 156985870\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 156985870.\n --> test:1:1\n |\n 1 | 156985870\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 703831126.\n --> test:1:1\n |\n 1 | 703831126\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 703831126.\n --> test:1:1\n |\n 1 | 703831126\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 729964155.\n --> test:1:1\n |\n 1 | 729964155\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 729964155.\n --> test:1:1\n |\n 1 | 729964155\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 988151305.\n --> test:1:1\n |\n 1 | 988151305\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 988151305.\n --> test:1:1\n |\n 1 | 988151305\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 320872435.\n --> test:1:1\n |\n 1 | 320872435\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 320872435.\n --> test:1:1\n |\n 1 | 320872435\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 719287167.\n --> test:1:1\n |\n 1 | 719287167\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 719287167.\n --> test:1:1\n |\n 1 | 719287167\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 152289486.\n --> test:1:1\n |\n 1 | 152289486\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 152289486.\n --> test:1:1\n |\n 1 | 152289486\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 740067975.\n --> test:1:1\n |\n 1 | 740067975\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 740067975.\n --> test:1:1\n |\n 1 | 740067975\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 728627816.\n --> test:1:1\n |\n 1 | 728627816\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 728627816.\n --> test:1:1\n |\n 1 | 728627816\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 385008978.\n --> test:1:1\n |\n 1 | 385008978\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 385008978.\n --> test:1:1\n |\n 1 | 385008978\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 553967635.\n --> test:1:1\n |\n 1 | 553967635\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 553967635.\n --> test:1:1\n |\n 1 | 553967635\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 71980713.\n --> test:1:1\n |\n 1 | 71980713\n | ^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 71980713.\n --> test:1:1\n |\n 1 | 71980713\n | ^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 519444716.\n --> test:1:1\n |\n 1 | 519444716\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 519444716.\n --> test:1:1\n |\n 1 | 519444716\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 116499965.\n --> test:1:1\n |\n 1 | 116499965\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 116499965.\n --> test:1:1\n |\n 1 | 116499965\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 717422268.\n --> test:1:1\n |\n 1 | 717422268\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 717422268.\n --> test:1:1\n |\n 1 | 717422268\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 18966279.\n --> test:1:1\n |\n 1 | 18966279\n | ^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 18966279.\n --> test:1:1\n |\n 1 | 18966279\n | ^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 22458638.\n --> test:1:1\n |\n 1 | 22458638\n | ^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 22458638.\n --> test:1:1\n |\n 1 | 22458638\n | ^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 857282620.\n --> test:1:1\n |\n 1 | 857282620\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 857282620.\n --> test:1:1\n |\n 1 | 857282620\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 920675898.\n --> test:1:1\n |\n 1 | 920675898\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 920675898.\n --> test:1:1\n |\n 1 | 920675898\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 762235516.\n --> test:1:1\n |\n 1 | 762235516\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 762235516.\n --> test:1:1\n |\n 1 | 762235516\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 469018377.\n --> test:1:1\n |\n 1 | 469018377\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 469018377.\n --> test:1:1\n |\n 1 | 469018377\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 199986521.\n --> test:1:1\n |\n 1 | 199986521\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 199986521.\n --> test:1:1\n |\n 1 | 199986521\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 536679358.\n --> test:1:1\n |\n 1 | 536679358\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 536679358.\n --> test:1:1\n |\n 1 | 536679358\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 591399452.\n --> test:1:1\n |\n 1 | 591399452\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 591399452.\n --> test:1:1\n |\n 1 | 591399452\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 83083158.\n --> test:1:1\n |\n 1 | 83083158\n | ^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 83083158.\n --> test:1:1\n |\n 1 | 83083158\n | ^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 599449051.\n --> test:1:1\n |\n 1 | 599449051\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 599449051.\n --> test:1:1\n |\n 1 | 599449051\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 445442318.\n --> test:1:1\n |\n 1 | 445442318\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 445442318.\n --> test:1:1\n |\n 1 | 445442318\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 585486590.\n --> test:1:1\n |\n 1 | 585486590\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 585486590.\n --> test:1:1\n |\n 1 | 585486590\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 209278800.\n --> test:1:1\n |\n 1 | 209278800\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 209278800.\n --> test:1:1\n |\n 1 | 209278800\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 873568117.\n --> test:1:1\n |\n 1 | 873568117\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 873568117.\n --> test:1:1\n |\n 1 | 873568117\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 664470940.\n --> test:1:1\n |\n 1 | 664470940\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 664470940.\n --> test:1:1\n |\n 1 | 664470940\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 465262783.\n --> test:1:1\n |\n 1 | 465262783\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 465262783.\n --> test:1:1\n |\n 1 | 465262783\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 605652874.\n --> test:1:1\n |\n 1 | 605652874\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 605652874.\n --> test:1:1\n |\n 1 | 605652874\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 376803940.\n --> test:1:1\n |\n 1 | 376803940\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 376803940.\n --> test:1:1\n |\n 1 | 376803940\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 965247040.\n --> test:1:1\n |\n 1 | 965247040\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 965247040.\n --> test:1:1\n |\n 1 | 965247040\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 598474509.\n --> test:1:1\n |\n 1 | 598474509\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 598474509.\n --> test:1:1\n |\n 1 | 598474509\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 845119918.\n --> test:1:1\n |\n 1 | 845119918\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 845119918.\n --> test:1:1\n |\n 1 | 845119918\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 648159133.\n --> test:1:1\n |\n 1 | 648159133\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 648159133.\n --> test:1:1\n |\n 1 | 648159133\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 669051032.\n --> test:1:1\n |\n 1 | 669051032\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 669051032.\n --> test:1:1\n |\n 1 | 669051032\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 800600261.\n --> test:1:1\n |\n 1 | 800600261\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 800600261.\n --> test:1:1\n |\n 1 | 800600261\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 434689764.\n --> test:1:1\n |\n 1 | 434689764\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 434689764.\n --> test:1:1\n |\n 1 | 434689764\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 520060080.\n --> test:1:1\n |\n 1 | 520060080\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 520060080.\n --> test:1:1\n |\n 1 | 520060080\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 804659385.\n --> test:1:1\n |\n 1 | 804659385\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 804659385.\n --> test:1:1\n |\n 1 | 804659385\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 537828058.\n --> test:1:1\n |\n 1 | 537828058\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 537828058.\n --> test:1:1\n |\n 1 | 537828058\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 716600292.\n --> test:1:1\n |\n 1 | 716600292\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 716600292.\n --> test:1:1\n |\n 1 | 716600292\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 387020273.\n --> test:1:1\n |\n 1 | 387020273\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 387020273.\n --> test:1:1\n |\n 1 | 387020273\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 199375617.\n --> test:1:1\n |\n 1 | 199375617\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 199375617.\n --> test:1:1\n |\n 1 | 199375617\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 680337189.\n --> test:1:1\n |\n 1 | 680337189\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 680337189.\n --> test:1:1\n |\n 1 | 680337189\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 818479931.\n --> test:1:1\n |\n 1 | 818479931\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 818479931.\n --> test:1:1\n |\n 1 | 818479931\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 893693281.\n --> test:1:1\n |\n 1 | 893693281\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 893693281.\n --> test:1:1\n |\n 1 | 893693281\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 87377802.\n --> test:1:1\n |\n 1 | 87377802\n | ^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 87377802.\n --> test:1:1\n |\n 1 | 87377802\n | ^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 84699261.\n --> test:1:1\n |\n 1 | 84699261\n | ^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 84699261.\n --> test:1:1\n |\n 1 | 84699261\n | ^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 292826090.\n --> test:1:1\n |\n 1 | 292826090\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 292826090.\n --> test:1:1\n |\n 1 | 292826090\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 569171405.\n --> test:1:1\n |\n 1 | 569171405\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 569171405.\n --> test:1:1\n |\n 1 | 569171405\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 387436237.\n --> test:1:1\n |\n 1 | 387436237\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 387436237.\n --> test:1:1\n |\n 1 | 387436237\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 150682190.\n --> test:1:1\n |\n 1 | 150682190\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 150682190.\n --> test:1:1\n |\n 1 | 150682190\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 888770419.\n --> test:1:1\n |\n 1 | 888770419\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 888770419.\n --> test:1:1\n |\n 1 | 888770419\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 824696431.\n --> test:1:1\n |\n 1 | 824696431\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 824696431.\n --> test:1:1\n |\n 1 | 824696431\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 765659803.\n --> test:1:1\n |\n 1 | 765659803\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 765659803.\n --> test:1:1\n |\n 1 | 765659803\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 270163693.\n --> test:1:1\n |\n 1 | 270163693\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 270163693.\n --> test:1:1\n |\n 1 | 270163693\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 427940240.\n --> test:1:1\n |\n 1 | 427940240\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 427940240.\n --> test:1:1\n |\n 1 | 427940240\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 504997332.\n --> test:1:1\n |\n 1 | 504997332\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 504997332.\n --> test:1:1\n |\n 1 | 504997332\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 337808338.\n --> test:1:1\n |\n 1 | 337808338\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 337808338.\n --> test:1:1\n |\n 1 | 337808338\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 907200008.\n --> test:1:1\n |\n 1 | 907200008\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 907200008.\n --> test:1:1\n |\n 1 | 907200008\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 757177889.\n --> test:1:1\n |\n 1 | 757177889\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 757177889.\n --> test:1:1\n |\n 1 | 757177889\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 696697188.\n --> test:1:1\n |\n 1 | 696697188\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 696697188.\n --> test:1:1\n |\n 1 | 696697188\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 41376051.\n --> test:1:1\n |\n 1 | 41376051\n | ^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 41376051.\n --> test:1:1\n |\n 1 | 41376051\n | ^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 496293518.\n --> test:1:1\n |\n 1 | 496293518\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 496293518.\n --> test:1:1\n |\n 1 | 496293518\n | ^^^^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 251218820.\n --> test:1:1\n |\n 1 | 251218820\n | ^^^^^^^^^" - "Error [EPAR0370018]: Could not parse the implicit value: 251218820.\n --> test:1:1\n |\n 1 | 251218820\n | ^^^^^^^^^"

View File

@ -2,7 +2,7 @@
namespace: Token namespace: Token
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [EPAR0370022]: Expected a closed string but found `Hello world!`." - "Error [EPAR0370014]: Expected a closed string but found `Hello world!`."
- "Error [EPAR0370022]: Expected a closed string but found `\\`." - "Error [EPAR0370014]: Expected a closed string but found `\\`."
- "Error [EPAR0370022]: Expected a closed string but found `⭇😍;`." - "Error [EPAR0370014]: Expected a closed string but found `⭇😍;`."
- "Error [EPAR0370038]: Unicode bidi override code point encountered." - "Error [EPAR0370021]: Unicode bidi override code point encountered."

View File

@ -2,15 +2,15 @@
namespace: ParseExpression namespace: ParseExpression
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [EPAR0370025]: Could not lex the following content: `~`.\n" - "Error [EPAR0370017]: Could not lex the following content: `~`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `~`.\n" - "Error [EPAR0370017]: Could not lex the following content: `~`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `~`.\n" - "Error [EPAR0370017]: Could not lex the following content: `~`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `~`.\n" - "Error [EPAR0370017]: Could not lex the following content: `~`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `~`.\n" - "Error [EPAR0370017]: Could not lex the following content: `~`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `~`.\n" - "Error [EPAR0370017]: Could not lex the following content: `~`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `'h'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'h'`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `@test`.\n" - "Error [EPAR0370017]: Could not lex the following content: `@test`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `~`.\n" - "Error [EPAR0370017]: Could not lex the following content: `~`.\n"
- "Error [EPAR0370009]: unexpected string: expected 'expression', found '&&'\n --> test:1:1\n |\n 1 | &&\n | ^^" - "Error [EPAR0370009]: unexpected string: expected 'expression', found '&&'\n --> test:1:1\n |\n 1 | &&\n | ^^"
- "Error [EPAR0370009]: unexpected string: expected 'expression', found '||'\n --> test:1:1\n |\n 1 | ||\n | ^^" - "Error [EPAR0370009]: unexpected string: expected 'expression', found '||'\n --> test:1:1\n |\n 1 | ||\n | ^^"
- "Error [EPAR0370009]: unexpected string: expected 'expression', found '=='\n --> test:1:1\n |\n 1 | ==\n | ^^" - "Error [EPAR0370009]: unexpected string: expected 'expression', found '=='\n --> test:1:1\n |\n 1 | ==\n | ^^"
@ -46,22 +46,22 @@ outputs:
- "Error [EPAR0370009]: unexpected string: expected 'expression', found '?'\n --> test:1:1\n |\n 1 | ?\n | ^" - "Error [EPAR0370009]: unexpected string: expected 'expression', found '?'\n --> test:1:1\n |\n 1 | ?\n | ^"
- "Error [EPAR0370009]: unexpected string: expected 'expression', found '->'\n --> test:1:1\n |\n 1 | ->\n | ^^" - "Error [EPAR0370009]: unexpected string: expected 'expression', found '->'\n --> test:1:1\n |\n 1 | ->\n | ^^"
- "Error [EPAR0370009]: unexpected string: expected 'expression', found '_'\n --> test:1:1\n |\n 1 | _\n | ^" - "Error [EPAR0370009]: unexpected string: expected 'expression', found '_'\n --> test:1:1\n |\n 1 | _\n | ^"
- "Error [EPAR0370025]: Could not lex the following content: `~`.\n" - "Error [EPAR0370017]: Could not lex the following content: `~`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `~`.\n" - "Error [EPAR0370017]: Could not lex the following content: `~`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `~`.\n" - "Error [EPAR0370017]: Could not lex the following content: `~`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `~`.\n" - "Error [EPAR0370017]: Could not lex the following content: `~`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `~`.\n" - "Error [EPAR0370017]: Could not lex the following content: `~`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `~`.\n" - "Error [EPAR0370017]: Could not lex the following content: `~`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `~`.\n" - "Error [EPAR0370017]: Could not lex the following content: `~`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `~`.\n" - "Error [EPAR0370017]: Could not lex the following content: `~`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `~`.\n" - "Error [EPAR0370017]: Could not lex the following content: `~`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `~`.\n" - "Error [EPAR0370017]: Could not lex the following content: `~`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `~`.\n" - "Error [EPAR0370017]: Could not lex the following content: `~`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `~`.\n" - "Error [EPAR0370017]: Could not lex the following content: `~`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `~`.\n" - "Error [EPAR0370017]: Could not lex the following content: `~`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `~`.\n" - "Error [EPAR0370017]: Could not lex the following content: `~`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `~`.\n" - "Error [EPAR0370017]: Could not lex the following content: `~`.\n"
- "Error [EPAR0370025]: Could not lex the following content: `~`.\n" - "Error [EPAR0370017]: Could not lex the following content: `~`.\n"
- "Error [EPAR0370009]: unexpected string: expected 'expression', found 'console'\n --> test:1:1\n |\n 1 | console\n | ^^^^^^^" - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'console'\n --> test:1:1\n |\n 1 | console\n | ^^^^^^^"
- "Error [EPAR0370009]: unexpected string: expected 'expression', found 'const'\n --> test:1:1\n |\n 1 | const\n | ^^^^^" - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'const'\n --> test:1:1\n |\n 1 | const\n | ^^^^^"
- "Error [EPAR0370009]: unexpected string: expected 'expression', found 'else'\n --> test:1:1\n |\n 1 | else\n | ^^^^" - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'else'\n --> test:1:1\n |\n 1 | else\n | ^^^^"

View File

@ -2,4 +2,4 @@
namespace: Parse namespace: Parse
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [EPAR0370025]: Could not lex the following content: `@foo(?,`.\n" - "Error [EPAR0370017]: Could not lex the following content: `@foo(?,`.\n"

View File

@ -2,4 +2,4 @@
namespace: Parse namespace: Parse
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [EPAR0370025]: Could not lex the following content: `@context`.\n" - "Error [EPAR0370017]: Could not lex the following content: `@context`.\n"

View File

@ -2,4 +2,4 @@
namespace: Parse namespace: Parse
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [EPAR0370039]: Expression statements are not supported.\n --> test:5:9\n |\n 5 | x(y+1u32);\n | ^^^^^^^^^^\nError [EPAR0370039]: Expression statements are not supported.\n --> test:10:5\n |\n 10 | x(1u32);\n | ^^^^^^^^" - "Error [EPAR0370022]: Expression statements are not supported.\n --> test:5:9\n |\n 5 | x(y+1u32);\n | ^^^^^^^^^^\nError [EPAR0370022]: Expression statements are not supported.\n --> test:10:5\n |\n 10 | x(1u32);\n | ^^^^^^^^"

View File

@ -2,4 +2,4 @@
namespace: Parse namespace: Parse
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [EPAR0370025]: Could not lex the following content: `\\`.\n" - "Error [EPAR0370017]: Could not lex the following content: `\\`.\n"

View File

@ -2,4 +2,4 @@
namespace: Parse namespace: Parse
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [EPAR0370039]: Expression statements are not supported.\n --> test:4:5\n |\n 4 | inf();\n | ^^^^^^\nError [EPAR0370039]: Expression statements are not supported.\n --> test:8:5\n |\n 8 | inf();\n | ^^^^^^" - "Error [EPAR0370022]: Expression statements are not supported.\n --> test:4:5\n |\n 4 | inf();\n | ^^^^^^\nError [EPAR0370022]: Expression statements are not supported.\n --> test:8:5\n |\n 8 | inf();\n | ^^^^^^"

View File

@ -2,4 +2,4 @@
namespace: Parse namespace: Parse
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [EPAR0370036]: A parameter cannot be both public and const.\n --> test:3:20\n |\n 3 | function x(x: u32, public const y: i32) {\n | ^^^^^^^^^^^^" - "Error [EPAR0370020]: A parameter cannot be both public and const.\n --> test:3:20\n |\n 3 | function x(x: u32, public const y: i32) {\n | ^^^^^^^^^^^^"

View File

@ -2,4 +2,4 @@
namespace: Parse namespace: Parse
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [EPAR0370012]: \"test function...\" is deprecated. Did you mean @test annotation?\n --> test:3:1\n |\n 3 | test main() {}\n | ^^^^" - "Error [EPAR0370011]: \"test function...\" is deprecated. Did you mean @test annotation?\n --> test:3:1\n |\n 3 | test main() {}\n | ^^^^"

View File

@ -2,4 +2,4 @@
namespace: Input namespace: Input
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [EPAR0370036]: A parameter cannot be both public and const.\n --> test:4:1\n |\n 4 | public constant a: bool = true;\n | ^^^^^^^^^^^^^^^" - "Error [EPAR0370020]: A parameter cannot be both public and const.\n --> test:4:1\n |\n 4 | public constant a: bool = true;\n | ^^^^^^^^^^^^^^^"

View File

@ -2,4 +2,4 @@
namespace: Parse namespace: Parse
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [EPAR0370025]: Could not lex the following content: `\\`.\n" - "Error [EPAR0370017]: Could not lex the following content: `\\`.\n"

View File

@ -2,4 +2,4 @@
namespace: Parse namespace: Parse
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [EPAR0370038]: Unicode bidi override code point encountered." - "Error [EPAR0370021]: Unicode bidi override code point encountered."

View File

@ -2,4 +2,4 @@
namespace: Parse namespace: Parse
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [EPAR0370038]: Unicode bidi override code point encountered." - "Error [EPAR0370021]: Unicode bidi override code point encountered."

View File

@ -2,4 +2,4 @@
namespace: Parse namespace: Parse
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [EPAR0370025]: Could not lex the following content: `$`.\n" - "Error [EPAR0370017]: Could not lex the following content: `$`.\n"

View File

@ -2,4 +2,4 @@
namespace: Parse namespace: Parse
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [EPAR0370025]: Could not lex the following content: `\\1u8`.\n" - "Error [EPAR0370017]: Could not lex the following content: `\\1u8`.\n"

View File

@ -2,4 +2,4 @@
namespace: Parse namespace: Parse
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [EPAR0370031]: A hex number `0x..` was provided but hex is not allowed." - "Error [EPAR0370019]: A hex number `0x..` was provided but hex is not allowed."

View File

@ -2,4 +2,4 @@
namespace: Parse namespace: Parse
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [EPAR0370022]: Expected a closed string but found ``." - "Error [EPAR0370014]: Expected a closed string but found ``."

View File

@ -2,4 +2,4 @@
namespace: Parse namespace: Parse
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [EPAR0370025]: Could not lex the following content: `'`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'`.\n"

View File

@ -2,4 +2,4 @@
namespace: Parse namespace: Parse
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [EPAR0370025]: Could not lex the following content: `~`.\n" - "Error [EPAR0370017]: Could not lex the following content: `~`.\n"

View File

@ -2,4 +2,4 @@
namespace: Parse namespace: Parse
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [EPAR0370025]: Could not lex the following content: `'\\u`.\n" - "Error [EPAR0370017]: Could not lex the following content: `'\\u`.\n"

View File

@ -2,6 +2,6 @@
namespace: ParseStatement namespace: ParseStatement
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [EPAR0370038]: Unicode bidi override code point encountered." - "Error [EPAR0370021]: Unicode bidi override code point encountered."
- "Error [EPAR0370009]: unexpected string: expected 'formatted static_string', found '1'\n --> test:1:13\n |\n 1 | console.log(1);\n | ^" - "Error [EPAR0370009]: unexpected string: expected 'formatted static_string', found '1'\n --> test:1:13\n |\n 1 | console.log(1);\n | ^"
- "Error [EPAR0370007]: unexpected identifier: expected 'assert', 'error', 'log' -- found 'test'\n --> test:1:9\n |\n 1 | console.test();\n | ^^^^" - "Error [EPAR0370007]: unexpected identifier: expected 'assert', 'error', 'log' -- found 'test'\n --> test:1:9\n |\n 1 | console.test();\n | ^^^^"

View File

@ -42,6 +42,6 @@ outputs:
- "Error [EPAR0370005]: expected 'address', 'bool', 'field', 'group', 'scalar', 'string', 'i8', 'i16', 'i32', 'i64', 'i128', 'u8', 'u16', 'u32', 'u64', 'u128' -- found '['\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' -- found '['\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' -- found '['\n --> test:1:8\n |\n 1 | let x: [u8; 1u8] = [1,\n | ^" - "Error [EPAR0370005]: expected 'address', 'bool', 'field', 'group', 'scalar', 'string', 'i8', 'i16', 'i32', 'i64', 'i128', 'u8', 'u16', 'u32', 'u64', 'u128' -- found '['\n --> test:1:8\n |\n 1 | let x: [u8; 1u8] = [1,\n | ^"
- "Error [EPAR0370009]: unexpected string: expected 'expression', found ']'\n --> test:1:15\n |\n 1 | let dbg: u8 = ];\n | ^" - "Error [EPAR0370009]: unexpected string: expected 'expression', found ']'\n --> test:1:15\n |\n 1 | let dbg: u8 = ];\n | ^"
- "Error [EPAR0370025]: Could not lex the following content: `🦀:`.\n" - "Error [EPAR0370017]: Could not lex the following content: `🦀:`.\n"
- "Error [EPAR0370009]: unexpected string: expected 'identifier', found '('\n --> test:1:5\n |\n 1 | let (x) = ...;\n | ^" - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '('\n --> test:1:5\n |\n 1 | let (x) = ...;\n | ^"
- "Error [EPAR0370009]: unexpected string: expected 'identifier', found '('\n --> test:1:5\n |\n 1 | let (x,) = ...;\n | ^" - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '('\n --> test:1:5\n |\n 1 | let (x,) = ...;\n | ^"

View File

@ -2,6 +2,6 @@
namespace: ParseStatement namespace: ParseStatement
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [EPAR0370039]: Expression statements are not supported.\n --> test:1:1\n |\n 1 | expr;\n | ^^^^^" - "Error [EPAR0370022]: Expression statements are not supported.\n --> test:1:1\n |\n 1 | expr;\n | ^^^^^"
- "Error [EPAR0370039]: Expression statements are not supported.\n --> test:1:1\n |\n 1 | x+y;\n | ^^^^" - "Error [EPAR0370022]: Expression statements are not supported.\n --> test:1:1\n |\n 1 | x+y;\n | ^^^^"
- "Error [EPAR0370039]: Expression statements are not supported.\n --> test:1:1\n |\n 1 | x();\n | ^^^^" - "Error [EPAR0370022]: Expression statements are not supported.\n --> test:1:1\n |\n 1 | x();\n | ^^^^"

View File

@ -4,7 +4,7 @@ expectation: Fail
outputs: outputs:
- "Error [EPAR0370009]: unexpected string: expected 'expression', found ']'\n --> test:1:2\n |\n 1 | (];\n | ^" - "Error [EPAR0370009]: unexpected string: expected 'expression', found ']'\n --> test:1:2\n |\n 1 | (];\n | ^"
- "Error [EPAR0370009]: unexpected string: expected 'expression', found '['\n --> test:1:1\n |\n 1 | [);\n | ^" - "Error [EPAR0370009]: unexpected string: expected 'expression', found '['\n --> test:1:1\n |\n 1 | [);\n | ^"
- "Error [EPAR0370025]: Could not lex the following content: `\\y`.\n" - "Error [EPAR0370017]: Could not lex the following content: `\\y`.\n"
- "Error [EPAR0370009]: unexpected string: expected 'expression', found ';'\n --> test:1:6\n |\n 1 | (x,y|;\n | ^" - "Error [EPAR0370009]: unexpected string: expected 'expression', found ';'\n --> test:1:6\n |\n 1 | (x,y|;\n | ^"
- "Error [EPAR0370005]: expected ; -- found '['\n --> test:1:2\n |\n 1 | x[};\n | ^" - "Error [EPAR0370005]: expected ; -- found '['\n --> test:1:2\n |\n 1 | x[};\n | ^"
- "Error [EPAR0370005]: expected ) -- found ']'\n --> test:1:6\n |\n 1 | (x, y];\n | ^" - "Error [EPAR0370005]: expected ) -- found ']'\n --> test:1:6\n |\n 1 | (x, y];\n | ^"

View File

@ -2,6 +2,6 @@
namespace: ParseStatement namespace: ParseStatement
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [EPAR0370031]: A hex number `0x..` was provided but hex is not allowed." - "Error [EPAR0370019]: A hex number `0x..` was provided but hex is not allowed."
- "Error [EPAR0370031]: A hex number `0x..` was provided but hex is not allowed." - "Error [EPAR0370019]: A hex number `0x..` was provided but hex is not allowed."
- "Error [EPAR0370031]: A hex number `0x..` was provided but hex is not allowed." - "Error [EPAR0370019]: A hex number `0x..` was provided but hex is not allowed."

View File

@ -3,5 +3,5 @@ namespace: ParseStatement
expectation: Fail expectation: Fail
outputs: outputs:
- "Error [EPAR0370009]: unexpected string: expected 'expression', found '<eof>'\n --> test:1:1\n |\n 1 | return\n | ^^^^^^" - "Error [EPAR0370009]: unexpected string: expected 'expression', found '<eof>'\n --> test:1:1\n |\n 1 | return\n | ^^^^^^"
- "Error [EPAR0370027]: Could not parse the implicit value: 5.\n --> test:1:8\n |\n 1 | return 5\n | ^" - "Error [EPAR0370018]: Could not parse the implicit value: 5.\n --> test:1:8\n |\n 1 | return 5\n | ^"
- "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:2:1\n |\n 2 | if x {}\n | ^^" - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:2:1\n |\n 2 | if x {}\n | ^^"

View File

@ -46,4 +46,4 @@ outputs:
- "Error [EPAR0370005]: expected ; -- found 'x'\n --> test:1:6\n |\n 1 | Self x = 10u8;\n | ^" - "Error [EPAR0370005]: expected ; -- found 'x'\n --> test:1:6\n |\n 1 | Self x = 10u8;\n | ^"
- "Error [EPAR0370005]: expected ; -- found 'x'\n --> test:1:6\n |\n 1 | true x = 10u8;\n | ^" - "Error [EPAR0370005]: expected ; -- found 'x'\n --> test:1:6\n |\n 1 | true x = 10u8;\n | ^"
- "Error [EPAR0370005]: expected ; -- found 'x'\n --> test:1:7\n |\n 1 | false x = 10u8;\n | ^" - "Error [EPAR0370005]: expected ; -- found 'x'\n --> test:1:7\n |\n 1 | false x = 10u8;\n | ^"
- "Error [EPAR0370027]: Could not parse the implicit value: 0.\n --> test:1:1\n |\n 1 | 0 x = 10u8;\n | ^" - "Error [EPAR0370018]: Could not parse the implicit value: 0.\n --> test:1:1\n |\n 1 | 0 x = 10u8;\n | ^"

View File

@ -40,7 +40,7 @@ outputs:
- "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a true b;\n | ^" - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a true b;\n | ^"
- "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a false b;\n | ^" - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a false b;\n | ^"
- "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a 0 b;\n | ^" - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a 0 b;\n | ^"
- "Error [EPAR0370039]: Expression statements are not supported.\n --> test:1:1\n |\n 1 | x;=b;\n | ^^" - "Error [EPAR0370022]: Expression statements are not supported.\n --> test:1:1\n |\n 1 | x;=b;\n | ^^"
- "Error [EPAR0370009]: unexpected string: expected 'identifier', found '='\n --> test:1:3\n |\n 1 | x.=b;\n | ^" - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '='\n --> test:1:3\n |\n 1 | x.=b;\n | ^"
- "Error [EPAR0370005]: expected ; -- found ','\n --> test:1:2\n |\n 1 | x,=b; // 43\n | ^" - "Error [EPAR0370005]: expected ; -- found ','\n --> test:1:2\n |\n 1 | x,=b; // 43\n | ^"
- "Error [EPAR0370005]: expected ; -- found '['\n --> test:1:2\n |\n 1 | x[=b;\n | ^" - "Error [EPAR0370005]: expected ; -- found '['\n --> test:1:2\n |\n 1 | x[=b;\n | ^"
@ -57,8 +57,8 @@ outputs:
- "Error [EPAR0370009]: unexpected string: expected 'expression', found '='\n --> test:1:4\n |\n 1 | x<==b;\n | ^" - "Error [EPAR0370009]: unexpected string: expected 'expression', found '='\n --> test:1:4\n |\n 1 | x<==b;\n | ^"
- "Error [EPAR0370005]: expected ; -- found '..'\n --> test:1:2\n |\n 1 | x..=b;\n | ^^" - "Error [EPAR0370005]: expected ; -- found '..'\n --> test:1:2\n |\n 1 | x..=b;\n | ^^"
- "Error [EPAR0370009]: unexpected string: expected 'expression', found '='\n --> test:1:3\n |\n 1 | x&=b;\n | ^" - "Error [EPAR0370009]: unexpected string: expected 'expression', found '='\n --> test:1:3\n |\n 1 | x&=b;\n | ^"
- "Error [EPAR0370039]: Expression statements are not supported.\n --> test:1:1\n |\n 1 | x==b;\n | ^^^^^" - "Error [EPAR0370022]: Expression statements are not supported.\n --> test:1:1\n |\n 1 | x==b;\n | ^^^^^"
- "Error [EPAR0370039]: Expression statements are not supported.\n --> test:1:1\n |\n 1 | x!=b;\n | ^^^^^" - "Error [EPAR0370022]: Expression statements are not supported.\n --> test:1:1\n |\n 1 | x!=b;\n | ^^^^^"
- "Error [EPAR0370039]: Expression statements are not supported.\n --> test:1:1\n |\n 1 | x>=b;\n | ^^^^^" - "Error [EPAR0370022]: Expression statements are not supported.\n --> test:1:1\n |\n 1 | x>=b;\n | ^^^^^"
- "Error [EPAR0370039]: Expression statements are not supported.\n --> test:1:1\n |\n 1 | x<=b;\n | ^^^^^" - "Error [EPAR0370022]: Expression statements are not supported.\n --> test:1:1\n |\n 1 | x<=b;\n | ^^^^^"
- "Error [EPAR0370039]: Expression statements are not supported.\n --> test:1:1\n |\n 1 | x>=b;\n | ^^^^^" - "Error [EPAR0370022]: Expression statements are not supported.\n --> test:1:1\n |\n 1 | x>=b;\n | ^^^^^"