From ddbf2ae84945b5b58e34ffd7d39d4580e9c403ab Mon Sep 17 00:00:00 2001 From: Mazdak Farrokhzad Date: Sun, 12 Jun 2022 05:49:09 +0200 Subject: [PATCH] 1. Speed up string literal lexing. 2. Move address check to parser. 3. Move assignment place WF check to type checker. --- .../ast/src/passes/reconstructing_director.rs | 31 +-- .../ast/src/passes/reconstructing_reducer.rs | 21 +- .../ast/src/statements/assign/assignee.rs | 72 ------ compiler/ast/src/statements/assign/mod.rs | 7 +- compiler/parser/src/parser/expression.rs | 8 +- compiler/parser/src/parser/statement.rs | 27 +-- compiler/parser/src/tokenizer/lexer.rs | 38 +--- compiler/parser/src/tokenizer/mod.rs | 10 +- compiler/passes/src/symbol_table/table.rs | 14 +- .../passes/src/symbol_table/variable_scope.rs | 8 +- .../src/type_checker/check_expressions.rs | 12 +- .../src/type_checker/check_statements.rs | 21 +- leo/errors/src/errors/parser/parser_errors.rs | 8 - .../errors/type_checker/type_checker_error.rs | 8 + .../statements}/assign_fail.leo | 6 +- .../compiler/compiler/address/branch.leo.out | 8 + .../compiler/compiler/address/branch.out | 2 +- .../compiler/compiler/char/invalid_char.out | 2 +- .../compiler/compiler/char/neq.out | 2 +- .../compiler/compiler/char/out.out | 2 +- .../core/invalid_input_ident_fail.out | 2 +- .../use_decl_variable_as_assign_fail.out | 2 +- .../compiler/compiler/function/iteration.out | 2 +- .../compiler/function/iteration_repeated.out | 2 +- .../compiler/function/no_return_fail.out | 2 +- .../compiler/function/undefined_fail.out | 2 +- .../compiler/group/mult_by_group_fail.out | 2 +- .../compiler/integers/i128/pow_fail.out | 2 +- .../compiler/integers/i16/pow_fail.out | 2 +- .../compiler/integers/i32/pow_fail.out | 2 +- .../compiler/integers/i64/pow_fail.out | 2 +- .../compiler/integers/i8/pow_fail.out | 2 +- .../compiler/integers/u128/pow.leo.out | 5 + .../compiler/integers/u64/pow.leo.out | 5 + .../compiler/compiler/mutability/cond_mut.out | 2 +- .../mutability/function_input_mut.out | 2 +- .../compiler/statements/all_loops.out | 2 +- .../compiler/statements/assign_fail.leo.out | 5 + .../compiler/statements/assign_fail.out | 5 + .../compiler/compiler/statements/block.out | 2 +- .../compiler/compiler/statements/chain.out | 2 +- .../compare_invalid_negates_fail.out | 2 +- .../compiler/compiler/statements/for_loop.out | 2 +- .../compiler/statements/iteration_basic.out | 2 +- .../statements/iteration_variable.out | 2 +- .../compiler/compiler/statements/mutate.out | 2 +- .../statements/non_existant_var_exp_fail.out | 2 +- .../statements/non_existant_vars_mul_fail.out | 2 +- .../parser/expression/binary/eq_fail.out | 2 +- .../parser/expression/binary/ne_fail.out | 2 +- .../parser/expression/binary/neq_fail.out | 2 +- .../expression/literal/address_fail.out | 4 +- .../parser/parser/expression/literal/char.out | 106 ++++----- .../parser/expression/literal/char_fail.out | 94 ++++---- .../parser/expression/literal/char_parse.out | 102 ++++----- .../expression/literal/comment_fail.out | 18 +- .../parser/expression/literal/group_fail.out | 12 +- .../parser/expression/literal/int_fail.out | 6 +- .../literal/int_parse/field_fail.out | 2 +- .../expression/literal/int_parse/implicit.out | 210 +++++++++--------- .../parser/expression/literal/string_fail.out | 8 +- .../parser/parser/expression/token_format.out | 50 ++--- .../functions/annotated_arg_not_ident.out | 2 +- .../functions/annotated_context_fail.out | 2 +- .../parser/functions/bounded_recursion.out | 2 +- .../parser/parser/functions/escape_fail.out | 2 +- .../parser/functions/infinite_recursion.out | 2 +- .../functions/public_const_param_fail.out | 2 +- .../parser/functions/test_keyword_fail.out | 2 +- .../inputs/input_public_constant_fail.out | 2 +- .../parser/parser/program/backslash_eof.out | 2 +- .../parser/program/bidi_comment_2_fail.out | 2 +- .../parser/program/bidi_comment_fail.out | 2 +- .../parser/parser/program/dollar_eof.out | 2 +- .../parser/parser/program/escape_u8_eof.out | 2 +- .../parser/parser/program/hex_eof.out | 2 +- .../parser/parser/program/q_eof.out | 2 +- .../parser/parser/program/sq_eof.out | 2 +- .../parser/parser/program/tilde_eof.out | 2 +- .../program/unclosed_unicode_eof_fail.out | 2 +- .../parser/parser/statement/assign.out | 24 +- .../parser/parser/statement/console_fail.out | 2 +- .../parser/statement/definition_fail.out | 6 +- .../parser/parser/statement/expression.out | 6 +- .../parser/statement/expression_fail.out | 2 +- .../parser/parser/statement/hex_int_fail.out | 6 +- .../parser/parser/statement/return_fail.out | 2 +- .../parser/parser/unreachable/define.out | 3 +- .../parser/unreachable/math_op_fail.out | 12 +- .../parser/unreachable/math_op_pass.out | 168 ++++---------- .../expression/literal/address_fail.leo | 4 +- .../parser/expression/literal/string_fail.leo | 1 - tests/parser/unreachable/define.leo | 2 - 93 files changed, 526 insertions(+), 741 deletions(-) delete mode 100644 compiler/ast/src/statements/assign/assignee.rs rename tests/{parser/statement => compiler/statements}/assign_fail.leo (81%) create mode 100644 tests/expectations/compiler/compiler/address/branch.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u128/pow.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u64/pow.leo.out create mode 100644 tests/expectations/compiler/compiler/statements/assign_fail.leo.out create mode 100644 tests/expectations/compiler/compiler/statements/assign_fail.out diff --git a/compiler/ast/src/passes/reconstructing_director.rs b/compiler/ast/src/passes/reconstructing_director.rs index 8a959ab57a..1e7a02d654 100644 --- a/compiler/ast/src/passes/reconstructing_director.rs +++ b/compiler/ast/src/passes/reconstructing_director.rs @@ -157,38 +157,11 @@ impl ReconstructingDirector { self.reducer.reduce_definition(definition, variable_names, type_, value) } - pub fn reduce_assignee_access(&mut self, access: &AssigneeAccess) -> Result { - let new = match access { - AssigneeAccess::ArrayRange(left, right) => { - let left = left.as_ref().map(|left| self.reduce_expression(left)).transpose()?; - let right = right.as_ref().map(|right| self.reduce_expression(right)).transpose()?; - - AssigneeAccess::ArrayRange(left, right) - } - AssigneeAccess::ArrayIndex(index) => AssigneeAccess::ArrayIndex(self.reduce_expression(index)?), - AssigneeAccess::Member(identifier) => AssigneeAccess::Member(self.reduce_identifier(identifier)?), - _ => access.clone(), - }; - - self.reducer.reduce_assignee_access(access, new) - } - - pub fn reduce_assignee(&mut self, assignee: &Assignee) -> Result { - let identifier = self.reduce_identifier(&assignee.identifier)?; - - let mut accesses = vec![]; - for access in assignee.accesses.iter() { - accesses.push(self.reduce_assignee_access(access)?); - } - - self.reducer.reduce_assignee(assignee, identifier, accesses) - } - pub fn reduce_assign(&mut self, assign: &AssignStatement) -> Result { - let assignee = self.reduce_assignee(&assign.assignee)?; + let place = self.reduce_expression(&assign.place)?; let value = self.reduce_expression(&assign.value)?; - self.reducer.reduce_assign(assign, assignee, value) + self.reducer.reduce_assign(assign, place, value) } pub fn reduce_conditional(&mut self, conditional: &ConditionalStatement) -> Result { diff --git a/compiler/ast/src/passes/reconstructing_reducer.rs b/compiler/ast/src/passes/reconstructing_reducer.rs index e33288cbb0..eea321afb3 100644 --- a/compiler/ast/src/passes/reconstructing_reducer.rs +++ b/compiler/ast/src/passes/reconstructing_reducer.rs @@ -159,32 +159,15 @@ pub trait ReconstructingReducer { }) } - fn reduce_assignee_access(&mut self, _access: &AssigneeAccess, new: AssigneeAccess) -> Result { - Ok(new) - } - - fn reduce_assignee( - &mut self, - assignee: &Assignee, - identifier: Identifier, - accesses: Vec, - ) -> Result { - Ok(Assignee { - identifier, - accesses, - span: assignee.span, - }) - } - fn reduce_assign( &mut self, assign: &AssignStatement, - assignee: Assignee, + place: Expression, value: Expression, ) -> Result { Ok(AssignStatement { operation: assign.operation, - assignee, + place, value, span: assign.span, }) diff --git a/compiler/ast/src/statements/assign/assignee.rs b/compiler/ast/src/statements/assign/assignee.rs deleted file mode 100644 index 3e8e26c14e..0000000000 --- a/compiler/ast/src/statements/assign/assignee.rs +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (C) 2019-2022 Aleo Systems Inc. -// This file is part of the Leo library. - -// The Leo library is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - -// The Leo library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -// You should have received a copy of the GNU General Public License -// along with the Leo library. If not, see . - -use crate::{Expression, Identifier, PositiveNumber}; -use leo_span::Span; - -use serde::{Deserialize, Serialize}; -use std::fmt; - -#[allow(clippy::large_enum_variant)] -/// A sub-place in a variable to assign to. -#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] -pub enum AssigneeAccess { - /// Assignment to a range in an array. - ArrayRange(Option, Option), - /// Assignment to an element of an array identified by its index. - ArrayIndex(Expression), - /// Assignment to a tuple field by its position, e.g., `2`. - Tuple(PositiveNumber, #[serde(with = "leo_span::span_json")] Span), - /// Assignment to a field in a structure. - Member(Identifier), -} - -/// Definition assignee, e.g., `v`, `arr[0..2]`, `p.x`. -#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] -pub struct Assignee { - /// The base variable to assign to. - pub identifier: Identifier, - /// Sub-places within `identifier` to assign to, if any. - pub accesses: Vec, - pub span: Span, -} - -impl Assignee { - /// Returns the name of the variable being assigned to. - pub fn identifier(&self) -> &Identifier { - &self.identifier - } -} - -impl fmt::Display for Assignee { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - write!(f, "{}", self.identifier)?; - - for access in &self.accesses { - match access { - AssigneeAccess::ArrayRange(Some(left), Some(right)) => write!(f, "[{}..{}]", left, right)?, - AssigneeAccess::ArrayRange(None, Some(right)) => write!(f, "[..{}]", right)?, - AssigneeAccess::ArrayRange(Some(left), None) => write!(f, "[{}..]", left)?, - AssigneeAccess::ArrayRange(None, None) => write!(f, "[..]")?, - AssigneeAccess::ArrayIndex(index) => write!(f, "[{}]", index)?, - AssigneeAccess::Tuple(index, _span) => write!(f, ".{}", index)?, - AssigneeAccess::Member(member) => write!(f, ".{}", member)?, - } - } - - write!(f, "") - } -} diff --git a/compiler/ast/src/statements/assign/mod.rs b/compiler/ast/src/statements/assign/mod.rs index 214e092388..3c28d5ed2e 100644 --- a/compiler/ast/src/statements/assign/mod.rs +++ b/compiler/ast/src/statements/assign/mod.rs @@ -20,9 +20,6 @@ use leo_span::Span; use serde::{Deserialize, Serialize}; use std::fmt; -mod assignee; -pub use assignee::*; - /// The assignment operator. #[derive(Clone, Copy, PartialEq, Eq, Serialize, Deserialize, Debug)] pub enum AssignOperation { @@ -87,7 +84,7 @@ pub struct AssignStatement { /// For plain assignment, use `AssignOperation::Assign`. pub operation: AssignOperation, /// The place to assign to. - pub assignee: Assignee, + pub place: Expression, /// The value to assign to the `assignee`. pub value: Expression, /// The span, excluding the semicolon. @@ -96,7 +93,7 @@ pub struct AssignStatement { impl fmt::Display for AssignStatement { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - write!(f, "{} {} {};", self.assignee, self.operation.as_ref(), self.value) + write!(f, "{} {} {};", self.place, self.operation.as_ref(), self.value) } } diff --git a/compiler/parser/src/parser/expression.rs b/compiler/parser/src/parser/expression.rs index 19874d0467..350fa294d1 100644 --- a/compiler/parser/src/parser/expression.rs +++ b/compiler/parser/src/parser/expression.rs @@ -17,6 +17,7 @@ use super::*; use leo_errors::{ParserError, Result}; +use snarkvm_dpc::{prelude::Address, testnet2::Testnet2}; const INT_TYPES: &[Token] = &[ Token::I8, @@ -449,7 +450,12 @@ impl ParserContext<'_> { } Token::True => Expression::Value(ValueExpression::Boolean("true".into(), span)), Token::False => Expression::Value(ValueExpression::Boolean("false".into(), span)), - Token::AddressLit(value) => Expression::Value(ValueExpression::Address(value, span)), + Token::AddressLit(addr) => { + if addr.parse::>().is_err() { + self.emit_err(ParserError::invalid_address_lit(&addr, span).into()); + } + Expression::Value(ValueExpression::Address(addr, span)) + } Token::StaticString(value) => Expression::Value(ValueExpression::String(value, span)), Token::Ident(name) => { let ident = Identifier { name, span }; diff --git a/compiler/parser/src/parser/statement.rs b/compiler/parser/src/parser/statement.rs index c980030108..dbbd3f7a64 100644 --- a/compiler/parser/src/parser/statement.rs +++ b/compiler/parser/src/parser/statement.rs @@ -22,24 +22,6 @@ use leo_span::sym; const ASSIGN_TOKENS: &[Token] = &[Token::Assign]; impl ParserContext<'_> { - /// Returns an [`Identifier`] AST node if the given [`Expression`] AST node evaluates to an - /// identifier access. The access is stored in the given accesses. - fn construct_assignee_access(expr: Expression, _accesses: &mut [AssigneeAccess]) -> Result { - match expr { - Expression::Identifier(id) => Ok(id), - _ => Err(ParserError::invalid_assignment_target(expr.span()).into()), - } - } - - /// Returns an [`Assignee`] AST node from the given [`Expression`] AST node with accesses. - fn construct_assignee(expr: Expression) -> Result { - let mut accesses = Vec::new(); - Ok(Assignee { - span: expr.span(), - identifier: Self::construct_assignee_access(expr, &mut accesses)?, - accesses, - }) - } /// Returns a [`Statement`] AST node if the next tokens represent a statement. pub(crate) fn parse_statement(&mut self) -> Result { @@ -56,15 +38,14 @@ impl ParserContext<'_> { /// Returns a [`Block`] AST node if the next tokens represent a assign, or expression statement. fn parse_assign_statement(&mut self) -> Result { - let expr = self.parse_expression()?; + let place = self.parse_expression()?; if self.eat_any(ASSIGN_TOKENS) { let value = self.parse_expression()?; - let assignee = Self::construct_assignee(expr)?; self.expect(&Token::Semicolon)?; Ok(Statement::Assign(Box::new(AssignStatement { - span: assignee.span + value.span(), - assignee, + span: place.span() + value.span(), + place, // Currently only `=` so this is alright. operation: AssignOperation::Assign, value, @@ -72,7 +53,7 @@ impl ParserContext<'_> { } else { // Error on `expr;` but recover as an empty block `{}`. self.expect(&Token::Semicolon)?; - let span = expr.span() + self.prev_token.span; + let span = place.span() + self.prev_token.span; self.emit_err(ParserError::expr_stmts_disallowed(span)); Ok(Statement::dummy(span)) } diff --git a/compiler/parser/src/tokenizer/lexer.rs b/compiler/parser/src/tokenizer/lexer.rs index 86a3ea2746..df1190ceb3 100644 --- a/compiler/parser/src/tokenizer/lexer.rs +++ b/compiler/parser/src/tokenizer/lexer.rs @@ -17,13 +17,11 @@ use crate::tokenizer::Token; use leo_errors::{ParserError, Result}; use leo_span::{Span, Symbol}; -use snarkvm_dpc::{prelude::*, testnet2::Testnet2}; use serde::{Deserialize, Serialize}; use std::{ fmt, iter::{from_fn, Peekable}, - str::FromStr, }; /// Eat an identifier, that is, a string matching '[a-zA-Z][a-zA-Z\d_]*', if any. @@ -176,6 +174,7 @@ impl Token { return Err(ParserError::lexer_empty_input().into()); } + let input_str = input; let mut input = input.chars().peekable(); // Consumes a single character token. @@ -207,28 +206,18 @@ impl Token { match *input.peek().ok_or_else(ParserError::lexer_empty_input)? { x if x.is_ascii_whitespace() => return single(&mut input, Token::WhiteSpace), '"' => { - let mut string = String::new(); - input.next(); - - let mut ended = false; - while let Some(c) = input.next() { - // Check for illegal characters. - if is_bidi_override(c) { - return Err(ParserError::lexer_bidi_override().into()); - } - - // Check for end string quotation mark. - if c == '"' { - input.next(); - ended = true; - break; - } - string.push(c); + // Check for illegal characters. + if input_str.chars().any(is_bidi_override) { + return Err(ParserError::lexer_bidi_override().into()); } - if !ended { - return Err(ParserError::lexer_string_not_closed(string).into()); - } + // Find end string quotation mark. + // Instead of checking each `char` and pushing, we can avoid reallocations. + let rest = &input_str[1..]; + let string = match rest.as_bytes().iter().position(|c| *c == b'"') { + None => return Err(ParserError::lexer_string_not_closed(rest).into()), + Some(idx) => rest[..idx].to_owned(), + }; // + 2 to account for parsing quotation marks. return Ok((string.len() + 2, Token::StaticString(string))); @@ -379,8 +368,3 @@ impl fmt::Debug for SpannedToken { ::fmt(self, f) } } - -/// Returns true if the given string is a valid Aleo address. -pub(crate) fn check_address(address: &str) -> bool { - Address::::from_str(address).is_ok() -} diff --git a/compiler/parser/src/tokenizer/mod.rs b/compiler/parser/src/tokenizer/mod.rs index de112ab2e9..4e4491d3a8 100644 --- a/compiler/parser/src/tokenizer/mod.rs +++ b/compiler/parser/src/tokenizer/mod.rs @@ -28,11 +28,8 @@ pub(crate) use self::token::*; pub(crate) mod lexer; pub(crate) use self::lexer::*; -use leo_errors::{ParserError, Result}; -use leo_span::{ - span::{BytePos, Pos}, - Span, -}; +use leo_errors::Result; +use leo_span::span::{BytePos, Pos, Span}; /// Creates a new vector of spanned tokens from a given file path and source code text. pub(crate) fn tokenize(input: &str, start_pos: BytePos) -> Result> { @@ -57,9 +54,6 @@ pub(crate) fn tokenize_iter(input: &str, mut lo: BytePos) -> impl '_ + Iterator< match token { Token::WhiteSpace => continue, - Token::AddressLit(address) if !check_address(&address) => { - return Some(Err(ParserError::invalid_address_lit(address, span).into())); - } _ => return Some(Ok(SpannedToken { token, span })), } } diff --git a/compiler/passes/src/symbol_table/table.rs b/compiler/passes/src/symbol_table/table.rs index 6d828d76b4..05f2f0c114 100644 --- a/compiler/passes/src/symbol_table/table.rs +++ b/compiler/passes/src/symbol_table/table.rs @@ -35,8 +35,8 @@ pub struct SymbolTable<'a> { } impl<'a> SymbolTable<'a> { - pub fn check_shadowing(&self, symbol: &Symbol, span: Span) -> Result<()> { - if self.functions.contains_key(symbol) { + pub fn check_shadowing(&self, symbol: Symbol, span: Span) -> Result<()> { + if self.functions.contains_key(&symbol) { Err(AstError::shadowed_function(symbol, span).into()) } else { self.variables.check_shadowing(symbol, span)?; @@ -49,22 +49,22 @@ impl<'a> SymbolTable<'a> { } pub fn insert_fn(&mut self, symbol: Symbol, insert: &'a Function) -> Result<()> { - self.check_shadowing(&symbol, insert.span)?; + self.check_shadowing(symbol, insert.span)?; self.functions.insert(symbol, insert); Ok(()) } pub fn insert_variable(&mut self, symbol: Symbol, insert: VariableSymbol<'a>) -> Result<()> { - self.check_shadowing(&symbol, insert.span)?; + self.check_shadowing(symbol, insert.span)?; self.variables.variables.insert(symbol, insert); Ok(()) } - pub fn lookup_fn(&self, symbol: &Symbol) -> Option<&&'a Function> { - self.functions.get(symbol) + pub fn lookup_fn(&self, symbol: Symbol) -> Option<&&'a Function> { + self.functions.get(&symbol) } - pub fn lookup_variable(&self, symbol: &Symbol) -> Option<&VariableSymbol<'a>> { + pub fn lookup_variable(&self, symbol: Symbol) -> Option<&VariableSymbol<'a>> { self.variables.lookup_variable(symbol) } diff --git a/compiler/passes/src/symbol_table/variable_scope.rs b/compiler/passes/src/symbol_table/variable_scope.rs index 201456b564..56d72d093b 100644 --- a/compiler/passes/src/symbol_table/variable_scope.rs +++ b/compiler/passes/src/symbol_table/variable_scope.rs @@ -35,8 +35,8 @@ pub struct VariableScope<'a> { } impl<'a> VariableScope<'a> { - pub fn check_shadowing(&self, symbol: &Symbol, span: Span) -> Result<()> { - if self.variables.contains_key(symbol) { + pub fn check_shadowing(&self, symbol: Symbol, span: Span) -> Result<()> { + if self.variables.contains_key(&symbol) { Err(AstError::shadowed_variable(symbol, span).into()) } else if let Some(parent) = &self.parent { parent.check_shadowing(symbol, span) @@ -50,8 +50,8 @@ impl<'a> VariableScope<'a> { self.variables.clear(); } - pub fn lookup_variable(&self, symbol: &Symbol) -> Option<&VariableSymbol<'a>> { - if let Some(var) = self.variables.get(symbol) { + pub fn lookup_variable(&self, symbol: Symbol) -> Option<&VariableSymbol<'a>> { + if let Some(var) = self.variables.get(&symbol) { Some(var) } else if let Some(parent) = &self.parent { parent.lookup_variable(symbol) diff --git a/compiler/passes/src/type_checker/check_expressions.rs b/compiler/passes/src/type_checker/check_expressions.rs index 55792efb8a..48725ebf78 100644 --- a/compiler/passes/src/type_checker/check_expressions.rs +++ b/compiler/passes/src/type_checker/check_expressions.rs @@ -61,14 +61,14 @@ impl<'a> ExpressionVisitorDirector<'a> for Director<'a> { None } - fn visit_identifier(&mut self, input: &'a Identifier, expected: &Self::AdditionalInput) -> Option { - if let VisitResult::VisitChildren = self.visitor.visit_identifier(input) { - return if let Some(var) = self.visitor.symbol_table.clone().lookup_variable(&input.name) { - Some(self.visitor.assert_expected_option(*var.type_, expected, input.span)) + fn visit_identifier(&mut self, var: &'a Identifier, expected: &Self::AdditionalInput) -> Option { + if let VisitResult::VisitChildren = self.visitor.visit_identifier(var) { + return if let Some(var) = self.visitor.symbol_table.clone().lookup_variable(var.name) { + Some(self.visitor.assert_expected_option(*var.type_, expected, var.span)) } else { self.visitor .handler - .emit_err(TypeCheckerError::unknown_sym("variable", input.name, input.span()).into()); + .emit_err(TypeCheckerError::unknown_sym("variable", var.name, var.span()).into()); None }; } @@ -503,7 +503,7 @@ impl<'a> ExpressionVisitorDirector<'a> for Director<'a> { fn visit_call(&mut self, input: &'a CallExpression, expected: &Self::AdditionalInput) -> Option { match &*input.function { Expression::Identifier(ident) => { - if let Some(func) = self.visitor.symbol_table.clone().lookup_fn(&ident.name) { + if let Some(func) = self.visitor.symbol_table.clone().lookup_fn(ident.name) { let ret = self.visitor.assert_expected_option(func.output, expected, func.span()); if func.input.len() != input.arguments.len() { diff --git a/compiler/passes/src/type_checker/check_statements.rs b/compiler/passes/src/type_checker/check_statements.rs index ba92ee7b95..7071804b95 100644 --- a/compiler/passes/src/type_checker/check_statements.rs +++ b/compiler/passes/src/type_checker/check_statements.rs @@ -29,7 +29,7 @@ impl<'a> StatementVisitorDirector<'a> for Director<'a> { // statements should always have some parent block let parent = self.visitor.parent.unwrap(); - let return_type = &self.visitor.symbol_table.lookup_fn(&parent).map(|f| f.output); + let return_type = &self.visitor.symbol_table.lookup_fn(parent).map(|f| f.output); self.visitor.validate_ident_type(return_type); self.visitor.has_return = true; @@ -62,8 +62,17 @@ impl<'a> StatementVisitorDirector<'a> for Director<'a> { } fn visit_assign(&mut self, input: &'a AssignStatement) { - let var_name = &input.assignee.identifier.name; - let var_type = if let Some(var) = self.visitor.symbol_table.lookup_variable(var_name) { + let var_name = match input.place { + Expression::Identifier(id) => id, + _ => { + self.visitor + .handler + .emit_err(TypeCheckerError::invalid_assignment_target(input.place.span()).into()); + return; + } + }; + + let var_type = if let Some(var) = self.visitor.symbol_table.lookup_variable(var_name.name) { match &var.declaration { Declaration::Const => self .visitor @@ -78,9 +87,9 @@ impl<'a> StatementVisitorDirector<'a> for Director<'a> { Some(*var.type_) } else { - self.visitor.handler.emit_err( - TypeCheckerError::unknown_sym("variable", &input.assignee.identifier.name, input.assignee.span).into(), - ); + self.visitor + .handler + .emit_err(TypeCheckerError::unknown_sym("variable", var_name.name, var_name.span).into()); None }; diff --git a/leo/errors/src/errors/parser/parser_errors.rs b/leo/errors/src/errors/parser/parser_errors.rs index 1ebf2d67dc..dc992168c4 100644 --- a/leo/errors/src/errors/parser/parser_errors.rs +++ b/leo/errors/src/errors/parser/parser_errors.rs @@ -120,14 +120,6 @@ create_messages!( help: None, } - /// For when the parser encountered an invalid assignment target. - @formatted - invalid_assignment_target { - args: (), - msg: "invalid assignment target", - help: None, - } - /// For when the parser encountered an invalid package name. @formatted invalid_package_name { diff --git a/leo/errors/src/errors/type_checker/type_checker_error.rs b/leo/errors/src/errors/type_checker/type_checker_error.rs index 9a6497237a..1a1afa0629 100644 --- a/leo/errors/src/errors/type_checker/type_checker_error.rs +++ b/leo/errors/src/errors/type_checker/type_checker_error.rs @@ -23,6 +23,14 @@ create_messages!( code_mask: 2000i32, code_prefix: "TYC", + /// For when the parser encountered an invalid assignment target. + @formatted + invalid_assignment_target { + args: (), + msg: "invalid assignment target", + help: None, + } + /// For when the user tries to assign to a const input. @formatted cannont_assign_to_const_input { diff --git a/tests/parser/statement/assign_fail.leo b/tests/compiler/statements/assign_fail.leo similarity index 81% rename from tests/parser/statement/assign_fail.leo rename to tests/compiler/statements/assign_fail.leo index 818ad51446..c2c561ea4f 100644 --- a/tests/parser/statement/assign_fail.leo +++ b/tests/compiler/statements/assign_fail.leo @@ -1,5 +1,5 @@ /* -namespace: ParseStatement +namespace: Compile expectation: Fail */ @@ -27,4 +27,6 @@ x {x: y, y: z} = y; x() = y; -🦀 = y; \ No newline at end of file +x.y() = y; + +🦀 = y; diff --git a/tests/expectations/compiler/compiler/address/branch.leo.out b/tests/expectations/compiler/compiler/address/branch.leo.out new file mode 100644 index 0000000000..f8ae398c7c --- /dev/null +++ b/tests/expectations/compiler/compiler/address/branch.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: c7315faf1ac3ceeb90260e64e4a411a27a8aa732892a64c15f49e81adf464beb + initial_ast: 3688ab144b092041835e40e5628f19967bdf89d5ff0709d65788139a2bb184a6 + symbol_table: 7889ed5017f4f3951656b38265fa6339a29cddeca1be2aba54efc89f13ed7339 diff --git a/tests/expectations/compiler/compiler/address/branch.out b/tests/expectations/compiler/compiler/address/branch.out index 8a8fd5ba60..7b01f232e9 100644 --- a/tests/expectations/compiler/compiler/address/branch.out +++ b/tests/expectations/compiler/compiler/address/branch.out @@ -4,5 +4,5 @@ expectation: Pass outputs: - output: - initial_input_ast: c7315faf1ac3ceeb90260e64e4a411a27a8aa732892a64c15f49e81adf464beb - initial_ast: 767d8228dd9818cb115e7369cec91352dd406008981487380e863deb06dc11a0 + initial_ast: e7d10c4b2ac932327a11a69715f28af4d6c0c4becd841f74077b5b11a717bc85 symbol_table: a712053d471b6165809fc2b4f717282ea5590a2cfaeae8a630c8a3250478d179 diff --git a/tests/expectations/compiler/compiler/char/invalid_char.out b/tests/expectations/compiler/compiler/char/invalid_char.out index f613fa7eb1..db6e7bb5b0 100644 --- a/tests/expectations/compiler/compiler/char/invalid_char.out +++ b/tests/expectations/compiler/compiler/char/invalid_char.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [EPAR0370026]: Could not lex the following content: `''`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `''`.\n" diff --git a/tests/expectations/compiler/compiler/char/neq.out b/tests/expectations/compiler/compiler/char/neq.out index 5eb96aa6b1..fc7e8964a5 100644 --- a/tests/expectations/compiler/compiler/char/neq.out +++ b/tests/expectations/compiler/compiler/char/neq.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [EPAR0370026]: Could not lex the following content: `'a'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'a'`.\n" diff --git a/tests/expectations/compiler/compiler/char/out.out b/tests/expectations/compiler/compiler/char/out.out index 4be801f013..394d8d62d6 100644 --- a/tests/expectations/compiler/compiler/char/out.out +++ b/tests/expectations/compiler/compiler/char/out.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [EPAR0370026]: Could not lex the following content: `'z'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'z'`.\n" diff --git a/tests/expectations/compiler/compiler/core/invalid_input_ident_fail.out b/tests/expectations/compiler/compiler/core/invalid_input_ident_fail.out index f6c5b1b7ef..790e95222f 100644 --- a/tests/expectations/compiler/compiler/core/invalid_input_ident_fail.out +++ b/tests/expectations/compiler/compiler/core/invalid_input_ident_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372012]: The type DNE is not a valid built in type.\n --> compiler-test:4:27\n |\n 4 | function main(public dne: DNE, a: bool) -> bool {\n | ^^^\n" + - "Error [ETYC0372013]: The type DNE is not a valid built in type.\n --> compiler-test:4:27\n |\n 4 | function main(public dne: DNE, a: bool) -> bool {\n | ^^^\n" diff --git a/tests/expectations/compiler/compiler/definition/use_decl_variable_as_assign_fail.out b/tests/expectations/compiler/compiler/definition/use_decl_variable_as_assign_fail.out index bdb6857553..0d2db82b07 100644 --- a/tests/expectations/compiler/compiler/definition/use_decl_variable_as_assign_fail.out +++ b/tests/expectations/compiler/compiler/definition/use_decl_variable_as_assign_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372004]: 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" diff --git a/tests/expectations/compiler/compiler/function/iteration.out b/tests/expectations/compiler/compiler/function/iteration.out index 622d22758c..be0115f60e 100644 --- a/tests/expectations/compiler/compiler/function/iteration.out +++ b/tests/expectations/compiler/compiler/function/iteration.out @@ -4,5 +4,5 @@ expectation: Pass outputs: - output: - initial_input_ast: 78b65cde248c05f4abfe2d3cf794fbd44de082303631db7e3002aa724099fee1 - initial_ast: b9c41b81bba799989ce6abcae9ea82f5ba0564a66709c675db033456ac1ef862 + initial_ast: 8c95a1aee72799884e6b8d881b3e2a61134806c89d00ac0c57f034bfc46f28eb symbol_table: 738974bc93d03e230299143f22c4a8cb38e0962af93e19728f74a6bb8d25a6d0 diff --git a/tests/expectations/compiler/compiler/function/iteration_repeated.out b/tests/expectations/compiler/compiler/function/iteration_repeated.out index b5a8dad137..119bcbe58b 100644 --- a/tests/expectations/compiler/compiler/function/iteration_repeated.out +++ b/tests/expectations/compiler/compiler/function/iteration_repeated.out @@ -4,5 +4,5 @@ expectation: Pass outputs: - output: - initial_input_ast: 14d0aff05a3b8673ac44d18a969bd03157e19a724ebe2b6e805fdc82aa1e070d - initial_ast: 7266dc80dc8dc35c544868574e0c7654debd2e16f791a9a5ce711685950219a1 + initial_ast: 11513a46d2837dc0a3014ccad8ca9b7c0f0be3c4069d3827606c1c2501b0f196 symbol_table: 69b32d3a21ca899d23b9eba6603ce9eea7191eb9a7a893e28ef3fcc6b355a4ff diff --git a/tests/expectations/compiler/compiler/function/no_return_fail.out b/tests/expectations/compiler/compiler/function/no_return_fail.out index 5d353c4f04..a58d48cd6f 100644 --- a/tests/expectations/compiler/compiler/function/no_return_fail.out +++ b/tests/expectations/compiler/compiler/function/no_return_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372013]: The function main has no return statement.\n --> compiler-test:3:1\n |\n 3 | function main() -> u8 {}\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n" + - "Error [ETYC0372014]: The function main has no return statement.\n --> compiler-test:3:1\n |\n 3 | function main() -> u8 {}\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/compiler/function/undefined_fail.out b/tests/expectations/compiler/compiler/function/undefined_fail.out index bb6fe46457..9a5da0a93e 100644 --- a/tests/expectations/compiler/compiler/function/undefined_fail.out +++ b/tests/expectations/compiler/compiler/function/undefined_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [EPAR0370041]: Expression statements are no longer supported.\n --> compiler-test:4:5\n |\n 4 | my_function();\n | ^^^^^^^^^^^^^^" + - "Error [EPAR0370040]: Expression statements are no longer supported.\n --> compiler-test:4:5\n |\n 4 | my_function();\n | ^^^^^^^^^^^^^^" diff --git a/tests/expectations/compiler/compiler/group/mult_by_group_fail.out b/tests/expectations/compiler/compiler/group/mult_by_group_fail.out index 17bc264a35..d0d4ed45ed 100644 --- a/tests/expectations/compiler/compiler/group/mult_by_group_fail.out +++ b/tests/expectations/compiler/compiler/group/mult_by_group_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372002]: Found type `group` but type `scalar` was expected\n --> compiler-test:4:26\n |\n 4 | return (_, _)group * a;\n | ^\n" + - "Error [ETYC0372003]: Found type `group` but type `scalar` was expected\n --> compiler-test:4:26\n |\n 4 | return (_, _)group * a;\n | ^\n" diff --git a/tests/expectations/compiler/compiler/integers/i128/pow_fail.out b/tests/expectations/compiler/compiler/integers/i128/pow_fail.out index f75370206a..0948e7e194 100644 --- a/tests/expectations/compiler/compiler/integers/i128/pow_fail.out +++ b/tests/expectations/compiler/compiler/integers/i128/pow_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372008]: Expected one type from `u8,u16,u32,`, but got `i128`\n --> compiler-test:4:17\n |\n 4 | return a ** b == c;\n | ^\n" + - "Error [ETYC0372009]: Expected one type from `u8,u16,u32,`, but got `i128`\n --> compiler-test:4:17\n |\n 4 | return a ** b == c;\n | ^\n" diff --git a/tests/expectations/compiler/compiler/integers/i16/pow_fail.out b/tests/expectations/compiler/compiler/integers/i16/pow_fail.out index 6a0e90b5a1..09bc21a5b0 100644 --- a/tests/expectations/compiler/compiler/integers/i16/pow_fail.out +++ b/tests/expectations/compiler/compiler/integers/i16/pow_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372008]: Expected one type from `u8,u16,u32,`, but got `i16`\n --> compiler-test:4:17\n |\n 4 | return a ** b == c;\n | ^\n" + - "Error [ETYC0372009]: Expected one type from `u8,u16,u32,`, but got `i16`\n --> compiler-test:4:17\n |\n 4 | return a ** b == c;\n | ^\n" diff --git a/tests/expectations/compiler/compiler/integers/i32/pow_fail.out b/tests/expectations/compiler/compiler/integers/i32/pow_fail.out index b5ed1e71b0..12caacae66 100644 --- a/tests/expectations/compiler/compiler/integers/i32/pow_fail.out +++ b/tests/expectations/compiler/compiler/integers/i32/pow_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372008]: Expected one type from `u8,u16,u32,`, but got `i32`\n --> compiler-test:4:17\n |\n 4 | return a ** b == c;\n | ^\n" + - "Error [ETYC0372009]: Expected one type from `u8,u16,u32,`, but got `i32`\n --> compiler-test:4:17\n |\n 4 | return a ** b == c;\n | ^\n" diff --git a/tests/expectations/compiler/compiler/integers/i64/pow_fail.out b/tests/expectations/compiler/compiler/integers/i64/pow_fail.out index 6f6365b32c..a475e8dd0b 100644 --- a/tests/expectations/compiler/compiler/integers/i64/pow_fail.out +++ b/tests/expectations/compiler/compiler/integers/i64/pow_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372008]: Expected one type from `u8,u16,u32,`, but got `i64`\n --> compiler-test:4:17\n |\n 4 | return a ** b == c;\n | ^\n" + - "Error [ETYC0372009]: Expected one type from `u8,u16,u32,`, but got `i64`\n --> compiler-test:4:17\n |\n 4 | return a ** b == c;\n | ^\n" diff --git a/tests/expectations/compiler/compiler/integers/i8/pow_fail.out b/tests/expectations/compiler/compiler/integers/i8/pow_fail.out index 31cf3f2682..f1e9f9ab90 100644 --- a/tests/expectations/compiler/compiler/integers/i8/pow_fail.out +++ b/tests/expectations/compiler/compiler/integers/i8/pow_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372008]: Expected one type from `u8,u16,u32,`, but got `i8`\n --> compiler-test:4:17\n |\n 4 | return a ** b == c;\n | ^\n" + - "Error [ETYC0372009]: Expected one type from `u8,u16,u32,`, but got `i8`\n --> compiler-test:4:17\n |\n 4 | return a ** b == c;\n | ^\n" diff --git a/tests/expectations/compiler/compiler/integers/u128/pow.leo.out b/tests/expectations/compiler/compiler/integers/u128/pow.leo.out new file mode 100644 index 0000000000..7ce00c4b98 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u128/pow.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372009]: Expected one type from `u8,u16,u32,`, but got `u128`\n --> compiler-test:4:17\n |\n 4 | return a ** b == c;\n | ^\n" diff --git a/tests/expectations/compiler/compiler/integers/u64/pow.leo.out b/tests/expectations/compiler/compiler/integers/u64/pow.leo.out new file mode 100644 index 0000000000..5316f5d765 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u64/pow.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372009]: Expected one type from `u8,u16,u32,`, but got `u64`\n --> compiler-test:4:17\n |\n 4 | return a ** b == c;\n | ^\n" diff --git a/tests/expectations/compiler/compiler/mutability/cond_mut.out b/tests/expectations/compiler/compiler/mutability/cond_mut.out index aad3dafebd..21d0f6374b 100644 --- a/tests/expectations/compiler/compiler/mutability/cond_mut.out +++ b/tests/expectations/compiler/compiler/mutability/cond_mut.out @@ -4,5 +4,5 @@ expectation: Pass outputs: - output: - initial_input_ast: 1a264346d38ad228560df0abaa869c0bf4953b5deda0a93f02bd9697700489e3 - initial_ast: 5d370262b3d2eb0329036d4e4d60221a07547e9e63fe215435072ad46d5f2e2a + initial_ast: c042247dadcac3ccb6c97be98f103f1f16e48bad9f10721f3f6e72548d70c77a symbol_table: 955902f6a157a4830f6d69bc63ccd54bc6fdc8fee6b4f481926fa4a695688b69 diff --git a/tests/expectations/compiler/compiler/mutability/function_input_mut.out b/tests/expectations/compiler/compiler/mutability/function_input_mut.out index 487fe60527..0b27ff32f7 100644 --- a/tests/expectations/compiler/compiler/mutability/function_input_mut.out +++ b/tests/expectations/compiler/compiler/mutability/function_input_mut.out @@ -4,5 +4,5 @@ expectation: Pass outputs: - output: - initial_input_ast: 8b963717b41902e9ddd2d065137feca7555aaaafbd1591905ee890aab534f304 - initial_ast: 41c8990dc1cf6afb70f2fbc8f17ba4e64d63ea696d9989e5d1f9a554393a232c + initial_ast: 227eef279e0f7840bae0ded4f827b7b9eb16e511eedc590bd00949fa4fd9e5ba symbol_table: 03c28801d27a251ba77271104022e75a4d405bd4c96334c37033fdea7b0e8258 diff --git a/tests/expectations/compiler/compiler/statements/all_loops.out b/tests/expectations/compiler/compiler/statements/all_loops.out index 90a3ab500c..bd2da45550 100644 --- a/tests/expectations/compiler/compiler/statements/all_loops.out +++ b/tests/expectations/compiler/compiler/statements/all_loops.out @@ -4,5 +4,5 @@ expectation: Pass outputs: - output: - initial_input_ast: 7f054d619f362422dce83ca5563d462fe3206845a29de38bb3721f3cd2c69c11 - initial_ast: 6b833755871962eb67f0a281ef1edd82bf84b0c9f03154f0b7b0330c554826d4 + initial_ast: 7522398c3b6051ee9276088cf6624a497811d9f9beb91ee60a92dc09e64909c1 symbol_table: 17062ffd3a4c9628e2c6cd3af6c60b8d8117186a3f34be948bfe951ee96d702d diff --git a/tests/expectations/compiler/compiler/statements/assign_fail.leo.out b/tests/expectations/compiler/compiler/statements/assign_fail.leo.out new file mode 100644 index 0000000000..f7cd275584 --- /dev/null +++ b/tests/expectations/compiler/compiler/statements/assign_fail.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370025]: Could not lex the following content: `🦀`.\n" diff --git a/tests/expectations/compiler/compiler/statements/assign_fail.out b/tests/expectations/compiler/compiler/statements/assign_fail.out new file mode 100644 index 0000000000..f7cd275584 --- /dev/null +++ b/tests/expectations/compiler/compiler/statements/assign_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370025]: Could not lex the following content: `🦀`.\n" diff --git a/tests/expectations/compiler/compiler/statements/block.out b/tests/expectations/compiler/compiler/statements/block.out index 820b2ba767..15929c86f2 100644 --- a/tests/expectations/compiler/compiler/statements/block.out +++ b/tests/expectations/compiler/compiler/statements/block.out @@ -4,5 +4,5 @@ expectation: Pass outputs: - output: - initial_input_ast: 555a602a6e176c37483e18f7fcc4abf1103c14642114729913b7c8433c76a667 - initial_ast: bd58adf86143b15551d5f17e61826f3d434f50e4fc5caeea7f65d9457f6abf83 + initial_ast: 0db15b03775f7a8257cc2e12a895c5fecb57ecade8830a2c534a1b36798300b8 symbol_table: 58ff7182ef3f54b16388adf1a5ed1048ea66b9f44e1bdc8dddec83333fe9c14d diff --git a/tests/expectations/compiler/compiler/statements/chain.out b/tests/expectations/compiler/compiler/statements/chain.out index 1fc8a94223..d5e3e7e3a8 100644 --- a/tests/expectations/compiler/compiler/statements/chain.out +++ b/tests/expectations/compiler/compiler/statements/chain.out @@ -6,5 +6,5 @@ outputs: - initial_input_ast: 45904271733998b2b56d16f1fd4b035cd13f072ff6972108d90bd92d16e9266c - initial_input_ast: 0d9c06667774ccec1cab8dca077b5021ff514b5384b72263f730a0a1bfd6469f - initial_input_ast: a2d7fe3407284c9e88d8dd2e35a8d69f6ff51b1b25a8dfa53f0926416e1bfd3f - initial_ast: a152633f7bc700757ae04570f13eead69e1dcde5f33817cb967d7312a5bdbc1a + initial_ast: cec5bc7b2a20f76e6175e6a664c34ea4abdb34e3a8d975d780dab6e992389a89 symbol_table: 057339b96e949644b9100ca88f160f6322d3d20f49b29c64e346f932c126bf74 diff --git a/tests/expectations/compiler/compiler/statements/compare_invalid_negates_fail.out b/tests/expectations/compiler/compiler/statements/compare_invalid_negates_fail.out index 6d27d6442a..b6d2d7b4ad 100644 --- a/tests/expectations/compiler/compiler/statements/compare_invalid_negates_fail.out +++ b/tests/expectations/compiler/compiler/statements/compare_invalid_negates_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372006]: The type `u8` is not negatable\n --> compiler-test:4:20\n |\n 4 | let b: bool = -a == -1u8;\n | ^\nError [ETYC0372006]: The type `u8` is not negatable\n --> compiler-test:4:26\n |\n 4 | let b: bool = -a == -1u8;\n | ^^^\nError [ETYC0372006]: The type `u8` is not negatable\n --> compiler-test:5:20\n |\n 5 | let c: bool = -a > -1u8;\n | ^\nError [ETYC0372006]: The type `u8` is not negatable\n --> compiler-test:5:25\n |\n 5 | let c: bool = -a > -1u8;\n | ^^^\nError [ETYC0372006]: The type `u8` is not negatable\n --> compiler-test:6:20\n |\n 6 | let d: bool = -a < -1u8;\n | ^\nError [ETYC0372006]: The type `u8` is not negatable\n --> compiler-test:6:25\n |\n 6 | let d: bool = -a < -1u8;\n | ^^^\nError [ETYC0372006]: The type `u8` is not negatable\n --> compiler-test:7:20\n |\n 7 | let e: bool = -a >= -1u8;\n | ^\nError [ETYC0372006]: The type `u8` is not negatable\n --> compiler-test:7:26\n |\n 7 | let e: bool = -a >= -1u8;\n | ^^^\nError [ETYC0372006]: The type `u8` is not negatable\n --> compiler-test:8:20\n |\n 8 | let f: bool = -a <= -1u8;\n | ^\nError [ETYC0372006]: The type `u8` is not negatable\n --> compiler-test:8:26\n |\n 8 | let f: bool = -a <= -1u8;\n | ^^^\nError [ETYC0372006]: The type `u8` is not negatable\n --> compiler-test:9:18\n |\n 9 | let g: u8 = -a * -1u8;\n | ^\nError [ETYC0372006]: The type `u8` is not negatable\n --> compiler-test:9:23\n |\n 9 | let g: u8 = -a * -1u8;\n | ^^^\nError [ETYC0372006]: The type `u8` is not negatable\n --> compiler-test:10:18\n |\n 10 | let h: u8 = -a ** -1u8;\n | ^\nError [ETYC0372006]: The type `u8` is not negatable\n --> compiler-test:10:24\n |\n 10 | let h: u8 = -a ** -1u8;\n | ^^^\n" + - "Error [ETYC0372007]: The type `u8` is not negatable\n --> compiler-test:4:20\n |\n 4 | let b: bool = -a == -1u8;\n | ^\nError [ETYC0372007]: The type `u8` is not negatable\n --> compiler-test:4:26\n |\n 4 | let b: bool = -a == -1u8;\n | ^^^\nError [ETYC0372007]: The type `u8` is not negatable\n --> compiler-test:5:20\n |\n 5 | let c: bool = -a > -1u8;\n | ^\nError [ETYC0372007]: The type `u8` is not negatable\n --> compiler-test:5:25\n |\n 5 | let c: bool = -a > -1u8;\n | ^^^\nError [ETYC0372007]: The type `u8` is not negatable\n --> compiler-test:6:20\n |\n 6 | let d: bool = -a < -1u8;\n | ^\nError [ETYC0372007]: The type `u8` is not negatable\n --> compiler-test:6:25\n |\n 6 | let d: bool = -a < -1u8;\n | ^^^\nError [ETYC0372007]: The type `u8` is not negatable\n --> compiler-test:7:20\n |\n 7 | let e: bool = -a >= -1u8;\n | ^\nError [ETYC0372007]: The type `u8` is not negatable\n --> compiler-test:7:26\n |\n 7 | let e: bool = -a >= -1u8;\n | ^^^\nError [ETYC0372007]: The type `u8` is not negatable\n --> compiler-test:8:20\n |\n 8 | let f: bool = -a <= -1u8;\n | ^\nError [ETYC0372007]: The type `u8` is not negatable\n --> compiler-test:8:26\n |\n 8 | let f: bool = -a <= -1u8;\n | ^^^\nError [ETYC0372007]: The type `u8` is not negatable\n --> compiler-test:9:18\n |\n 9 | let g: u8 = -a * -1u8;\n | ^\nError [ETYC0372007]: The type `u8` is not negatable\n --> compiler-test:9:23\n |\n 9 | let g: u8 = -a * -1u8;\n | ^^^\nError [ETYC0372007]: The type `u8` is not negatable\n --> compiler-test:10:18\n |\n 10 | let h: u8 = -a ** -1u8;\n | ^\nError [ETYC0372007]: The type `u8` is not negatable\n --> compiler-test:10:24\n |\n 10 | let h: u8 = -a ** -1u8;\n | ^^^\n" diff --git a/tests/expectations/compiler/compiler/statements/for_loop.out b/tests/expectations/compiler/compiler/statements/for_loop.out index b282f8151c..79420487ba 100644 --- a/tests/expectations/compiler/compiler/statements/for_loop.out +++ b/tests/expectations/compiler/compiler/statements/for_loop.out @@ -4,5 +4,5 @@ expectation: Pass outputs: - output: - initial_input_ast: 0a10c88a8cdd61a9e3572466c6b5ea5536c6cfdcf79c52cfa9fb9b925ef356b5 - initial_ast: eee1d7262ccc295fc07e9bfb2724c8a886300f02a0aaa2e6dc417fd7917088fd + initial_ast: d6277a08a9df2a3b4ba8fdaad8f24398f1efbc69e701003f9379c847799e6b63 symbol_table: e4bca60f5387ea06162a5ccd040b49966cbf2c5b52ed35a48d71b08e14e0fee1 diff --git a/tests/expectations/compiler/compiler/statements/iteration_basic.out b/tests/expectations/compiler/compiler/statements/iteration_basic.out index c2506d8294..8dd8314ee4 100644 --- a/tests/expectations/compiler/compiler/statements/iteration_basic.out +++ b/tests/expectations/compiler/compiler/statements/iteration_basic.out @@ -4,5 +4,5 @@ expectation: Pass outputs: - output: - initial_input_ast: 2b08bca229cdf35a458353644c99931c266045ecfa23da55518e7542c6de4f55 - initial_ast: 76ba9ebfe385646a3b3138612e28cb7759b6d7a3ed737710821f44deda4106fe + initial_ast: 40e55fd0b69dd0192697460104416d109591bd395633e7a1cd4c4a684fbd34df symbol_table: 43e0cef3208b26d9005ce71e3b20057f7fab524b6969cd7323f9a7a7eaa29ae9 diff --git a/tests/expectations/compiler/compiler/statements/iteration_variable.out b/tests/expectations/compiler/compiler/statements/iteration_variable.out index 9cd991b8b9..dbe9bf3a29 100644 --- a/tests/expectations/compiler/compiler/statements/iteration_variable.out +++ b/tests/expectations/compiler/compiler/statements/iteration_variable.out @@ -4,5 +4,5 @@ expectation: Pass outputs: - output: - initial_input_ast: 54d447941be9647956ebb571b94203d24e695cc95b97a8e2405d4515f8f394ff - initial_ast: 493f140a615e3012493d1c4bde2b1574bd46e9893913cf31394f6d6b9b0bf31c + initial_ast: 40b05dc7308f612b1d3a34017802db3b8df8c244a3628ba10af1533524752e65 symbol_table: 013ec5f72040ecfe9f45884659a7b674f37c5a2a98906c2f42ec7e07f727f0df diff --git a/tests/expectations/compiler/compiler/statements/mutate.out b/tests/expectations/compiler/compiler/statements/mutate.out index bc2d5ed99d..7749962c0a 100644 --- a/tests/expectations/compiler/compiler/statements/mutate.out +++ b/tests/expectations/compiler/compiler/statements/mutate.out @@ -5,5 +5,5 @@ outputs: - output: - initial_input_ast: 30e94504f0b96c93e8bc80d3a3fcdc1f01515be7f2c1d925a76429050c5cfcb5 - initial_input_ast: 926d9b29f33bf919b80281c18201806e190051d5a3dcef78d7be2cf634128099 - initial_ast: bd4d486e1a5a76a57fedd99206cda8b55f3c8c1cbad27c2d17bc96255622cb8a + initial_ast: 0ef3bea6352b723272eed9f60a4b585bca5353136b480e55267ab613b65b7b2d symbol_table: 92816f4a99866162f44d9eaa22bea95c002ef73e9ba5e1ed74f2de1e4d8fa1d3 diff --git a/tests/expectations/compiler/compiler/statements/non_existant_var_exp_fail.out b/tests/expectations/compiler/compiler/statements/non_existant_var_exp_fail.out index f8b6964af3..36dbbd6b9e 100644 --- a/tests/expectations/compiler/compiler/statements/non_existant_var_exp_fail.out +++ b/tests/expectations/compiler/compiler/statements/non_existant_var_exp_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372004]: 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" diff --git a/tests/expectations/compiler/compiler/statements/non_existant_vars_mul_fail.out b/tests/expectations/compiler/compiler/statements/non_existant_vars_mul_fail.out index eaec866219..d0fa22eb14 100644 --- a/tests/expectations/compiler/compiler/statements/non_existant_vars_mul_fail.out +++ b/tests/expectations/compiler/compiler/statements/non_existant_vars_mul_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372004]: Unknown variable `x`\n --> compiler-test:4:14\n |\n 4 | \tlet b: u8 = x*z;\n | ^\nError [ETYC0372004]: 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" diff --git a/tests/expectations/parser/parser/expression/binary/eq_fail.out b/tests/expectations/parser/parser/expression/binary/eq_fail.out index 6396942528..434f3dbd4a 100644 --- a/tests/expectations/parser/parser/expression/binary/eq_fail.out +++ b/tests/expectations/parser/parser/expression/binary/eq_fail.out @@ -2,4 +2,4 @@ namespace: ParseExpression expectation: Fail outputs: - - "Error [EPAR0370028]: Could not parse the implicit value: 1.\n --> test:1:1\n |\n 1 | 1 == 2 == 3\n | ^" + - "Error [EPAR0370027]: Could not parse the implicit value: 1.\n --> test:1:1\n |\n 1 | 1 == 2 == 3\n | ^" diff --git a/tests/expectations/parser/parser/expression/binary/ne_fail.out b/tests/expectations/parser/parser/expression/binary/ne_fail.out index e5dce53468..5e1bdc231a 100644 --- a/tests/expectations/parser/parser/expression/binary/ne_fail.out +++ b/tests/expectations/parser/parser/expression/binary/ne_fail.out @@ -2,4 +2,4 @@ namespace: ParseExpression expectation: Fail outputs: - - "Error [EPAR0370028]: Could not parse the implicit value: 1.\n --> test:1:1\n |\n 1 | 1 != 2 != 3\n | ^" + - "Error [EPAR0370027]: Could not parse the implicit value: 1.\n --> test:1:1\n |\n 1 | 1 != 2 != 3\n | ^" diff --git a/tests/expectations/parser/parser/expression/binary/neq_fail.out b/tests/expectations/parser/parser/expression/binary/neq_fail.out index e5dce53468..5e1bdc231a 100644 --- a/tests/expectations/parser/parser/expression/binary/neq_fail.out +++ b/tests/expectations/parser/parser/expression/binary/neq_fail.out @@ -2,4 +2,4 @@ namespace: ParseExpression expectation: Fail outputs: - - "Error [EPAR0370028]: Could not parse the implicit value: 1.\n --> test:1:1\n |\n 1 | 1 != 2 != 3\n | ^" + - "Error [EPAR0370027]: Could not parse the implicit value: 1.\n --> test:1:1\n |\n 1 | 1 != 2 != 3\n | ^" diff --git a/tests/expectations/parser/parser/expression/literal/address_fail.out b/tests/expectations/parser/parser/expression/literal/address_fail.out index 5c02de28cd..23b56de7c9 100644 --- a/tests/expectations/parser/parser/expression/literal/address_fail.out +++ b/tests/expectations/parser/parser/expression/literal/address_fail.out @@ -1,5 +1,5 @@ --- -namespace: Token +namespace: ParseExpression expectation: Fail outputs: - "Error [EPAR0370001]: invalid address literal: 'aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d1aleo1'\n --> test:1:1\n |\n 1 | aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d1aleo1\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" @@ -11,4 +11,4 @@ outputs: - "Error [EPAR0370001]: invalid address literal: 'aleo1'\n --> test:1:1\n |\n 1 | aleo1\n | ^^^^^" - "Error [EPAR0370001]: invalid address literal: 'aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d1aleo1'\n --> test:1:1\n |\n 1 | aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d1aleo1\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" - "Error [EPAR0370001]: invalid address literal: 'aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d11'\n --> test:1:1\n |\n 1 | aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d11\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" - - "Error [EPAR0370001]: invalid address literal: 'aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d1x'\n --> test:1:1\n |\n 1 | aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d1x\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" + - "Error [EPAR0370001]: invalid address literal: 'aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d1x'\n --> test:1:1\n |\n 1 | aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d1x + aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d1x\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [EPAR0370001]: invalid address literal: 'aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d1x'\n --> test:1:68\n |\n 1 | aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d1x + aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d1x\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" diff --git a/tests/expectations/parser/parser/expression/literal/char.out b/tests/expectations/parser/parser/expression/literal/char.out index 43754ac96b..63e77f0ca1 100644 --- a/tests/expectations/parser/parser/expression/literal/char.out +++ b/tests/expectations/parser/parser/expression/literal/char.out @@ -2,56 +2,56 @@ namespace: Token expectation: Fail outputs: - - "Error [EPAR0370026]: Could not lex the following content: `'a'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'Z'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\\"'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\''`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\t'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\r'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\0'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\u{F}'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `''`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\u{E5}'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'å'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\u{4e0}'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'Ӡ'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\u{d800}'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\u{2764}'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'❤'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\u{1F622}'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'😭'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\u{10001F}'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x2A'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x7f'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x00'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x01'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x02'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x03'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x04'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x05'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x06'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x07'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x10'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x11'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x12'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x13'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x14'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x15'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x16'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x17'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x20'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x21'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x22'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x23'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x24'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x25'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x26'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x27'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x30'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x31'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x32'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x33'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x34'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x35'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x36'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x37'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'a'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'Z'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\\"'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\''`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\t'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\r'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\0'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\u{F}'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `''`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\u{E5}'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'å'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\u{4e0}'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'Ӡ'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\u{d800}'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\u{2764}'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'❤'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\u{1F622}'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'😭'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\u{10001F}'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x2A'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x7f'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x00'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x01'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x02'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x03'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x04'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x05'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x06'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x07'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x10'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x11'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x12'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x13'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x14'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x15'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x16'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x17'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x20'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x21'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x22'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x23'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x24'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x25'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x26'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x27'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x30'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x31'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x32'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x33'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x34'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x35'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x36'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x37'`.\n" diff --git a/tests/expectations/parser/parser/expression/literal/char_fail.out b/tests/expectations/parser/parser/expression/literal/char_fail.out index 373ebad809..181e64baa7 100644 --- a/tests/expectations/parser/parser/expression/literal/char_fail.out +++ b/tests/expectations/parser/parser/expression/literal/char_fail.out @@ -2,50 +2,50 @@ namespace: Token expectation: Fail outputs: - - "Error [EPAR0370026]: Could not lex the following content: `'\\'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `\\`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `\\n`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'a`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `''`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x7'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\xz'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x9A'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x7g'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x80'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\xc1'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\xc2'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\xDF'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\xC0'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\xe0'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x9f'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'abcdefg'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\a'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\z'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\A'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\Z'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\1'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\9'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\*'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\u'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\t\\t'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\uz'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\u1'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\u}`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'🦀\\n'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\u123'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'🦀1🦀'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\u6🦀}'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\u{af🦀'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\u{2764z'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\u{276g}'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\u9999999'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\u00000000'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\u01000000'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\u{110000}'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\u{1234567890}'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\u{bbbbb}\\u{aaaa}'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'😭😂😘'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'⁩'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `\\`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `\\n`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'a`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `''`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x7'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\xz'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x9A'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x7g'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x80'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\xc1'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\xc2'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\xDF'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\xC0'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\xe0'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x9f'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'abcdefg'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\a'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\z'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\A'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\Z'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\1'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\9'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\*'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\u'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\t\\t'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\uz'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\u1'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\u}`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'🦀\\n'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\u123'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'🦀1🦀'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\u6🦀}'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\u{af🦀'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\u{2764z'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\u{276g}'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\u9999999'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\u00000000'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\u01000000'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\u{110000}'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\u{1234567890}'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\u{bbbbb}\\u{aaaa}'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'😭😂😘'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'⁩'`.\n" diff --git a/tests/expectations/parser/parser/expression/literal/char_parse.out b/tests/expectations/parser/parser/expression/literal/char_parse.out index 40154ce886..7a8af15ba8 100644 --- a/tests/expectations/parser/parser/expression/literal/char_parse.out +++ b/tests/expectations/parser/parser/expression/literal/char_parse.out @@ -2,54 +2,54 @@ namespace: Token expectation: Fail outputs: - - "Error [EPAR0370026]: Could not lex the following content: `'a'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'Z'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\\"'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\t'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\r'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\0'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\u{F}'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `''`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\u{E5}'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'å'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\u{4e0}'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'Ӡ'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\u{2764}'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'❤'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\u{1F622}'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'😭'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\u{10001F}'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x2A'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x7f'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x00'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x01'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x02'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x03'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x04'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x05'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x06'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x07'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x10'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x11'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x12'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x13'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x14'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x15'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x16'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x17'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x20'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x21'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x22'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x23'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x24'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x25'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x26'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x27'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x30'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x31'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x32'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x33'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x34'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x35'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x36'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'\\x37'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'a'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'Z'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\\"'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\t'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\r'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\0'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\u{F}'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `''`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\u{E5}'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'å'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\u{4e0}'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'Ӡ'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\u{2764}'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'❤'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\u{1F622}'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'😭'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\u{10001F}'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x2A'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x7f'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x00'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x01'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x02'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x03'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x04'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x05'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x06'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x07'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x10'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x11'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x12'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x13'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x14'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x15'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x16'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x17'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x20'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x21'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x22'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x23'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x24'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x25'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x26'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x27'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x30'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x31'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x32'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x33'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x34'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x35'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x36'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\x37'`.\n" diff --git a/tests/expectations/parser/parser/expression/literal/comment_fail.out b/tests/expectations/parser/parser/expression/literal/comment_fail.out index 33fe0aca05..f07e268426 100644 --- a/tests/expectations/parser/parser/expression/literal/comment_fail.out +++ b/tests/expectations/parser/parser/expression/literal/comment_fail.out @@ -2,14 +2,14 @@ namespace: ParseExpression expectation: Fail outputs: - - "Error [EPAR0370024]: Empty block comment." - - "Error [EPAR0370025]: Block comment does not close with content: `/* test`." + - "Error [EPAR0370023]: Empty block comment." + - "Error [EPAR0370024]: Block comment does not close with content: `/* test`." - "Error [EPAR0370009]: unexpected string: expected 'expression', got '/'\n --> test:1:1\n |\n 1 | / /\n | ^" - - "Error [EPAR0370025]: Block comment does not close with content: `/*/`." + - "Error [EPAR0370024]: Block comment does not close with content: `/*/`." - "Error [EPAR0370009]: unexpected string: expected 'expression', got '*'\n --> test:1:1\n |\n 1 | */\n | ^" - - "Error [EPAR0370026]: Could not lex the following content: `🦀**/`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `🦀*/`.\n" - - "Error [EPAR0370025]: Block comment does not close with content: `/*🦀/`." - - "Error [EPAR0370025]: Block comment does not close with content: `/**🦀`." - - "Error [EPAR0370025]: Block comment does not close with content: `/*🦀`." - - "Error [EPAR0370025]: Block comment does not close with content: `/*/*`." + - "Error [EPAR0370025]: Could not lex the following content: `🦀**/`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `🦀*/`.\n" + - "Error [EPAR0370024]: Block comment does not close with content: `/*🦀/`." + - "Error [EPAR0370024]: Block comment does not close with content: `/**🦀`." + - "Error [EPAR0370024]: Block comment does not close with content: `/*🦀`." + - "Error [EPAR0370024]: Block comment does not close with content: `/*/*`." diff --git a/tests/expectations/parser/parser/expression/literal/group_fail.out b/tests/expectations/parser/parser/expression/literal/group_fail.out index a4a3d67268..449c4db287 100644 --- a/tests/expectations/parser/parser/expression/literal/group_fail.out +++ b/tests/expectations/parser/parser/expression/literal/group_fail.out @@ -3,14 +3,14 @@ namespace: ParseExpression expectation: Fail outputs: - "Error [EPAR0370005]: expected A valid expression. -- got 'A tuple expression.'\n --> test:1:1\n |\n 1 | ()group\n | ^^" - - "Error [EPAR0370028]: 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)group\n | ^^^" - "Error [EPAR0370009]: unexpected string: expected 'expression', got ','\n --> test:1:2\n |\n 1 | (,)group\n | ^" - "Error [EPAR0370009]: unexpected string: expected 'expression', got '+'\n --> test:1:2\n |\n 1 | (+, -,)group\n | ^" - "Error [EPAR0370009]: unexpected string: expected 'expression', got ','\n --> test:1:2\n |\n 1 | (,+, -)group\n | ^" - "Error [EPAR0370005]: expected A valid expression. -- got 'A tuple expression.'\n --> test:1:1\n |\n 1 | (x,y)group\n | ^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 123.\n --> test:1:2\n |\n 1 | (123,456u8)group\n | ^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 123.\n --> test:1:2\n |\n 1 | (123,456field)group\n | ^^^" + - "Error [EPAR0370027]: 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 [EPAR0370004]: Unexpected white space between terms (123,456) and group\n --> test:1:11\n |\n 1 | (123, 456) group\n | ^" - - "Error [EPAR0370028]: Could not parse the implicit value: 123.\n --> test:1:2\n |\n 1 | (123, )group\n | ^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 123.\n --> test:1:2\n |\n 1 | (123, 456, 789)group\n | ^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 123.\n --> test:1:2\n |\n 1 | (123, 456)bool\n | ^^^" + - "Error [EPAR0370027]: 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 [EPAR0370027]: Could not parse the implicit value: 123.\n --> test:1:2\n |\n 1 | (123, 456)bool\n | ^^^" diff --git a/tests/expectations/parser/parser/expression/literal/int_fail.out b/tests/expectations/parser/parser/expression/literal/int_fail.out index 91fe5bb55f..339a046ecf 100644 --- a/tests/expectations/parser/parser/expression/literal/int_fail.out +++ b/tests/expectations/parser/parser/expression/literal/int_fail.out @@ -2,6 +2,6 @@ namespace: ParseExpression expectation: Fail outputs: - - "Error [EPAR0370032]: A hex number `0x..` was provided but hex is not allowed." - - "Error [EPAR0370032]: A hex number `0x..` was provided but hex is not allowed." - - "Error [EPAR0370032]: 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 [EPAR0370031]: A hex number `0x..` was provided but hex is not allowed." + - "Error [EPAR0370031]: A hex number `0x..` was provided but hex is not allowed." diff --git a/tests/expectations/parser/parser/expression/literal/int_parse/field_fail.out b/tests/expectations/parser/parser/expression/literal/int_parse/field_fail.out index c96409b26b..eb8b611193 100644 --- a/tests/expectations/parser/parser/expression/literal/int_parse/field_fail.out +++ b/tests/expectations/parser/parser/expression/literal/int_parse/field_fail.out @@ -2,4 +2,4 @@ namespace: ParseExpression expectation: Fail outputs: - - "Error [EPAR0370032]: A hex number `0x..` was provided but hex is not allowed." + - "Error [EPAR0370031]: A hex number `0x..` was provided but hex is not allowed." diff --git a/tests/expectations/parser/parser/expression/literal/int_parse/implicit.out b/tests/expectations/parser/parser/expression/literal/int_parse/implicit.out index 402657ad79..881cdb6bc6 100644 --- a/tests/expectations/parser/parser/expression/literal/int_parse/implicit.out +++ b/tests/expectations/parser/parser/expression/literal/int_parse/implicit.out @@ -2,108 +2,108 @@ namespace: ParseExpression expectation: Fail outputs: - - "Error [EPAR0370028]: Could not parse the implicit value: 123.\n --> test:1:1\n |\n 1 | 123\n | ^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 123.\n --> test:1:1\n |\n 1 | 123\n | ^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 456.\n --> test:1:1\n |\n 1 | 456\n | ^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 87377802873778028737780287377802873778028737780287377802873778028737780287377802.\n --> test:1:1\n |\n 1 | 87377802873778028737780287377802873778028737780287377802873778028737780287377802\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802.\n --> test:1:1\n |\n 1 | 8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 340130024.\n --> test:1:1\n |\n 1 | 340130024\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 158951116.\n --> test:1:1\n |\n 1 | 158951116\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 155529659.\n --> test:1:1\n |\n 1 | 155529659\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 642023166.\n --> test:1:1\n |\n 1 | 642023166\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 228481736.\n --> test:1:1\n |\n 1 | 228481736\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 469712960.\n --> test:1:1\n |\n 1 | 469712960\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 929437719.\n --> test:1:1\n |\n 1 | 929437719\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 721072814.\n --> test:1:1\n |\n 1 | 721072814\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 363254789.\n --> test:1:1\n |\n 1 | 363254789\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 906732565.\n --> test:1:1\n |\n 1 | 906732565\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 288246391.\n --> test:1:1\n |\n 1 | 288246391\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 724940549.\n --> test:1:1\n |\n 1 | 724940549\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 487101620.\n --> test:1:1\n |\n 1 | 487101620\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 261373583.\n --> test:1:1\n |\n 1 | 261373583\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 891163927.\n --> test:1:1\n |\n 1 | 891163927\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 743967544.\n --> test:1:1\n |\n 1 | 743967544\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 8372586.\n --> test:1:1\n |\n 1 | 8372586\n | ^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 461793278.\n --> test:1:1\n |\n 1 | 461793278\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 806307045.\n --> test:1:1\n |\n 1 | 806307045\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 122764546.\n --> test:1:1\n |\n 1 | 122764546\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 356336181.\n --> test:1:1\n |\n 1 | 356336181\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 158370903.\n --> test:1:1\n |\n 1 | 158370903\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 774460877.\n --> test:1:1\n |\n 1 | 774460877\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 557174131.\n --> test:1:1\n |\n 1 | 557174131\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 492401267.\n --> test:1:1\n |\n 1 | 492401267\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 893445620.\n --> test:1:1\n |\n 1 | 893445620\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 957757048.\n --> test:1:1\n |\n 1 | 957757048\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 721540649.\n --> test:1:1\n |\n 1 | 721540649\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 390746493.\n --> test:1:1\n |\n 1 | 390746493\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 211251725.\n --> test:1:1\n |\n 1 | 211251725\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 938266114.\n --> test:1:1\n |\n 1 | 938266114\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 156985870.\n --> test:1:1\n |\n 1 | 156985870\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 703831126.\n --> test:1:1\n |\n 1 | 703831126\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 729964155.\n --> test:1:1\n |\n 1 | 729964155\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 988151305.\n --> test:1:1\n |\n 1 | 988151305\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 320872435.\n --> test:1:1\n |\n 1 | 320872435\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 719287167.\n --> test:1:1\n |\n 1 | 719287167\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 152289486.\n --> test:1:1\n |\n 1 | 152289486\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 740067975.\n --> test:1:1\n |\n 1 | 740067975\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 728627816.\n --> test:1:1\n |\n 1 | 728627816\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 385008978.\n --> test:1:1\n |\n 1 | 385008978\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 553967635.\n --> test:1:1\n |\n 1 | 553967635\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 71980713.\n --> test:1:1\n |\n 1 | 71980713\n | ^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 519444716.\n --> test:1:1\n |\n 1 | 519444716\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 116499965.\n --> test:1:1\n |\n 1 | 116499965\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 717422268.\n --> test:1:1\n |\n 1 | 717422268\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 18966279.\n --> test:1:1\n |\n 1 | 18966279\n | ^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 22458638.\n --> test:1:1\n |\n 1 | 22458638\n | ^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 857282620.\n --> test:1:1\n |\n 1 | 857282620\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 920675898.\n --> test:1:1\n |\n 1 | 920675898\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 762235516.\n --> test:1:1\n |\n 1 | 762235516\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 469018377.\n --> test:1:1\n |\n 1 | 469018377\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 199986521.\n --> test:1:1\n |\n 1 | 199986521\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 536679358.\n --> test:1:1\n |\n 1 | 536679358\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 591399452.\n --> test:1:1\n |\n 1 | 591399452\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 83083158.\n --> test:1:1\n |\n 1 | 83083158\n | ^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 599449051.\n --> test:1:1\n |\n 1 | 599449051\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 445442318.\n --> test:1:1\n |\n 1 | 445442318\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 585486590.\n --> test:1:1\n |\n 1 | 585486590\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 209278800.\n --> test:1:1\n |\n 1 | 209278800\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 873568117.\n --> test:1:1\n |\n 1 | 873568117\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 664470940.\n --> test:1:1\n |\n 1 | 664470940\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 465262783.\n --> test:1:1\n |\n 1 | 465262783\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 605652874.\n --> test:1:1\n |\n 1 | 605652874\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 376803940.\n --> test:1:1\n |\n 1 | 376803940\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 965247040.\n --> test:1:1\n |\n 1 | 965247040\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 598474509.\n --> test:1:1\n |\n 1 | 598474509\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 845119918.\n --> test:1:1\n |\n 1 | 845119918\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 648159133.\n --> test:1:1\n |\n 1 | 648159133\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 669051032.\n --> test:1:1\n |\n 1 | 669051032\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 800600261.\n --> test:1:1\n |\n 1 | 800600261\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 434689764.\n --> test:1:1\n |\n 1 | 434689764\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 520060080.\n --> test:1:1\n |\n 1 | 520060080\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 804659385.\n --> test:1:1\n |\n 1 | 804659385\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 537828058.\n --> test:1:1\n |\n 1 | 537828058\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 716600292.\n --> test:1:1\n |\n 1 | 716600292\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 387020273.\n --> test:1:1\n |\n 1 | 387020273\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 199375617.\n --> test:1:1\n |\n 1 | 199375617\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 680337189.\n --> test:1:1\n |\n 1 | 680337189\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 818479931.\n --> test:1:1\n |\n 1 | 818479931\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 893693281.\n --> test:1:1\n |\n 1 | 893693281\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 87377802.\n --> test:1:1\n |\n 1 | 87377802\n | ^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 84699261.\n --> test:1:1\n |\n 1 | 84699261\n | ^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 292826090.\n --> test:1:1\n |\n 1 | 292826090\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 569171405.\n --> test:1:1\n |\n 1 | 569171405\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 387436237.\n --> test:1:1\n |\n 1 | 387436237\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 150682190.\n --> test:1:1\n |\n 1 | 150682190\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 888770419.\n --> test:1:1\n |\n 1 | 888770419\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 824696431.\n --> test:1:1\n |\n 1 | 824696431\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 765659803.\n --> test:1:1\n |\n 1 | 765659803\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 270163693.\n --> test:1:1\n |\n 1 | 270163693\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 427940240.\n --> test:1:1\n |\n 1 | 427940240\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 504997332.\n --> test:1:1\n |\n 1 | 504997332\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 337808338.\n --> test:1:1\n |\n 1 | 337808338\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 907200008.\n --> test:1:1\n |\n 1 | 907200008\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 757177889.\n --> test:1:1\n |\n 1 | 757177889\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 696697188.\n --> test:1:1\n |\n 1 | 696697188\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 41376051.\n --> test:1:1\n |\n 1 | 41376051\n | ^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 496293518.\n --> test:1:1\n |\n 1 | 496293518\n | ^^^^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 251218820.\n --> test:1:1\n |\n 1 | 251218820\n | ^^^^^^^^^" + - "Error [EPAR0370027]: 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 [EPAR0370027]: 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 [EPAR0370027]: 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 [EPAR0370027]: 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 [EPAR0370027]: 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 [EPAR0370027]: 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 [EPAR0370027]: 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 [EPAR0370027]: 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 [EPAR0370027]: 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 [EPAR0370027]: 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 [EPAR0370027]: 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 [EPAR0370027]: 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 [EPAR0370027]: 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 [EPAR0370027]: 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 [EPAR0370027]: 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 [EPAR0370027]: 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 [EPAR0370027]: 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 [EPAR0370027]: 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 [EPAR0370027]: 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 [EPAR0370027]: 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 [EPAR0370027]: 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 [EPAR0370027]: 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 [EPAR0370027]: 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 [EPAR0370027]: 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 [EPAR0370027]: 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 [EPAR0370027]: 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 [EPAR0370027]: 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 [EPAR0370027]: 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 [EPAR0370027]: 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 [EPAR0370027]: 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 [EPAR0370027]: 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 [EPAR0370027]: 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 [EPAR0370027]: 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 [EPAR0370027]: 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 [EPAR0370027]: 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 [EPAR0370027]: 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 [EPAR0370027]: 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 [EPAR0370027]: 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 [EPAR0370027]: 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 [EPAR0370027]: 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 [EPAR0370027]: 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 [EPAR0370027]: 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 [EPAR0370027]: 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 [EPAR0370027]: 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 [EPAR0370027]: 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 [EPAR0370027]: 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 [EPAR0370027]: 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 [EPAR0370027]: 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 [EPAR0370027]: 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 [EPAR0370027]: 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 [EPAR0370027]: 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 [EPAR0370027]: 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 [EPAR0370027]: Could not parse the implicit value: 251218820.\n --> test:1:1\n |\n 1 | 251218820\n | ^^^^^^^^^" diff --git a/tests/expectations/parser/parser/expression/literal/string_fail.out b/tests/expectations/parser/parser/expression/literal/string_fail.out index 14a328fcf3..ae6dbffba1 100644 --- a/tests/expectations/parser/parser/expression/literal/string_fail.out +++ b/tests/expectations/parser/parser/expression/literal/string_fail.out @@ -2,7 +2,7 @@ namespace: Token expectation: Fail outputs: - - "Error [EPAR0370023]: Expected a closed string but found `Hello world!`." - - "Error [EPAR0370023]: Expected a closed string but found `\\`." - - "Error [EPAR0370023]: Expected a closed string but found `⭇😍;`." - - "Error [EPAR0370040]: Unicode bidi override code point encountered." + - "Error [EPAR0370022]: Expected a closed string but found `Hello world!`." + - "Error [EPAR0370022]: Expected a closed string but found `\\`." + - "Error [EPAR0370022]: Expected a closed string but found `⭇😍;`." + - "Error [EPAR0370039]: Unicode bidi override code point encountered." diff --git a/tests/expectations/parser/parser/expression/token_format.out b/tests/expectations/parser/parser/expression/token_format.out index fa1afb7906..2737854aaa 100644 --- a/tests/expectations/parser/parser/expression/token_format.out +++ b/tests/expectations/parser/parser/expression/token_format.out @@ -2,15 +2,15 @@ namespace: ParseExpression expectation: Fail outputs: - - "Error [EPAR0370026]: Could not lex the following content: `~`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `~`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `~`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `~`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `~`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `~`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `'h'`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `@test`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'h'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `@test`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `~`.\n" - "Error [EPAR0370009]: unexpected string: expected 'expression', got '&&'\n --> test:1:1\n |\n 1 | &&\n | ^^" - "Error [EPAR0370009]: unexpected string: expected 'expression', got '||'\n --> test:1:1\n |\n 1 | ||\n | ^^" - "Error [EPAR0370009]: unexpected string: expected 'expression', got '=='\n --> test:1:1\n |\n 1 | ==\n | ^^" @@ -46,22 +46,22 @@ outputs: - "Error [EPAR0370009]: unexpected string: expected 'expression', got '?'\n --> test:1:1\n |\n 1 | ?\n | ^" - "Error [EPAR0370009]: unexpected string: expected 'expression', got '->'\n --> test:1:1\n |\n 1 | ->\n | ^^" - "Error [EPAR0370009]: unexpected string: expected 'expression', got '_'\n --> test:1:1\n |\n 1 | _\n | ^" - - "Error [EPAR0370026]: Could not lex the following content: `~`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `~`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `~`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `~`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `~`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `~`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `~`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `~`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `~`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `~`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `~`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `~`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `~`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `~`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `~`.\n" - - "Error [EPAR0370026]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `~`.\n" - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'console'\n --> test:1:1\n |\n 1 | console\n | ^^^^^^^" - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'const'\n --> test:1:1\n |\n 1 | const\n | ^^^^^" - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'else'\n --> test:1:1\n |\n 1 | else\n | ^^^^" diff --git a/tests/expectations/parser/parser/functions/annotated_arg_not_ident.out b/tests/expectations/parser/parser/functions/annotated_arg_not_ident.out index 27d2a1f3e8..c626274c0b 100644 --- a/tests/expectations/parser/parser/functions/annotated_arg_not_ident.out +++ b/tests/expectations/parser/parser/functions/annotated_arg_not_ident.out @@ -2,4 +2,4 @@ namespace: Parse expectation: Fail outputs: - - "Error [EPAR0370026]: Could not lex the following content: `@foo(?,`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `@foo(?,`.\n" diff --git a/tests/expectations/parser/parser/functions/annotated_context_fail.out b/tests/expectations/parser/parser/functions/annotated_context_fail.out index e280b46b4d..6acbb5cbd9 100644 --- a/tests/expectations/parser/parser/functions/annotated_context_fail.out +++ b/tests/expectations/parser/parser/functions/annotated_context_fail.out @@ -2,4 +2,4 @@ namespace: Parse expectation: Fail outputs: - - "Error [EPAR0370026]: Could not lex the following content: `@context`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `@context`.\n" diff --git a/tests/expectations/parser/parser/functions/bounded_recursion.out b/tests/expectations/parser/parser/functions/bounded_recursion.out index 715d3e4198..6fd28bf937 100644 --- a/tests/expectations/parser/parser/functions/bounded_recursion.out +++ b/tests/expectations/parser/parser/functions/bounded_recursion.out @@ -2,4 +2,4 @@ namespace: Parse expectation: Fail outputs: - - "Error [EPAR0370041]: Expression statements are no longer supported.\n --> test:5:9\n |\n 5 | x(y+1u32);\n | ^^^^^^^^^^\nError [EPAR0370041]: Expression statements are no longer supported.\n --> test:10:5\n |\n 10 | x(1u32);\n | ^^^^^^^^" + - "Error [EPAR0370040]: Expression statements are no longer supported.\n --> test:5:9\n |\n 5 | x(y+1u32);\n | ^^^^^^^^^^\nError [EPAR0370040]: Expression statements are no longer supported.\n --> test:10:5\n |\n 10 | x(1u32);\n | ^^^^^^^^" diff --git a/tests/expectations/parser/parser/functions/escape_fail.out b/tests/expectations/parser/parser/functions/escape_fail.out index 508bfd365e..221ad249f9 100644 --- a/tests/expectations/parser/parser/functions/escape_fail.out +++ b/tests/expectations/parser/parser/functions/escape_fail.out @@ -2,4 +2,4 @@ namespace: Parse expectation: Fail outputs: - - "Error [EPAR0370026]: Could not lex the following content: `\\`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `\\`.\n" diff --git a/tests/expectations/parser/parser/functions/infinite_recursion.out b/tests/expectations/parser/parser/functions/infinite_recursion.out index 2361bcd85d..cb88fff633 100644 --- a/tests/expectations/parser/parser/functions/infinite_recursion.out +++ b/tests/expectations/parser/parser/functions/infinite_recursion.out @@ -2,4 +2,4 @@ namespace: Parse expectation: Fail outputs: - - "Error [EPAR0370041]: Expression statements are no longer supported.\n --> test:4:5\n |\n 4 | inf();\n | ^^^^^^\nError [EPAR0370041]: Expression statements are no longer supported.\n --> test:8:5\n |\n 8 | inf();\n | ^^^^^^" + - "Error [EPAR0370040]: Expression statements are no longer supported.\n --> test:4:5\n |\n 4 | inf();\n | ^^^^^^\nError [EPAR0370040]: Expression statements are no longer supported.\n --> test:8:5\n |\n 8 | inf();\n | ^^^^^^" diff --git a/tests/expectations/parser/parser/functions/public_const_param_fail.out b/tests/expectations/parser/parser/functions/public_const_param_fail.out index 67e772a2d4..ed2182e221 100644 --- a/tests/expectations/parser/parser/functions/public_const_param_fail.out +++ b/tests/expectations/parser/parser/functions/public_const_param_fail.out @@ -2,4 +2,4 @@ namespace: Parse expectation: Fail outputs: - - "Error [EPAR0370038]: 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 [EPAR0370037]: A parameter cannot be both public and const.\n --> test:3:20\n |\n 3 | function x(x: u32, public const y: i32) {\n | ^^^^^^^^^^^^" diff --git a/tests/expectations/parser/parser/functions/test_keyword_fail.out b/tests/expectations/parser/parser/functions/test_keyword_fail.out index e32ec52ec0..25be683800 100644 --- a/tests/expectations/parser/parser/functions/test_keyword_fail.out +++ b/tests/expectations/parser/parser/functions/test_keyword_fail.out @@ -2,4 +2,4 @@ namespace: Parse expectation: Fail outputs: - - "Error [EPAR0370013]: \"test function...\" is deprecated. Did you mean @test annotation?\n --> test:3:1\n |\n 3 | test main() {}\n | ^^^^" + - "Error [EPAR0370012]: \"test function...\" is deprecated. Did you mean @test annotation?\n --> test:3:1\n |\n 3 | test main() {}\n | ^^^^" diff --git a/tests/expectations/parser/parser/inputs/input_public_constant_fail.out b/tests/expectations/parser/parser/inputs/input_public_constant_fail.out index 9e54347d3d..63ff1e05d0 100644 --- a/tests/expectations/parser/parser/inputs/input_public_constant_fail.out +++ b/tests/expectations/parser/parser/inputs/input_public_constant_fail.out @@ -2,4 +2,4 @@ namespace: Input expectation: Fail outputs: - - "Error [EPAR0370038]: A parameter cannot be both public and const.\n --> test:4:1\n |\n 4 | public constant a: bool = true;\n | ^^^^^^^^^^^^^^^" + - "Error [EPAR0370037]: A parameter cannot be both public and const.\n --> test:4:1\n |\n 4 | public constant a: bool = true;\n | ^^^^^^^^^^^^^^^" diff --git a/tests/expectations/parser/parser/program/backslash_eof.out b/tests/expectations/parser/parser/program/backslash_eof.out index 508bfd365e..221ad249f9 100644 --- a/tests/expectations/parser/parser/program/backslash_eof.out +++ b/tests/expectations/parser/parser/program/backslash_eof.out @@ -2,4 +2,4 @@ namespace: Parse expectation: Fail outputs: - - "Error [EPAR0370026]: Could not lex the following content: `\\`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `\\`.\n" diff --git a/tests/expectations/parser/parser/program/bidi_comment_2_fail.out b/tests/expectations/parser/parser/program/bidi_comment_2_fail.out index fadadbd1f4..a80e1a460b 100644 --- a/tests/expectations/parser/parser/program/bidi_comment_2_fail.out +++ b/tests/expectations/parser/parser/program/bidi_comment_2_fail.out @@ -2,4 +2,4 @@ namespace: Parse expectation: Fail outputs: - - "Error [EPAR0370040]: Unicode bidi override code point encountered." + - "Error [EPAR0370039]: Unicode bidi override code point encountered." diff --git a/tests/expectations/parser/parser/program/bidi_comment_fail.out b/tests/expectations/parser/parser/program/bidi_comment_fail.out index fadadbd1f4..a80e1a460b 100644 --- a/tests/expectations/parser/parser/program/bidi_comment_fail.out +++ b/tests/expectations/parser/parser/program/bidi_comment_fail.out @@ -2,4 +2,4 @@ namespace: Parse expectation: Fail outputs: - - "Error [EPAR0370040]: Unicode bidi override code point encountered." + - "Error [EPAR0370039]: Unicode bidi override code point encountered." diff --git a/tests/expectations/parser/parser/program/dollar_eof.out b/tests/expectations/parser/parser/program/dollar_eof.out index 5859573e7d..f9d1465672 100644 --- a/tests/expectations/parser/parser/program/dollar_eof.out +++ b/tests/expectations/parser/parser/program/dollar_eof.out @@ -2,4 +2,4 @@ namespace: Parse expectation: Fail outputs: - - "Error [EPAR0370026]: Could not lex the following content: `$`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `$`.\n" diff --git a/tests/expectations/parser/parser/program/escape_u8_eof.out b/tests/expectations/parser/parser/program/escape_u8_eof.out index 82882336dc..ec87b6cf6b 100644 --- a/tests/expectations/parser/parser/program/escape_u8_eof.out +++ b/tests/expectations/parser/parser/program/escape_u8_eof.out @@ -2,4 +2,4 @@ namespace: Parse expectation: Fail outputs: - - "Error [EPAR0370026]: Could not lex the following content: `\\1u8`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `\\1u8`.\n" diff --git a/tests/expectations/parser/parser/program/hex_eof.out b/tests/expectations/parser/parser/program/hex_eof.out index debae16a1d..ee72b9f795 100644 --- a/tests/expectations/parser/parser/program/hex_eof.out +++ b/tests/expectations/parser/parser/program/hex_eof.out @@ -2,4 +2,4 @@ namespace: Parse expectation: Fail outputs: - - "Error [EPAR0370032]: A hex number `0x..` was provided but hex is not allowed." + - "Error [EPAR0370031]: A hex number `0x..` was provided but hex is not allowed." diff --git a/tests/expectations/parser/parser/program/q_eof.out b/tests/expectations/parser/parser/program/q_eof.out index c03ef62046..4d50fea90b 100644 --- a/tests/expectations/parser/parser/program/q_eof.out +++ b/tests/expectations/parser/parser/program/q_eof.out @@ -2,4 +2,4 @@ namespace: Parse expectation: Fail outputs: - - "Error [EPAR0370023]: Expected a closed string but found ``." + - "Error [EPAR0370022]: Expected a closed string but found ``." diff --git a/tests/expectations/parser/parser/program/sq_eof.out b/tests/expectations/parser/parser/program/sq_eof.out index 0be66ec303..9a455ff826 100644 --- a/tests/expectations/parser/parser/program/sq_eof.out +++ b/tests/expectations/parser/parser/program/sq_eof.out @@ -2,4 +2,4 @@ namespace: Parse expectation: Fail outputs: - - "Error [EPAR0370026]: Could not lex the following content: `'`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'`.\n" diff --git a/tests/expectations/parser/parser/program/tilde_eof.out b/tests/expectations/parser/parser/program/tilde_eof.out index cacf961a27..704ec1c2b3 100644 --- a/tests/expectations/parser/parser/program/tilde_eof.out +++ b/tests/expectations/parser/parser/program/tilde_eof.out @@ -2,4 +2,4 @@ namespace: Parse expectation: Fail outputs: - - "Error [EPAR0370026]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `~`.\n" diff --git a/tests/expectations/parser/parser/program/unclosed_unicode_eof_fail.out b/tests/expectations/parser/parser/program/unclosed_unicode_eof_fail.out index 33379b8191..8685d7b62e 100644 --- a/tests/expectations/parser/parser/program/unclosed_unicode_eof_fail.out +++ b/tests/expectations/parser/parser/program/unclosed_unicode_eof_fail.out @@ -2,4 +2,4 @@ namespace: Parse expectation: Fail outputs: - - "Error [EPAR0370026]: Could not lex the following content: `'\\u`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `'\\u`.\n" diff --git a/tests/expectations/parser/parser/statement/assign.out b/tests/expectations/parser/parser/statement/assign.out index 57fe826df0..a3e12f1b46 100644 --- a/tests/expectations/parser/parser/statement/assign.out +++ b/tests/expectations/parser/parser/statement/assign.out @@ -4,12 +4,8 @@ expectation: Pass outputs: - Assign: operation: Assign - assignee: - identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - accesses: [] - span: - lo: 0 - hi: 1 + place: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" value: Identifier: "{\"name\":\"expr\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":8}\"}" span: @@ -17,12 +13,8 @@ outputs: hi: 8 - Assign: operation: Assign - assignee: - identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - accesses: [] - span: - lo: 0 - hi: 1 + place: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" value: Binary: left: @@ -38,12 +30,8 @@ outputs: hi: 7 - Assign: operation: Assign - assignee: - identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - accesses: [] - span: - lo: 0 - hi: 1 + place: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" value: Call: function: diff --git a/tests/expectations/parser/parser/statement/console_fail.out b/tests/expectations/parser/parser/statement/console_fail.out index 58ac677d34..ca4fd249c3 100644 --- a/tests/expectations/parser/parser/statement/console_fail.out +++ b/tests/expectations/parser/parser/statement/console_fail.out @@ -2,6 +2,6 @@ namespace: ParseStatement expectation: Fail outputs: - - "Error [EPAR0370040]: Unicode bidi override code point encountered." + - "Error [EPAR0370039]: Unicode bidi override code point encountered." - "Error [EPAR0370009]: unexpected string: expected 'formatted static_string', got '1'\n --> test:1:13\n |\n 1 | console.log(1);\n | ^" - "Error [EPAR0370007]: unexpected identifier: expected 'assert', 'error', 'log' -- got 'test'\n --> test:1:9\n |\n 1 | console.test();\n | ^^^^" diff --git a/tests/expectations/parser/parser/statement/definition_fail.out b/tests/expectations/parser/parser/statement/definition_fail.out index 30cfa2024c..1cfbb44106 100644 --- a/tests/expectations/parser/parser/statement/definition_fail.out +++ b/tests/expectations/parser/parser/statement/definition_fail.out @@ -42,6 +42,6 @@ outputs: - "Error [EPAR0370005]: expected 'address', 'bool', 'field', 'group', 'scalar', 'string', 'i8', 'i16', 'i32', 'i64', 'i128', 'u8', 'u16', 'u32', 'u64', 'u128' -- got '['\n --> test:1:8\n |\n 1 | let x: [u8;\n | ^" - "Error [EPAR0370005]: expected 'address', 'bool', 'field', 'group', 'scalar', 'string', 'i8', 'i16', 'i32', 'i64', 'i128', 'u8', 'u16', 'u32', 'u64', 'u128' -- got '['\n --> test:1:8\n |\n 1 | let x: [u8; 1u8] = [1,\n | ^" - "Error [EPAR0370009]: unexpected string: expected 'expression', got ']'\n --> test:1:15\n |\n 1 | let dbg: u8 = ];\n | ^" - - "Error [EPAR0370026]: Could not lex the following content: `🦀:`.\n" - - "Error [EPAR0370035]: do not put parens around single variable names\n --> test:1:6\n |\n 1 | let (x) = ...;\n | ^\nError [EPAR0370005]: expected : -- got '='\n --> test:1:9\n |\n 1 | let (x) = ...;\n | ^" - - "Error [EPAR0370035]: do not put parens around single variable names\n --> test:1:6\n |\n 1 | let (x,) = ...;\n | ^\nError [EPAR0370005]: expected : -- got '='\n --> test:1:10\n |\n 1 | let (x,) = ...;\n | ^" + - "Error [EPAR0370025]: Could not lex the following content: `🦀:`.\n" + - "Error [EPAR0370034]: do not put parens around single variable names\n --> test:1:6\n |\n 1 | let (x) = ...;\n | ^\nError [EPAR0370005]: expected : -- got '='\n --> test:1:9\n |\n 1 | let (x) = ...;\n | ^" + - "Error [EPAR0370034]: do not put parens around single variable names\n --> test:1:6\n |\n 1 | let (x,) = ...;\n | ^\nError [EPAR0370005]: expected : -- got '='\n --> test:1:10\n |\n 1 | let (x,) = ...;\n | ^" diff --git a/tests/expectations/parser/parser/statement/expression.out b/tests/expectations/parser/parser/statement/expression.out index 99e7a19ce7..1e347d5594 100644 --- a/tests/expectations/parser/parser/statement/expression.out +++ b/tests/expectations/parser/parser/statement/expression.out @@ -2,6 +2,6 @@ namespace: ParseStatement expectation: Fail outputs: - - "Error [EPAR0370041]: Expression statements are no longer supported.\n --> test:1:1\n |\n 1 | expr;\n | ^^^^^" - - "Error [EPAR0370041]: Expression statements are no longer supported.\n --> test:1:1\n |\n 1 | x+y;\n | ^^^^" - - "Error [EPAR0370041]: Expression statements are no longer supported.\n --> test:1:1\n |\n 1 | x();\n | ^^^^" + - "Error [EPAR0370040]: Expression statements are no longer supported.\n --> test:1:1\n |\n 1 | expr;\n | ^^^^^" + - "Error [EPAR0370040]: Expression statements are no longer supported.\n --> test:1:1\n |\n 1 | x+y;\n | ^^^^" + - "Error [EPAR0370040]: Expression statements are no longer supported.\n --> test:1:1\n |\n 1 | x();\n | ^^^^" diff --git a/tests/expectations/parser/parser/statement/expression_fail.out b/tests/expectations/parser/parser/statement/expression_fail.out index b384e27692..d8b6dda7e6 100644 --- a/tests/expectations/parser/parser/statement/expression_fail.out +++ b/tests/expectations/parser/parser/statement/expression_fail.out @@ -4,7 +4,7 @@ expectation: Fail outputs: - "Error [EPAR0370009]: unexpected string: expected 'expression', got ']'\n --> test:1:2\n |\n 1 | (];\n | ^" - "Error [EPAR0370009]: unexpected string: expected 'expression', got '['\n --> test:1:1\n |\n 1 | [);\n | ^" - - "Error [EPAR0370026]: Could not lex the following content: `\\y`.\n" + - "Error [EPAR0370025]: Could not lex the following content: `\\y`.\n" - "Error [EPAR0370009]: unexpected string: expected 'expression', got ';'\n --> test:1:6\n |\n 1 | (x,y|;\n | ^" - "Error [EPAR0370005]: expected ; -- got '['\n --> test:1:2\n |\n 1 | x[};\n | ^" - "Error [EPAR0370005]: expected ) -- got ']'\n --> test:1:6\n |\n 1 | (x, y];\n | ^" diff --git a/tests/expectations/parser/parser/statement/hex_int_fail.out b/tests/expectations/parser/parser/statement/hex_int_fail.out index e8dd7f6dbf..6a8f6934c1 100644 --- a/tests/expectations/parser/parser/statement/hex_int_fail.out +++ b/tests/expectations/parser/parser/statement/hex_int_fail.out @@ -2,6 +2,6 @@ namespace: ParseStatement expectation: Fail outputs: - - "Error [EPAR0370032]: A hex number `0x..` was provided but hex is not allowed." - - "Error [EPAR0370032]: A hex number `0x..` was provided but hex is not allowed." - - "Error [EPAR0370032]: 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 [EPAR0370031]: A hex number `0x..` was provided but hex is not allowed." + - "Error [EPAR0370031]: A hex number `0x..` was provided but hex is not allowed." diff --git a/tests/expectations/parser/parser/statement/return_fail.out b/tests/expectations/parser/parser/statement/return_fail.out index dce6f7b319..d7c60d2359 100644 --- a/tests/expectations/parser/parser/statement/return_fail.out +++ b/tests/expectations/parser/parser/statement/return_fail.out @@ -3,5 +3,5 @@ namespace: ParseStatement expectation: Fail outputs: - "Error [EPAR0370009]: unexpected string: expected 'expression', got ''\n --> test:1:1\n |\n 1 | return\n | ^^^^^^" - - "Error [EPAR0370028]: Could not parse the implicit value: 5.\n --> test:1:8\n |\n 1 | return 5\n | ^" + - "Error [EPAR0370027]: Could not parse the implicit value: 5.\n --> test:1:8\n |\n 1 | return 5\n | ^" - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:2:1\n |\n 2 | if x {}\n | ^^" diff --git a/tests/expectations/parser/parser/unreachable/define.out b/tests/expectations/parser/parser/unreachable/define.out index 597d069f53..aed670836d 100644 --- a/tests/expectations/parser/parser/unreachable/define.out +++ b/tests/expectations/parser/parser/unreachable/define.out @@ -18,7 +18,6 @@ outputs: - "Error [EPAR0370009]: unexpected string: expected 'expression', got '_'\n --> test:1:1\n |\n 1 | _ x = 10u8;\n | ^" - "Error [EPAR0370009]: unexpected string: expected 'expression', got '='\n --> test:1:1\n |\n 1 | = x = 10u8;\n | ^" - "Error [EPAR0370009]: unexpected string: expected 'expression', got '=='\n --> test:1:1\n |\n 1 | == x = 10u8;\n | ^^" - - "Error [EPAR0370011]: invalid assignment target\n --> test:1:1\n |\n 1 | ! x = 10u8;\n | ^^^" - "Error [EPAR0370009]: unexpected string: expected 'expression', got '!='\n --> test:1:1\n |\n 1 | != x = 10u8;\n | ^^" - "Error [EPAR0370009]: unexpected string: expected 'expression', got '>'\n --> test:1:1\n |\n 1 | > x = 10u8;\n | ^" - "Error [EPAR0370009]: unexpected string: expected 'expression', got '>='\n --> test:1:1\n |\n 1 | >= x = 10u8;\n | ^^" @@ -47,4 +46,4 @@ outputs: - "Error [EPAR0370005]: expected ; -- got 'x'\n --> test:1:6\n |\n 1 | Self x = 10u8;\n | ^" - "Error [EPAR0370005]: expected ; -- got 'x'\n --> test:1:6\n |\n 1 | true x = 10u8;\n | ^" - "Error [EPAR0370005]: expected ; -- got 'x'\n --> test:1:7\n |\n 1 | false x = 10u8;\n | ^" - - "Error [EPAR0370028]: Could not parse the implicit value: 0.\n --> test:1:1\n |\n 1 | 0 x = 10u8;\n | ^" + - "Error [EPAR0370027]: Could not parse the implicit value: 0.\n --> test:1:1\n |\n 1 | 0 x = 10u8;\n | ^" diff --git a/tests/expectations/parser/parser/unreachable/math_op_fail.out b/tests/expectations/parser/parser/unreachable/math_op_fail.out index 236164d5eb..18d1c2cf37 100644 --- a/tests/expectations/parser/parser/unreachable/math_op_fail.out +++ b/tests/expectations/parser/parser/unreachable/math_op_fail.out @@ -40,7 +40,7 @@ outputs: - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a true b;\n | ^" - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a false b;\n | ^" - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a 0 b;\n | ^" - - "Error [EPAR0370041]: Expression statements are no longer supported.\n --> test:1:1\n |\n 1 | x;=b;\n | ^^" + - "Error [EPAR0370040]: Expression statements are no longer supported.\n --> test:1:1\n |\n 1 | x;=b;\n | ^^" - "Error [EPAR0370009]: unexpected string: expected 'ident', got '='\n --> test:1:3\n |\n 1 | x.=b;\n | ^" - "Error [EPAR0370005]: expected ; -- got ','\n --> test:1:2\n |\n 1 | x,=b; // 43\n | ^" - "Error [EPAR0370005]: expected ; -- got '['\n --> test:1:2\n |\n 1 | x[=b;\n | ^" @@ -57,8 +57,8 @@ outputs: - "Error [EPAR0370009]: unexpected string: expected 'expression', got '='\n --> test:1:4\n |\n 1 | x<==b;\n | ^" - "Error [EPAR0370005]: expected ; -- got '..'\n --> test:1:2\n |\n 1 | x..=b;\n | ^^" - "Error [EPAR0370009]: unexpected string: expected 'expression', got '='\n --> test:1:3\n |\n 1 | x&=b;\n | ^" - - "Error [EPAR0370041]: Expression statements are no longer supported.\n --> test:1:1\n |\n 1 | x==b;\n | ^^^^^" - - "Error [EPAR0370041]: Expression statements are no longer supported.\n --> test:1:1\n |\n 1 | x!=b;\n | ^^^^^" - - "Error [EPAR0370041]: Expression statements are no longer supported.\n --> test:1:1\n |\n 1 | x>=b;\n | ^^^^^" - - "Error [EPAR0370041]: Expression statements are no longer supported.\n --> test:1:1\n |\n 1 | x<=b;\n | ^^^^^" - - "Error [EPAR0370041]: Expression statements are no longer supported.\n --> test:1:1\n |\n 1 | x>=b;\n | ^^^^^" + - "Error [EPAR0370040]: Expression statements are no longer supported.\n --> test:1:1\n |\n 1 | x==b;\n | ^^^^^" + - "Error [EPAR0370040]: Expression statements are no longer supported.\n --> test:1:1\n |\n 1 | x!=b;\n | ^^^^^" + - "Error [EPAR0370040]: Expression statements are no longer supported.\n --> test:1:1\n |\n 1 | x>=b;\n | ^^^^^" + - "Error [EPAR0370040]: Expression statements are no longer supported.\n --> test:1:1\n |\n 1 | x<=b;\n | ^^^^^" + - "Error [EPAR0370040]: Expression statements are no longer supported.\n --> test:1:1\n |\n 1 | x>=b;\n | ^^^^^" diff --git a/tests/expectations/parser/parser/unreachable/math_op_pass.out b/tests/expectations/parser/parser/unreachable/math_op_pass.out index bb61e84671..99457767f3 100644 --- a/tests/expectations/parser/parser/unreachable/math_op_pass.out +++ b/tests/expectations/parser/parser/unreachable/math_op_pass.out @@ -165,12 +165,8 @@ outputs: hi: 17 - Assign: operation: Assign - assignee: - identifier: "{\"name\":\"x_\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":2}\"}" - accesses: [] - span: - lo: 0 - hi: 2 + place: + Identifier: "{\"name\":\"x_\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":2}\"}" value: Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":3,\\\"hi\\\":4}\"}" span: @@ -178,12 +174,8 @@ outputs: hi: 4 - Assign: operation: Assign - assignee: - identifier: "{\"name\":\"xconsole\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":8}\"}" - accesses: [] - span: - lo: 0 - hi: 8 + place: + Identifier: "{\"name\":\"xconsole\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":8}\"}" value: Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" span: @@ -191,12 +183,8 @@ outputs: hi: 10 - Assign: operation: Assign - assignee: - identifier: "{\"name\":\"xconst\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":6}\"}" - accesses: [] - span: - lo: 0 - hi: 6 + place: + Identifier: "{\"name\":\"xconst\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":6}\"}" value: Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" span: @@ -204,12 +192,8 @@ outputs: hi: 8 - Assign: operation: Assign - assignee: - identifier: "{\"name\":\"xlet\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" - accesses: [] - span: - lo: 0 - hi: 4 + place: + Identifier: "{\"name\":\"xlet\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" value: Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" span: @@ -217,12 +201,8 @@ outputs: hi: 6 - Assign: operation: Assign - assignee: - identifier: "{\"name\":\"xfor\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" - accesses: [] - span: - lo: 0 - hi: 4 + place: + Identifier: "{\"name\":\"xfor\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" value: Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" span: @@ -230,12 +210,8 @@ outputs: hi: 6 - Assign: operation: Assign - assignee: - identifier: "{\"name\":\"xif\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":3}\"}" - accesses: [] - span: - lo: 0 - hi: 3 + place: + Identifier: "{\"name\":\"xif\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":3}\"}" value: Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" span: @@ -243,12 +219,8 @@ outputs: hi: 5 - Assign: operation: Assign - assignee: - identifier: "{\"name\":\"xelse\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":5}\"}" - accesses: [] - span: - lo: 0 - hi: 5 + place: + Identifier: "{\"name\":\"xelse\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":5}\"}" value: Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" span: @@ -256,12 +228,8 @@ outputs: hi: 7 - Assign: operation: Assign - assignee: - identifier: "{\"name\":\"xi8\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":3}\"}" - accesses: [] - span: - lo: 0 - hi: 3 + place: + Identifier: "{\"name\":\"xi8\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":3}\"}" value: Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" span: @@ -269,12 +237,8 @@ outputs: hi: 5 - Assign: operation: Assign - assignee: - identifier: "{\"name\":\"xi16\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" - accesses: [] - span: - lo: 0 - hi: 4 + place: + Identifier: "{\"name\":\"xi16\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" value: Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" span: @@ -282,12 +246,8 @@ outputs: hi: 6 - Assign: operation: Assign - assignee: - identifier: "{\"name\":\"xi32\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" - accesses: [] - span: - lo: 0 - hi: 4 + place: + Identifier: "{\"name\":\"xi32\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" value: Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" span: @@ -295,12 +255,8 @@ outputs: hi: 6 - Assign: operation: Assign - assignee: - identifier: "{\"name\":\"xi64\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" - accesses: [] - span: - lo: 0 - hi: 4 + place: + Identifier: "{\"name\":\"xi64\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" value: Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" span: @@ -308,12 +264,8 @@ outputs: hi: 6 - Assign: operation: Assign - assignee: - identifier: "{\"name\":\"xi128\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":5}\"}" - accesses: [] - span: - lo: 0 - hi: 5 + place: + Identifier: "{\"name\":\"xi128\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":5}\"}" value: Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" span: @@ -321,12 +273,8 @@ outputs: hi: 7 - Assign: operation: Assign - assignee: - identifier: "{\"name\":\"xu8\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":3}\"}" - accesses: [] - span: - lo: 0 - hi: 3 + place: + Identifier: "{\"name\":\"xu8\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":3}\"}" value: Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" span: @@ -334,12 +282,8 @@ outputs: hi: 5 - Assign: operation: Assign - assignee: - identifier: "{\"name\":\"xu16\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" - accesses: [] - span: - lo: 0 - hi: 4 + place: + Identifier: "{\"name\":\"xu16\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" value: Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" span: @@ -347,12 +291,8 @@ outputs: hi: 6 - Assign: operation: Assign - assignee: - identifier: "{\"name\":\"xu32\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" - accesses: [] - span: - lo: 0 - hi: 4 + place: + Identifier: "{\"name\":\"xu32\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" value: Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" span: @@ -360,12 +300,8 @@ outputs: hi: 6 - Assign: operation: Assign - assignee: - identifier: "{\"name\":\"xu64\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" - accesses: [] - span: - lo: 0 - hi: 4 + place: + Identifier: "{\"name\":\"xu64\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" value: Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" span: @@ -373,12 +309,8 @@ outputs: hi: 6 - Assign: operation: Assign - assignee: - identifier: "{\"name\":\"xu128\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":5}\"}" - accesses: [] - span: - lo: 0 - hi: 5 + place: + Identifier: "{\"name\":\"xu128\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":5}\"}" value: Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" span: @@ -386,12 +318,8 @@ outputs: hi: 7 - Assign: operation: Assign - assignee: - identifier: "{\"name\":\"xreturn\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":7}\"}" - accesses: [] - span: - lo: 0 - hi: 7 + place: + Identifier: "{\"name\":\"xreturn\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":7}\"}" value: Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" span: @@ -399,12 +327,8 @@ outputs: hi: 9 - Assign: operation: Assign - assignee: - identifier: "{\"name\":\"xtrue\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":5}\"}" - accesses: [] - span: - lo: 0 - hi: 5 + place: + Identifier: "{\"name\":\"xtrue\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":5}\"}" value: Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" span: @@ -412,12 +336,8 @@ outputs: hi: 7 - Assign: operation: Assign - assignee: - identifier: "{\"name\":\"xfalse\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":6}\"}" - accesses: [] - span: - lo: 0 - hi: 6 + place: + Identifier: "{\"name\":\"xfalse\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":6}\"}" value: Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" span: @@ -425,12 +345,8 @@ outputs: hi: 8 - Assign: operation: Assign - assignee: - identifier: "{\"name\":\"x0\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":2}\"}" - accesses: [] - span: - lo: 0 - hi: 2 + place: + Identifier: "{\"name\":\"x0\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":2}\"}" value: Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":3,\\\"hi\\\":4}\"}" span: diff --git a/tests/parser/expression/literal/address_fail.leo b/tests/parser/expression/literal/address_fail.leo index 184713ec74..fb43d2e837 100644 --- a/tests/parser/expression/literal/address_fail.leo +++ b/tests/parser/expression/literal/address_fail.leo @@ -1,5 +1,5 @@ /* -namespace: Token +namespace: ParseExpression expectation: Fail */ aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d1aleo1 @@ -16,4 +16,4 @@ aleo1 aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d1aleo1 aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d11 -aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d1x +aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d1x + aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d1x diff --git a/tests/parser/expression/literal/string_fail.leo b/tests/parser/expression/literal/string_fail.leo index 96a3c0bfc0..04ce32d840 100644 --- a/tests/parser/expression/literal/string_fail.leo +++ b/tests/parser/expression/literal/string_fail.leo @@ -11,4 +11,3 @@ expectation: Fail "⭇😍; "2066:⁦" - diff --git a/tests/parser/unreachable/define.leo b/tests/parser/unreachable/define.leo index 2302acada1..b26290edd6 100644 --- a/tests/parser/unreachable/define.leo +++ b/tests/parser/unreachable/define.leo @@ -35,8 +35,6 @@ _ x = 10u8; == x = 10u8; -! x = 10u8; - != x = 10u8; > x = 10u8;