mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-25 02:22:44 +03:00
resolve master conflicts
This commit is contained in:
commit
1576f776f3
@ -186,18 +186,18 @@ jobs:
|
||||
export LEO=/home/circleci/project/project/bin/leo
|
||||
./project/.circleci/leo-setup.sh
|
||||
|
||||
leo-add-remove:
|
||||
docker:
|
||||
- image: cimg/rust:1.54.0
|
||||
resource_class: xlarge
|
||||
steps:
|
||||
- attach_workspace:
|
||||
at: /home/circleci/project/
|
||||
- run:
|
||||
name: leo add & remove
|
||||
command: |
|
||||
export LEO=/home/circleci/project/project/bin/leo
|
||||
./project/.circleci/leo-add-remove.sh
|
||||
# leo-add-remove:
|
||||
# docker:
|
||||
# - image: cimg/rust:1.54.0
|
||||
# resource_class: xlarge
|
||||
# steps:
|
||||
# - attach_workspace:
|
||||
# at: /home/circleci/project/
|
||||
# - run:
|
||||
# name: leo add & remove
|
||||
# command: |
|
||||
# export LEO=/home/circleci/project/project/bin/leo
|
||||
# ./project/.circleci/leo-add-remove.sh
|
||||
|
||||
leo-check-constraints:
|
||||
docker:
|
||||
@ -270,9 +270,9 @@ workflows:
|
||||
- leo-setup:
|
||||
requires:
|
||||
- leo-executable
|
||||
- leo-add-remove:
|
||||
requires:
|
||||
- leo-executable
|
||||
# - leo-add-remove:
|
||||
# requires:
|
||||
# - leo-executable
|
||||
- leo-check-constraints:
|
||||
requires:
|
||||
- leo-executable
|
||||
|
95
.github/workflows/acl2.yml
vendored
Normal file
95
.github/workflows/acl2.yml
vendored
Normal file
@ -0,0 +1,95 @@
|
||||
name: Leo-ACL2
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- staging
|
||||
- trying
|
||||
paths-ignore:
|
||||
- 'docs/**'
|
||||
- 'documentation/**'
|
||||
env:
|
||||
RUST_BACKTRACE: 1
|
||||
|
||||
# This job can only be run on linux (Ubuntu)
|
||||
jobs:
|
||||
acl2:
|
||||
name: leo-acl2
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install Rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: stable
|
||||
override: true
|
||||
|
||||
- name: Generate asts
|
||||
run: |
|
||||
cargo -q run -p leo-test-framework --bin tgc
|
||||
|
||||
# Pull the latest release from the leo-acl2-bin repo, and put it into the
|
||||
# repo/acl2 directory. After it's done, unpack the tgz file locally.
|
||||
- name: Pull tgc executable
|
||||
run: |
|
||||
mkdir acl2 && cd acl2;
|
||||
wget $(curl -s https://api.github.com/repos/AleoHQ/leo-acl2-bin/releases/latest \
|
||||
| grep "browser_download_url.*.tgz" \
|
||||
| cut -d : -f 2,3 \
|
||||
| tr -d \" \
|
||||
| xargs)
|
||||
|
||||
tar -xvzf $(ls)
|
||||
|
||||
# Using the prepared ASTs and the pulled and unzipped tgc run theorem generation.
|
||||
- name: Run tgc over ASTs
|
||||
run: |
|
||||
canonicalization_errors=();
|
||||
type_inference_errors=();
|
||||
for dir in `ls tmp/tgc`;
|
||||
do
|
||||
cd tmp/tgc/$dir; # enter the directory
|
||||
./../../../acl2/tgc canonicalization initial_ast.json canonicalization_ast.json canonicalization-theorem.lisp > canonicalization_result.out || canonicalization_errors+=("$dir");
|
||||
# Disabling Type inference for now
|
||||
# ./../../../acl2/tgc type-inference canonicalization_ast.json type_inferenced_ast.json type-inference-theorem.lisp > type_inference_result.out || type_inference_errors+=("$dir");
|
||||
cd ../../..
|
||||
done;
|
||||
|
||||
if [ ${#canonicalization_errors[@]} -eq 0 ]; then
|
||||
echo "Canonicalization - Success!"
|
||||
else
|
||||
echo "Canonicalization Failures:";
|
||||
for dir in ${canonicalization_errors[@]};
|
||||
do
|
||||
echo $dir;
|
||||
done;
|
||||
|
||||
echo "Attaching logs:"
|
||||
for dir in ${canonicalization_errors[@]};
|
||||
do
|
||||
cat tmp/tgc/$dir/canonicalization_result.out
|
||||
done;
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ${#type_inference_errors[@]} -eq 0 ]; then
|
||||
echo "Type Inference - Success!"
|
||||
else
|
||||
echo "Type Inference Failures:";
|
||||
for dir in ${type_inference_errors[@]};
|
||||
do
|
||||
echo $dir;
|
||||
done;
|
||||
|
||||
echo "Attaching logs:"
|
||||
for dir in ${type_inference_errors[@]};
|
||||
do
|
||||
cat tmp/tgc/$dir/type_inference_result.out
|
||||
done;
|
||||
|
||||
exit 1
|
||||
fi
|
23
Cargo.lock
generated
23
Cargo.lock
generated
@ -1333,6 +1333,7 @@ dependencies = [
|
||||
"console",
|
||||
"dirs",
|
||||
"from-pest",
|
||||
"indexmap",
|
||||
"lazy_static",
|
||||
"leo-ast",
|
||||
"leo-compiler",
|
||||
@ -1372,6 +1373,7 @@ version = "1.5.3"
|
||||
name = "leo-package"
|
||||
version = "1.5.3"
|
||||
dependencies = [
|
||||
"indexmap",
|
||||
"lazy_static",
|
||||
"leo-errors",
|
||||
"serde",
|
||||
@ -1436,9 +1438,16 @@ dependencies = [
|
||||
name = "leo-test-framework"
|
||||
version = "1.5.3"
|
||||
dependencies = [
|
||||
"leo-asg",
|
||||
"leo-ast",
|
||||
"leo-ast-passes",
|
||||
"leo-compiler",
|
||||
"leo-imports",
|
||||
"leo-parser",
|
||||
"serde",
|
||||
"serde_json",
|
||||
"serde_yaml",
|
||||
"structopt",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@ -2366,9 +2375,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "serde"
|
||||
version = "1.0.127"
|
||||
version = "1.0.128"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "f03b9878abf6d14e6779d3f24f07b2cfa90352cfec4acc5aab8f1ac7f146fae8"
|
||||
checksum = "1056a0db1978e9dbf0f6e4fca677f6f9143dc1c19de346f22cac23e422196834"
|
||||
dependencies = [
|
||||
"serde_derive",
|
||||
]
|
||||
@ -2385,9 +2394,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "serde_derive"
|
||||
version = "1.0.127"
|
||||
version = "1.0.128"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "a024926d3432516606328597e0f224a51355a493b49fdd67e9209187cbe55ecc"
|
||||
checksum = "13af2fbb8b60a8950d6c72a56d2095c28870367cc8e10c55e9745bac4995a2c4"
|
||||
dependencies = [
|
||||
"proc-macro2 1.0.27",
|
||||
"quote 1.0.9",
|
||||
@ -2419,12 +2428,12 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "serde_yaml"
|
||||
version = "0.8.18"
|
||||
version = "0.8.19"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "039ba818c784248423789eec090aab9fb566c7b94d6ebbfa1814a9fd52c8afb2"
|
||||
checksum = "6375dbd828ed6964c3748e4ef6d18e7a175d408ffe184bca01698d0c73f915a9"
|
||||
dependencies = [
|
||||
"dtoa",
|
||||
"linked-hash-map",
|
||||
"indexmap",
|
||||
"serde",
|
||||
"yaml-rust",
|
||||
]
|
||||
|
@ -118,6 +118,10 @@ version = "0.14.0"
|
||||
[dependencies.from-pest]
|
||||
version = "0.3.1"
|
||||
|
||||
[dependencies.indexmap]
|
||||
version = "1.7"
|
||||
features = ["serde"]
|
||||
|
||||
[dependencies.lazy_static]
|
||||
version = "1.4.0"
|
||||
|
||||
|
@ -91,6 +91,7 @@ impl<'a> FromAst<'a, leo_ast::CallExpression> for CallExpression<'a> {
|
||||
circuit: ast_circuit,
|
||||
name,
|
||||
span,
|
||||
..
|
||||
}) => {
|
||||
let target = <&Expression<'a>>::from_ast(scope, &**ast_circuit, None)?;
|
||||
let circuit = match target.get_type() {
|
||||
|
@ -203,6 +203,7 @@ impl<'a> Into<leo_ast::Expression> for &CircuitAccessExpression<'a> {
|
||||
circuit: Box::new(target.into()),
|
||||
name: self.member.clone(),
|
||||
span: self.span.clone().unwrap_or_default(),
|
||||
type_: None,
|
||||
})
|
||||
} else {
|
||||
leo_ast::Expression::CircuitStaticFunctionAccess(leo_ast::CircuitStaticFunctionAccessExpression {
|
||||
|
@ -87,7 +87,15 @@ impl<'a> FromAst<'a, leo_ast::TernaryExpression> for TernaryExpression<'a> {
|
||||
)?);
|
||||
let left: PartialType = if_true.get().get_type().unwrap().into();
|
||||
|
||||
let if_false = Cell::new(<&Expression<'a>>::from_ast(scope, &*value.if_false, expected_type)?);
|
||||
let if_false = if expected_type.is_none() {
|
||||
Cell::new(<&Expression<'a>>::from_ast(
|
||||
scope,
|
||||
&*value.if_false,
|
||||
Some(left.clone()),
|
||||
)?)
|
||||
} else {
|
||||
Cell::new(<&Expression<'a>>::from_ast(scope, &*value.if_false, expected_type)?)
|
||||
};
|
||||
let right = if_false.get().get_type().unwrap().into();
|
||||
|
||||
if left != right {
|
||||
|
@ -95,7 +95,7 @@ impl<'a> FromAst<'a, leo_ast::Statement> for &'a Statement<'a> {
|
||||
scope, statement, None,
|
||||
)?))
|
||||
}
|
||||
Iteration(statement) => Self::from_ast(scope, &**statement, None)?,
|
||||
Iteration(ref statement) => Self::from_ast(scope, &**statement, None)?,
|
||||
Console(statement) => scope
|
||||
.context
|
||||
.alloc_statement(Statement::Console(ConsoleStatement::from_ast(scope, statement, None)?)),
|
||||
|
@ -86,6 +86,7 @@ impl Canonicalizer {
|
||||
circuit: left,
|
||||
name: identifier,
|
||||
span: span.clone(),
|
||||
type_: None,
|
||||
}));
|
||||
}
|
||||
}
|
||||
@ -280,6 +281,7 @@ impl Canonicalizer {
|
||||
circuit: Box::new(self.canonicalize_expression(&circuit_member_access.circuit)),
|
||||
name: circuit_member_access.name.clone(),
|
||||
span: circuit_member_access.span.clone(),
|
||||
type_: None,
|
||||
});
|
||||
}
|
||||
Expression::CircuitStaticFunctionAccess(circuit_static_func_access) => {
|
||||
@ -301,7 +303,7 @@ impl Canonicalizer {
|
||||
return Expression::Identifier(self.circuit_name.as_ref().unwrap().clone());
|
||||
}
|
||||
}
|
||||
_ => {}
|
||||
_ => (),
|
||||
}
|
||||
|
||||
expression.clone()
|
||||
|
@ -125,10 +125,10 @@ where
|
||||
expected_input: Vec<FunctionInput>,
|
||||
import_statements: Vec<ImportStatement>,
|
||||
empty_imports: IndexMap<String, Program>,
|
||||
mut aliases: IndexMap<Identifier, Alias>,
|
||||
mut circuits: IndexMap<Identifier, Circuit>,
|
||||
mut functions: IndexMap<Identifier, Function>,
|
||||
mut global_consts: IndexMap<String, DefinitionStatement>,
|
||||
aliases: IndexMap<Identifier, Alias>,
|
||||
circuits: IndexMap<Identifier, Circuit>,
|
||||
functions: IndexMap<Identifier, Function>,
|
||||
global_consts: IndexMap<String, DefinitionStatement>,
|
||||
) -> Result<Program> {
|
||||
if !empty_imports.is_empty() {
|
||||
return Err(AstError::injected_programs(empty_imports.len()).into());
|
||||
|
@ -21,6 +21,7 @@ pub struct CircuitMemberAccessExpression {
|
||||
pub circuit: Box<Expression>,
|
||||
pub name: Identifier,
|
||||
pub span: Span,
|
||||
pub type_: Option<crate::Type>,
|
||||
}
|
||||
|
||||
impl fmt::Display for CircuitMemberAccessExpression {
|
||||
|
@ -241,9 +241,14 @@ impl<R: ReconstructingReducer> ReconstructingDirector<R> {
|
||||
) -> Result<CircuitMemberAccessExpression> {
|
||||
let circuit = self.reduce_expression(&circuit_member_access.circuit)?;
|
||||
let name = self.reduce_identifier(&circuit_member_access.name)?;
|
||||
let type_ = circuit_member_access
|
||||
.type_
|
||||
.as_ref()
|
||||
.map(|type_| self.reduce_type(type_, &circuit_member_access.span))
|
||||
.transpose()?;
|
||||
|
||||
self.reducer
|
||||
.reduce_circuit_member_access(circuit_member_access, circuit, name)
|
||||
.reduce_circuit_member_access(circuit_member_access, circuit, name, type_)
|
||||
}
|
||||
|
||||
pub fn reduce_circuit_static_fn_access(
|
||||
|
@ -215,11 +215,13 @@ pub trait ReconstructingReducer {
|
||||
circuit_member_access: &CircuitMemberAccessExpression,
|
||||
circuit: Expression,
|
||||
name: Identifier,
|
||||
type_: Option<Type>,
|
||||
) -> Result<CircuitMemberAccessExpression> {
|
||||
Ok(CircuitMemberAccessExpression {
|
||||
circuit: Box::new(circuit),
|
||||
name,
|
||||
span: circuit_member_access.span.clone(),
|
||||
type_,
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -23,6 +23,7 @@ pub use leo_asg::{new_context, AsgContext as Context, AsgContext};
|
||||
use leo_asg::{Asg, AsgPass, Program as AsgProgram};
|
||||
use leo_ast::{AstPass, Input, MainInput, Program as AstProgram};
|
||||
use leo_errors::{CompilerError, Result};
|
||||
use leo_imports::ImportParser;
|
||||
use leo_input::LeoInputParser;
|
||||
use leo_package::inputs::InputPairs;
|
||||
use leo_parser::parse_ast;
|
||||
@ -34,6 +35,7 @@ use snarkvm_r1cs::{ConstraintSynthesizer, ConstraintSystem, SynthesisError};
|
||||
|
||||
use sha2::{Digest, Sha256};
|
||||
use std::{
|
||||
collections::HashMap,
|
||||
fs,
|
||||
marker::PhantomData,
|
||||
path::{Path, PathBuf},
|
||||
@ -62,6 +64,7 @@ pub struct Compiler<'a, F: PrimeField, G: GroupType<F>> {
|
||||
context: AsgContext<'a>,
|
||||
asg: Option<AsgProgram<'a>>,
|
||||
options: CompilerOptions,
|
||||
imports_map: HashMap<String, String>,
|
||||
ast_snapshot_options: AstSnapshotOptions,
|
||||
_engine: PhantomData<F>,
|
||||
_group: PhantomData<G>,
|
||||
@ -77,6 +80,7 @@ impl<'a, F: PrimeField, G: GroupType<F>> Compiler<'a, F, G> {
|
||||
output_directory: PathBuf,
|
||||
context: AsgContext<'a>,
|
||||
options: Option<CompilerOptions>,
|
||||
imports_map: HashMap<String, String>,
|
||||
ast_snapshot_options: Option<AstSnapshotOptions>,
|
||||
) -> Self {
|
||||
Self {
|
||||
@ -88,6 +92,7 @@ impl<'a, F: PrimeField, G: GroupType<F>> Compiler<'a, F, G> {
|
||||
asg: None,
|
||||
context,
|
||||
options: options.unwrap_or_default(),
|
||||
imports_map,
|
||||
ast_snapshot_options: ast_snapshot_options.unwrap_or_default(),
|
||||
_engine: PhantomData,
|
||||
_group: PhantomData,
|
||||
@ -107,6 +112,7 @@ impl<'a, F: PrimeField, G: GroupType<F>> Compiler<'a, F, G> {
|
||||
output_directory: PathBuf,
|
||||
context: AsgContext<'a>,
|
||||
options: Option<CompilerOptions>,
|
||||
imports_map: HashMap<String, String>,
|
||||
ast_snapshot_options: Option<AstSnapshotOptions>,
|
||||
) -> Result<Self> {
|
||||
let mut compiler = Self::new(
|
||||
@ -115,6 +121,7 @@ impl<'a, F: PrimeField, G: GroupType<F>> Compiler<'a, F, G> {
|
||||
output_directory,
|
||||
context,
|
||||
options,
|
||||
imports_map,
|
||||
ast_snapshot_options,
|
||||
);
|
||||
|
||||
@ -146,6 +153,7 @@ impl<'a, F: PrimeField, G: GroupType<F>> Compiler<'a, F, G> {
|
||||
state_path: &Path,
|
||||
context: AsgContext<'a>,
|
||||
options: Option<CompilerOptions>,
|
||||
imports_map: HashMap<String, String>,
|
||||
ast_snapshot_options: Option<AstSnapshotOptions>,
|
||||
) -> Result<Self> {
|
||||
let mut compiler = Self::new(
|
||||
@ -154,6 +162,7 @@ impl<'a, F: PrimeField, G: GroupType<F>> Compiler<'a, F, G> {
|
||||
output_directory,
|
||||
context,
|
||||
options,
|
||||
imports_map,
|
||||
ast_snapshot_options,
|
||||
);
|
||||
|
||||
@ -240,10 +249,9 @@ impl<'a, F: PrimeField, G: GroupType<F>> Compiler<'a, F, G> {
|
||||
}
|
||||
|
||||
// Preform import resolution.
|
||||
// ast.importer(leo_imports::ImportParser::new(self.main_file_path.clone()))?;
|
||||
ast = leo_ast_passes::Importer::do_pass(
|
||||
ast.into_repr(),
|
||||
leo_imports::ImportParser::new(self.main_file_path.clone()),
|
||||
ImportParser::new(self.main_file_path.clone(), self.imports_map.clone()),
|
||||
)?;
|
||||
|
||||
if self.ast_snapshot_options.imports_resolved {
|
||||
|
@ -17,7 +17,7 @@
|
||||
///
|
||||
/// Toggles compiler optimizations on the program.
|
||||
///
|
||||
#[derive(Clone)]
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct CompilerOptions {
|
||||
pub constant_folding_enabled: bool,
|
||||
pub dead_code_elimination_enabled: bool,
|
||||
|
@ -225,17 +225,31 @@ impl<R: ReconstructingReducer, O: CombinerOptions> CombineAstAsgDirector<R, O> {
|
||||
}
|
||||
|
||||
pub fn reduce_call(&mut self, ast: &AstCallExpression, asg: &AsgCallExpression) -> Result<AstCallExpression> {
|
||||
// TODO FIGURE IT OUT
|
||||
// let function = self.reduce_expression(&ast.function, asg.function.get())?;
|
||||
// let target = asg.target.get().map(|exp| self.reduce_expression())
|
||||
// Is this needed?
|
||||
let mut function = *ast.function.clone();
|
||||
|
||||
if self.options.type_inference_enabled() {
|
||||
let function_type: Option<leo_ast::Type> = asg
|
||||
.target
|
||||
.get()
|
||||
.map(|target| {
|
||||
(target as &dyn leo_asg::ExpressionNode)
|
||||
.get_type()
|
||||
.as_ref()
|
||||
.map(|t| t.into())
|
||||
})
|
||||
.flatten();
|
||||
if let AstExpression::CircuitMemberAccess(mut access) = function {
|
||||
access.type_ = function_type;
|
||||
function = AstExpression::CircuitMemberAccess(access);
|
||||
}
|
||||
}
|
||||
|
||||
let mut arguments = vec![];
|
||||
for (ast_arg, asg_arg) in ast.arguments.iter().zip(asg.arguments.iter()) {
|
||||
arguments.push(self.reduce_expression(ast_arg, asg_arg.get())?);
|
||||
}
|
||||
|
||||
self.ast_reducer.reduce_call(ast, *ast.function.clone(), arguments)
|
||||
self.ast_reducer.reduce_call(ast, function, arguments)
|
||||
}
|
||||
|
||||
pub fn reduce_cast(&mut self, ast: &AstCastExpression, asg: &AsgCastExpression) -> Result<AstCastExpression> {
|
||||
@ -248,14 +262,16 @@ impl<R: ReconstructingReducer, O: CombinerOptions> CombineAstAsgDirector<R, O> {
|
||||
pub fn reduce_circuit_member_access(
|
||||
&mut self,
|
||||
ast: &CircuitMemberAccessExpression,
|
||||
_asg: &AsgCircuitAccessExpression,
|
||||
asg: &AsgCircuitAccessExpression,
|
||||
) -> Result<CircuitMemberAccessExpression> {
|
||||
// let circuit = self.reduce_expression(&circuit_member_access.circuit)?;
|
||||
// let name = self.reduce_identifier(&circuit_member_access.name)?;
|
||||
// let target = input.target.get().map(|e| self.reduce_expression(e));
|
||||
let type_ = if self.options.type_inference_enabled() {
|
||||
Some(leo_ast::Type::CircuitOrAlias(asg.circuit.get().name.borrow().clone()))
|
||||
} else {
|
||||
None
|
||||
};
|
||||
|
||||
self.ast_reducer
|
||||
.reduce_circuit_member_access(ast, *ast.circuit.clone(), ast.name.clone())
|
||||
.reduce_circuit_member_access(ast, *ast.circuit.clone(), ast.name.clone(), type_)
|
||||
}
|
||||
|
||||
pub fn reduce_circuit_static_fn_access(
|
||||
@ -263,10 +279,6 @@ impl<R: ReconstructingReducer, O: CombinerOptions> CombineAstAsgDirector<R, O> {
|
||||
ast: &CircuitStaticFunctionAccessExpression,
|
||||
_asg: &AsgCircuitAccessExpression,
|
||||
) -> Result<CircuitStaticFunctionAccessExpression> {
|
||||
// let circuit = self.reduce_expression(&circuit_member_access.circuit)?;
|
||||
// let name = self.reduce_identifier(&circuit_member_access.name)?;
|
||||
// let target = input.target.get().map(|e| self.reduce_expression(e));
|
||||
|
||||
self.ast_reducer
|
||||
.reduce_circuit_static_fn_access(ast, *ast.circuit.clone(), ast.name.clone())
|
||||
}
|
||||
|
@ -14,7 +14,10 @@
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with the Leo library. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
use std::path::{Path, PathBuf};
|
||||
use std::{
|
||||
collections::HashMap,
|
||||
path::{Path, PathBuf},
|
||||
};
|
||||
|
||||
use leo_asg::*;
|
||||
use leo_ast::{Ast, Program};
|
||||
@ -50,6 +53,7 @@ fn new_compiler(path: PathBuf, theorem_options: Option<AstSnapshotOptions>) -> E
|
||||
output_dir,
|
||||
make_test_context(),
|
||||
None,
|
||||
HashMap::new(),
|
||||
theorem_options,
|
||||
)
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ version = "0.3.61"
|
||||
version = "2.0"
|
||||
|
||||
[dependencies.serde]
|
||||
version = "1.0.126"
|
||||
version = "1.0.128"
|
||||
features = [ "derive", "rc" ]
|
||||
|
||||
[dependencies.tendril]
|
||||
|
@ -157,7 +157,7 @@ create_errors!(
|
||||
|
||||
/// For when the CLI cannot find the manifest file.
|
||||
@backtraced
|
||||
mainifest_file_not_found {
|
||||
manifest_file_not_found {
|
||||
args: (),
|
||||
msg: "Package manifest not found, try running `leo init`",
|
||||
help: None,
|
||||
@ -379,6 +379,27 @@ create_errors!(
|
||||
msg: format!("Old release version {} {}", current, latest),
|
||||
help: None,
|
||||
}
|
||||
|
||||
@backtraced
|
||||
dependencies_are_not_installed {
|
||||
args: (),
|
||||
msg: "dependencies are not installed, please run `leo fetch` first",
|
||||
help: None,
|
||||
}
|
||||
|
||||
@backtraced
|
||||
recursive_dependency_found {
|
||||
args: (message: impl Display),
|
||||
msg: format!("recursive dependency found \n{}", message),
|
||||
help: None,
|
||||
}
|
||||
|
||||
@backtraced
|
||||
unable_to_read_imported_dependency_manifest {
|
||||
args: (),
|
||||
msg: "unable to parse imported dependency's manifest",
|
||||
help: None,
|
||||
}
|
||||
);
|
||||
|
||||
impl CliError {
|
||||
|
@ -218,19 +218,19 @@ create_errors!(
|
||||
help: None,
|
||||
}
|
||||
|
||||
/// For when reading the prooving key failed.
|
||||
/// For when reading the proving key failed.
|
||||
@backtraced
|
||||
failed_to_read_proving_key_file {
|
||||
args: (path: impl Debug),
|
||||
msg: format!("Cannot read prooving key file from the provided file path - {:?}", path),
|
||||
msg: format!("Cannot read proving key file from the provided file path - {:?}", path),
|
||||
help: None,
|
||||
}
|
||||
|
||||
/// For when removing the prooving key file failed.
|
||||
/// For when removing the proving key file failed.
|
||||
@backtraced
|
||||
failed_to_remove_proving_key_file {
|
||||
args: (path: impl Debug),
|
||||
msg: format!("Cannot remove prooving key file from the provided file path - {:?}", path),
|
||||
msg: format!("Cannot remove proving key file from the provided file path - {:?}", path),
|
||||
help: None,
|
||||
}
|
||||
|
||||
@ -242,6 +242,22 @@ create_errors!(
|
||||
help: None,
|
||||
}
|
||||
|
||||
/// For when reading the snapshot file failed.
|
||||
@backtraced
|
||||
failed_to_read_snapshot_file {
|
||||
args: (path: impl Debug),
|
||||
msg: format!("Cannot read snapshot file from the provided file path - {:?}", path),
|
||||
help: None,
|
||||
}
|
||||
|
||||
/// For when removing the snapshot file failed.
|
||||
@backtraced
|
||||
failed_to_remove_snapshot_file {
|
||||
args: (path: impl Debug),
|
||||
msg: format!("Cannot remove snapshot file from the provided file path - {:?}", path),
|
||||
help: None,
|
||||
}
|
||||
|
||||
/// For when reading the verification key file failed.
|
||||
@backtraced
|
||||
failed_to_read_verification_key_file {
|
||||
@ -481,4 +497,66 @@ create_errors!(
|
||||
msg: format!("invalid project name {}", package),
|
||||
help: None,
|
||||
}
|
||||
|
||||
@backtraced
|
||||
failed_to_create_lock_file {
|
||||
args: (filename: impl Display, error: impl ErrorArg),
|
||||
msg: format!("failed creating manifest file `{}` {}", filename, error),
|
||||
help: None,
|
||||
}
|
||||
|
||||
/// For when getting the lock file metadata failed.
|
||||
@backtraced
|
||||
failed_to_get_lock_file_metadata {
|
||||
args: (filename: impl Display, error: impl ErrorArg),
|
||||
msg: format!("failed getting lock file metadata `{}` {}", filename, error),
|
||||
help: None,
|
||||
}
|
||||
|
||||
/// For when opening the lock file failed.
|
||||
@backtraced
|
||||
failed_to_open_lock_file {
|
||||
args: (filename: impl Display, error: impl ErrorArg),
|
||||
msg: format!("failed openining lock file `{}` {}", filename, error),
|
||||
help: None,
|
||||
}
|
||||
|
||||
/// For when parsing the lock file failed.
|
||||
@backtraced
|
||||
failed_to_parse_lock_file {
|
||||
args: (filename: impl Display, error: impl ErrorArg),
|
||||
msg: format!("failed parsing lock file `{}` {}", filename, error),
|
||||
help: None,
|
||||
}
|
||||
|
||||
/// For when reading the lock file failed.
|
||||
@backtraced
|
||||
failed_to_read_lock_file {
|
||||
args: (filename: impl Display, error: impl ErrorArg),
|
||||
msg: format!("failed reading lock file `{}` {}", filename, error),
|
||||
help: None,
|
||||
}
|
||||
|
||||
/// For when writing the lock file failed.
|
||||
@backtraced
|
||||
failed_to_write_lock_file {
|
||||
args: (filename: impl Display, error: impl ErrorArg),
|
||||
msg: format!("failed writing lock file `{}` {}", filename, error),
|
||||
help: None,
|
||||
}
|
||||
|
||||
/// For when the lock file has an IO error.
|
||||
@backtraced
|
||||
io_error_lock_file {
|
||||
args: (error: impl ErrorArg),
|
||||
msg: format!("IO error lock file from the provided file path - {}", error),
|
||||
help: None,
|
||||
}
|
||||
|
||||
@backtraced
|
||||
failed_to_serialize_lock_file {
|
||||
args: (error: impl ErrorArg),
|
||||
msg: format!("serialization failed: {}", error),
|
||||
help: None,
|
||||
}
|
||||
);
|
||||
|
@ -19,7 +19,7 @@ use leo_ast_passes::ImportResolver;
|
||||
use leo_errors::{ImportError, LeoError, Result, Span};
|
||||
|
||||
use indexmap::{IndexMap, IndexSet};
|
||||
use std::path::PathBuf;
|
||||
use std::{collections::HashMap, path::PathBuf};
|
||||
|
||||
/// Stores imported packages.
|
||||
///
|
||||
@ -30,14 +30,16 @@ pub struct ImportParser {
|
||||
program_path: PathBuf,
|
||||
partial_imports: IndexSet<String>,
|
||||
imports: IndexMap<String, Program>,
|
||||
pub imports_map: HashMap<String, String>,
|
||||
}
|
||||
|
||||
impl ImportParser {
|
||||
pub fn new(program_path: PathBuf) -> Self {
|
||||
pub fn new(program_path: PathBuf, imports_map: HashMap<String, String>) -> Self {
|
||||
ImportParser {
|
||||
program_path,
|
||||
partial_imports: Default::default(),
|
||||
imports: Default::default(),
|
||||
imports_map,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -95,10 +95,19 @@ impl ImportParser {
|
||||
.collect::<Result<Vec<_>, std::io::Error>>()
|
||||
.map_err(|error| ImportError::directory_error(error, error_path, span))?;
|
||||
|
||||
// Keeping backward compatibilty for existing packages.
|
||||
// If index_map contains key, use it or try to access directly.
|
||||
// TODO: Remove when migration is possible.
|
||||
let package_name = self
|
||||
.imports_map
|
||||
.get(package_name)
|
||||
.unwrap_or(&package_name.to_string())
|
||||
.clone();
|
||||
|
||||
// Check if the imported package name is in the imports directory.
|
||||
let matched_import_entry = entries
|
||||
.into_iter()
|
||||
.find(|entry| entry.file_name().into_string().unwrap().eq(package_name));
|
||||
.find(|entry| entry.file_name().into_string().unwrap().eq(&package_name));
|
||||
|
||||
// Check if the package name was found in both the source and imports directory.
|
||||
match (matched_source_entry, matched_import_entry) {
|
||||
|
@ -58,9 +58,9 @@ pub struct BuildOptions {
|
||||
impl Default for BuildOptions {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
disable_constant_folding: true,
|
||||
disable_code_elimination: true,
|
||||
disable_all_optimizations: true,
|
||||
disable_constant_folding: false,
|
||||
disable_code_elimination: false,
|
||||
disable_all_optimizations: false,
|
||||
enable_all_ast_snapshots: false,
|
||||
enable_initial_ast_snapshot: false,
|
||||
enable_imports_resolved_ast_snapshot: false,
|
||||
@ -72,10 +72,10 @@ impl Default for BuildOptions {
|
||||
|
||||
impl From<BuildOptions> for CompilerOptions {
|
||||
fn from(options: BuildOptions) -> Self {
|
||||
if !options.disable_all_optimizations {
|
||||
if options.disable_all_optimizations {
|
||||
CompilerOptions {
|
||||
constant_folding_enabled: true,
|
||||
dead_code_elimination_enabled: true,
|
||||
constant_folding_enabled: false,
|
||||
dead_code_elimination_enabled: false,
|
||||
}
|
||||
} else {
|
||||
CompilerOptions {
|
||||
@ -128,7 +128,14 @@ impl Command for Build {
|
||||
|
||||
fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output> {
|
||||
let path = context.dir()?;
|
||||
let package_name = context.manifest()?.get_package_name();
|
||||
let manifest = context.manifest().map_err(|_| CliError::manifest_file_not_found())?;
|
||||
let package_name = manifest.get_package_name();
|
||||
let imports_map = manifest.get_imports_map().unwrap_or_default();
|
||||
|
||||
// Error out if there are dependencies but no lock file found.
|
||||
if !imports_map.is_empty() && !context.lock_file_exists()? {
|
||||
return Err(CliError::dependencies_are_not_installed().into());
|
||||
}
|
||||
|
||||
// Sanitize the package path to the root directory.
|
||||
let mut package_path = path.clone();
|
||||
@ -164,6 +171,12 @@ impl Command for Build {
|
||||
// Log compilation of files to console
|
||||
tracing::info!("Compiling main program... ({:?})", main_file_path);
|
||||
|
||||
let imports_map = if context.lock_file_exists()? {
|
||||
context.lock_file()?.to_import_map()
|
||||
} else {
|
||||
Default::default()
|
||||
};
|
||||
|
||||
// Load the program at `main_file_path`
|
||||
let program = Compiler::<Fq, EdwardsGroupType>::parse_program_with_input(
|
||||
package_name.clone(),
|
||||
@ -175,6 +188,7 @@ impl Command for Build {
|
||||
&state_path,
|
||||
thread_leaked_context(),
|
||||
Some(self.compiler_options.clone().into()),
|
||||
imports_map,
|
||||
Some(self.compiler_options.into()),
|
||||
)?;
|
||||
|
||||
|
@ -17,7 +17,9 @@
|
||||
use crate::{commands::Command, context::Context};
|
||||
use leo_compiler::OutputFile;
|
||||
use leo_errors::Result;
|
||||
use leo_package::outputs::{ChecksumFile, CircuitFile, ProofFile, ProvingKeyFile, VerificationKeyFile};
|
||||
use leo_package::outputs::{
|
||||
ChecksumFile, CircuitFile, ProofFile, ProvingKeyFile, Snapshot, SnapshotFile, VerificationKeyFile,
|
||||
};
|
||||
|
||||
use structopt::StructOpt;
|
||||
use tracing::span::Span;
|
||||
@ -61,6 +63,11 @@ impl Command for Clean {
|
||||
// Remove the proof from the output directory
|
||||
ProofFile::new(&package_name).remove(&path)?;
|
||||
|
||||
// Remove AST snapshots from the output directory
|
||||
SnapshotFile::new(&package_name, Snapshot::Initial).remove(&path)?;
|
||||
SnapshotFile::new(&package_name, Snapshot::TypeInference).remove(&path)?;
|
||||
SnapshotFile::new(&package_name, Snapshot::Canonicalization).remove(&path)?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
@ -14,6 +14,10 @@
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with the Leo library. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
// COMMAND TEMPORARILY DISABLED
|
||||
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
|
||||
use crate::{api::Fetch, commands::Command, context::Context};
|
||||
use leo_errors::{CliError, Result};
|
||||
use leo_package::imports::{ImportsDirectory, IMPORTS_DIRECTORY_NAME};
|
||||
@ -21,6 +25,7 @@ use leo_package::imports::{ImportsDirectory, IMPORTS_DIRECTORY_NAME};
|
||||
use std::{
|
||||
fs::{create_dir_all, File},
|
||||
io::{Read, Write},
|
||||
path::PathBuf,
|
||||
};
|
||||
use structopt::StructOpt;
|
||||
use tracing::Span;
|
||||
@ -76,7 +81,7 @@ impl Add {
|
||||
|
||||
impl Command for Add {
|
||||
type Input = ();
|
||||
type Output = ();
|
||||
type Output = PathBuf;
|
||||
|
||||
fn log_span(&self) -> Span {
|
||||
tracing::span!(tracing::Level::INFO, "Adding")
|
||||
@ -88,18 +93,20 @@ impl Command for Add {
|
||||
|
||||
fn apply(self, context: Context, _: Self::Input) -> Result<Self::Output> {
|
||||
// Check that a manifest exists for the current package.
|
||||
context.manifest().map_err(|_| CliError::mainifest_file_not_found())?;
|
||||
context.manifest().map_err(|_| CliError::manifest_file_not_found())?;
|
||||
|
||||
let (author, package_name) = self
|
||||
.try_read_arguments()
|
||||
.map_err(CliError::cli_bytes_conversion_error)?;
|
||||
|
||||
tracing::info!("Package: {}/{}", &author, &package_name);
|
||||
|
||||
// Attempt to fetch the package.
|
||||
let reader = {
|
||||
let fetch = Fetch {
|
||||
author,
|
||||
author: author.clone(),
|
||||
package_name: package_name.clone(),
|
||||
version: self.version,
|
||||
version: self.version.clone(),
|
||||
};
|
||||
let bytes = context
|
||||
.api
|
||||
@ -114,7 +121,14 @@ impl Command for Add {
|
||||
{
|
||||
ImportsDirectory::create(&path)?;
|
||||
path.push(IMPORTS_DIRECTORY_NAME);
|
||||
path.push(package_name);
|
||||
|
||||
// Dumb compatibility hack.
|
||||
// TODO: Remove once `leo add` functionality is discussed.
|
||||
if self.version.is_some() {
|
||||
path.push(format!("{}-{}@{}", author, package_name, self.version.unwrap()));
|
||||
} else {
|
||||
path.push(package_name.clone());
|
||||
}
|
||||
create_dir_all(&path).map_err(CliError::cli_io_error)?;
|
||||
};
|
||||
|
||||
@ -142,8 +156,8 @@ impl Command for Add {
|
||||
}
|
||||
}
|
||||
|
||||
tracing::info!("Successfully added a package");
|
||||
tracing::info!("Successfully added package {}/{}", author, package_name);
|
||||
|
||||
Ok(())
|
||||
Ok(path)
|
||||
}
|
||||
}
|
||||
|
144
leo/commands/package/fetch.rs
Normal file
144
leo/commands/package/fetch.rs
Normal file
@ -0,0 +1,144 @@
|
||||
// Copyright (C) 2019-2021 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 <https://www.gnu.org/licenses/>.
|
||||
|
||||
use crate::{
|
||||
commands::{package::Add, Command},
|
||||
context::{create_context, Context},
|
||||
};
|
||||
|
||||
use leo_package::root::{
|
||||
lock_file::{LockFile, Package},
|
||||
Dependency,
|
||||
};
|
||||
|
||||
use indexmap::{set::IndexSet, IndexMap};
|
||||
use leo_errors::{CliError, Result};
|
||||
use structopt::StructOpt;
|
||||
use tracing::span::Span;
|
||||
|
||||
/// Pull dependencies specified in Leo toml.
|
||||
#[derive(StructOpt, Debug)]
|
||||
#[structopt(setting = structopt::clap::AppSettings::ColoredHelp)]
|
||||
pub struct Fetch {}
|
||||
|
||||
impl Command for Fetch {
|
||||
/// Names of dependencies in the current branch of a dependency tree.
|
||||
type Input = IndexSet<String>;
|
||||
type Output = ();
|
||||
|
||||
fn log_span(&self) -> Span {
|
||||
tracing::span!(tracing::Level::INFO, "Fetching")
|
||||
}
|
||||
|
||||
fn prelude(&self, context: Context) -> Result<Self::Input> {
|
||||
let package_name = context.manifest()?.get_package_name();
|
||||
|
||||
let mut set = IndexSet::new();
|
||||
set.insert(package_name);
|
||||
|
||||
Ok(set)
|
||||
}
|
||||
|
||||
fn apply(self, context: Context, tree: Self::Input) -> Result<Self::Output> {
|
||||
let dependencies = context
|
||||
.manifest()
|
||||
.map_err(|_| CliError::manifest_file_not_found())?
|
||||
.get_package_dependencies();
|
||||
|
||||
// If program has no dependencies in the Leo.toml, exit with success.
|
||||
let dependencies = match dependencies {
|
||||
Some(dependencies) => dependencies,
|
||||
None => return Ok(()),
|
||||
};
|
||||
|
||||
if dependencies.is_empty() {
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
let mut lock_file = LockFile::new();
|
||||
self.add_dependencies(context.clone(), tree, &mut lock_file, dependencies)?;
|
||||
lock_file.write_to(&context.dir()?)?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
impl Fetch {
|
||||
/// Pulls dependencies and fills in the lock file. Also checks for
|
||||
/// recursive dependencies with dependency tree.
|
||||
fn add_dependencies(
|
||||
&self,
|
||||
context: Context,
|
||||
mut tree: IndexSet<String>,
|
||||
lock_file: &mut LockFile,
|
||||
dependencies: IndexMap<String, Dependency>,
|
||||
) -> Result<()> {
|
||||
// Go through each dependency in Leo.toml and add it to the imports.
|
||||
// While adding, pull dependencies of this package as well and check for recursion.
|
||||
for (import_name, dependency) in dependencies.into_iter() {
|
||||
let mut package = Package::from(&dependency);
|
||||
package.import_name = Some(import_name);
|
||||
|
||||
// Pull the dependency first.
|
||||
let path = Add::new(
|
||||
None,
|
||||
Some(package.author.clone()),
|
||||
Some(package.name.clone()),
|
||||
Some(package.version.clone()),
|
||||
)
|
||||
.apply(context.clone(), ())?;
|
||||
|
||||
// Try inserting a new dependency to the branch. If not inserted,
|
||||
// then fail because this dependency was added on a higher level.
|
||||
if !tree.insert(package.name.clone()) {
|
||||
// Pretty format for the message - show dependency structure.
|
||||
let mut message: Vec<String> = tree
|
||||
.into_iter()
|
||||
.enumerate()
|
||||
.map(|(i, val)| format!("{}└─{}", " ".repeat(i * 2), val))
|
||||
.collect();
|
||||
|
||||
message.push(format!("{}└─{} (FAILURE)", " ".repeat(message.len() * 2), package.name));
|
||||
|
||||
return Err(CliError::recursive_dependency_found(message.join("\n")).into());
|
||||
}
|
||||
|
||||
// Check imported dependency's dependencies.
|
||||
let imported_dependencies = create_context(path, None)?
|
||||
.manifest()
|
||||
.map_err(|_| CliError::unable_to_read_imported_dependency_manifest())?
|
||||
.get_package_dependencies();
|
||||
|
||||
if let Some(dependencies) = imported_dependencies {
|
||||
if !dependencies.is_empty() {
|
||||
// Fill in the lock file with imported dependency and information about its dependencies.
|
||||
package.add_dependencies(&dependencies);
|
||||
lock_file.add_package(package);
|
||||
|
||||
// Recursively call this method for imported program.
|
||||
self.add_dependencies(context.clone(), tree.clone(), lock_file, dependencies)?;
|
||||
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
// If there are no dependencies for the new import, add a single record.
|
||||
lock_file.add_package(package);
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
}
|
@ -20,6 +20,9 @@ pub use add::Add;
|
||||
pub mod clone;
|
||||
pub use clone::Clone;
|
||||
|
||||
pub mod fetch;
|
||||
pub use fetch::Fetch;
|
||||
|
||||
pub mod login;
|
||||
pub use login::Login;
|
||||
|
||||
|
@ -14,6 +14,10 @@
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with the Leo library. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
// COMMAND TEMPORARILY DISABLED
|
||||
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
|
||||
use crate::{commands::Command, context::Context};
|
||||
use leo_errors::Result;
|
||||
use leo_package::LeoPackage;
|
||||
|
@ -109,6 +109,7 @@ impl Command for Test {
|
||||
output_directory.clone(),
|
||||
thread_leaked_context(),
|
||||
Some(self.compiler_options.clone().into()),
|
||||
std::collections::HashMap::new(),
|
||||
Some(self.compiler_options.clone().into()),
|
||||
)?;
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
|
||||
use crate::{api::Api, config};
|
||||
use leo_errors::{CliError, Result};
|
||||
use leo_package::root::Manifest;
|
||||
use leo_package::root::{LockFile, Manifest};
|
||||
|
||||
use std::{convert::TryFrom, env::current_dir, path::PathBuf};
|
||||
|
||||
@ -41,10 +41,20 @@ impl Context {
|
||||
}
|
||||
}
|
||||
|
||||
/// Get package manifest for current context
|
||||
/// Get package manifest for current context.
|
||||
pub fn manifest(&self) -> Result<Manifest> {
|
||||
Ok(Manifest::try_from(self.dir()?.as_path())?)
|
||||
}
|
||||
|
||||
/// Get lock file for current context.
|
||||
pub fn lock_file(&self) -> Result<LockFile> {
|
||||
Ok(LockFile::try_from(self.dir()?.as_path())?)
|
||||
}
|
||||
|
||||
/// Check if lock file exists.
|
||||
pub fn lock_file_exists(&self) -> Result<bool> {
|
||||
Ok(LockFile::exists_at(&self.dir()?))
|
||||
}
|
||||
}
|
||||
|
||||
/// Create a new context for the current directory.
|
||||
|
60
leo/main.rs
60
leo/main.rs
@ -22,7 +22,7 @@ pub mod logger;
|
||||
pub mod updater;
|
||||
|
||||
use commands::{
|
||||
package::{Add, Clone, Login, Logout, Publish, Remove},
|
||||
package::{Clone, Fetch, Login, Logout, Publish},
|
||||
Build, Clean, Command, Deploy, Init, Lint, New, Prove, Run, Setup, Test, Update, Watch,
|
||||
};
|
||||
use leo_errors::Result;
|
||||
@ -119,10 +119,15 @@ enum CommandOpts {
|
||||
command: Test,
|
||||
},
|
||||
|
||||
#[structopt(about = "Import a package from the Aleo Package Manager")]
|
||||
Add {
|
||||
// #[structopt(about = "Import a package from the Aleo Package Manager")]
|
||||
// Add {
|
||||
// #[structopt(flatten)]
|
||||
// command: Add,
|
||||
// },
|
||||
#[structopt(about = "Pull dependencies from Aleo Package Manager")]
|
||||
Fetch {
|
||||
#[structopt(flatten)]
|
||||
command: Add,
|
||||
command: Fetch,
|
||||
},
|
||||
|
||||
#[structopt(about = "Clone a package from the Aleo Package Manager")]
|
||||
@ -149,12 +154,11 @@ enum CommandOpts {
|
||||
command: Publish,
|
||||
},
|
||||
|
||||
#[structopt(about = "Uninstall a package from the current package")]
|
||||
Remove {
|
||||
#[structopt(flatten)]
|
||||
command: Remove,
|
||||
},
|
||||
|
||||
// #[structopt(about = "Uninstall a package from the current package")]
|
||||
// Remove {
|
||||
// #[structopt(flatten)]
|
||||
// command: Remove,
|
||||
// },
|
||||
#[structopt(about = "Lints the Leo files in the package (*)")]
|
||||
Lint {
|
||||
#[structopt(flatten)]
|
||||
@ -204,13 +208,13 @@ fn run_with_args(opt: Opt) -> Result<()> {
|
||||
CommandOpts::Watch { command } => command.try_execute(context),
|
||||
CommandOpts::Update { command } => command.try_execute(context),
|
||||
|
||||
CommandOpts::Add { command } => command.try_execute(context),
|
||||
// CommandOpts::Add { command } => command.try_execute(context),
|
||||
CommandOpts::Fetch { command } => command.try_execute(context),
|
||||
CommandOpts::Clone { command } => command.try_execute(context),
|
||||
CommandOpts::Login { command } => command.try_execute(context),
|
||||
CommandOpts::Logout { command } => command.try_execute(context),
|
||||
CommandOpts::Publish { command } => command.try_execute(context),
|
||||
CommandOpts::Remove { command } => command.try_execute(context),
|
||||
|
||||
// CommandOpts::Remove { command } => command.try_execute(context),
|
||||
CommandOpts::Lint { command } => command.try_execute(context),
|
||||
CommandOpts::Deploy { command } => command.try_execute(context),
|
||||
}
|
||||
@ -231,6 +235,7 @@ mod cli_tests {
|
||||
use crate::{run_with_args, Opt};
|
||||
use leo_errors::{CliError, Result};
|
||||
|
||||
use snarkvm_utilities::Write;
|
||||
use std::path::PathBuf;
|
||||
use structopt::StructOpt;
|
||||
use test_dir::{DirBuilder, FileType, TestDir};
|
||||
@ -347,6 +352,7 @@ mod cli_tests {
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[ignore]
|
||||
fn test_import() {
|
||||
let dir = testdir("test");
|
||||
let path = dir.path("test");
|
||||
@ -388,4 +394,32 @@ mod cli_tests {
|
||||
assert!(run_cmd("leo test -f examples/silly-sudoku/src/lib.leo", path).is_ok());
|
||||
assert!(run_cmd("leo test -f examples/silly-sudoku/src/main.leo", path).is_ok());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_install() {
|
||||
let dir = testdir("test");
|
||||
let path = dir.path("test");
|
||||
|
||||
assert!(run_cmd("leo new install", &Some(path.clone())).is_ok());
|
||||
|
||||
let install_path = &Some(path.join("install"));
|
||||
|
||||
let mut file = std::fs::OpenOptions::new()
|
||||
.write(true)
|
||||
.append(true)
|
||||
.open(path.join("install/Leo.toml"))
|
||||
.unwrap();
|
||||
|
||||
assert!(run_cmd("leo fetch", install_path).is_ok());
|
||||
assert!(file
|
||||
.write_all(
|
||||
br#"
|
||||
sudoku = {author = "justice-league", package = "u8u32", version = "0.1.0"}
|
||||
"#
|
||||
)
|
||||
.is_ok());
|
||||
|
||||
assert!(run_cmd("leo fetch", install_path).is_ok());
|
||||
assert!(run_cmd("leo build", install_path).is_ok());
|
||||
}
|
||||
}
|
||||
|
@ -21,6 +21,10 @@ edition = "2018"
|
||||
path = "../errors"
|
||||
version = "1.5.3"
|
||||
|
||||
[dependencies.indexmap]
|
||||
version = "1.7"
|
||||
features = ["serde"]
|
||||
|
||||
[dependencies.serde]
|
||||
version = "1.0"
|
||||
features = [ "derive" ]
|
||||
|
@ -4,6 +4,27 @@
|
||||
[![Authors](https://img.shields.io/badge/authors-Aleo-orange.svg)](../AUTHORS)
|
||||
[![License](https://img.shields.io/badge/License-GPLv3-blue.svg)](./LICENSE.md)
|
||||
|
||||
This module defines the structure of a Leo project package.
|
||||
## Description
|
||||
|
||||
Each file in this directory mirrors a corresponding file generated in a new Leo project package.
|
||||
This module defines the structure of a Leo project package. And describes behavior of package internals, such
|
||||
as Leo Manifest (Leo.toml), Lock File (Leo.lock), source files and imports.
|
||||
|
||||
Mainly used by Leo binary.
|
||||
|
||||
## Structure
|
||||
|
||||
Each directory in this crate mirrors a corresponding file generated in a new Leo project package:
|
||||
|
||||
```bash
|
||||
package/src
|
||||
├── errors # crate level error definitions
|
||||
├── imports # program imports management
|
||||
├── inputs # program inputs directory
|
||||
├── outputs # program outputs directory
|
||||
├── root # program root: Leo.toml, Leo.lock
|
||||
└── source # source files directory
|
||||
```
|
||||
|
||||
## Testing
|
||||
|
||||
Package features functional tests in the `tests/` directory.
|
||||
|
103
package/src/outputs/ast_snapshot.rs
Normal file
103
package/src/outputs/ast_snapshot.rs
Normal file
@ -0,0 +1,103 @@
|
||||
// Copyright (C) 2019-2021 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 <https://www.gnu.org/licenses/>.
|
||||
|
||||
//! The serialized circuit output file.
|
||||
|
||||
use crate::outputs::OUTPUTS_DIRECTORY_NAME;
|
||||
use leo_errors::{PackageError, Result};
|
||||
|
||||
use serde::Deserialize;
|
||||
use std::{borrow::Cow, fmt, fs, path::Path};
|
||||
|
||||
/// Enum to handle all 3 types of snapshots.
|
||||
#[derive(Deserialize)]
|
||||
pub enum Snapshot {
|
||||
Initial,
|
||||
TypeInference,
|
||||
Canonicalization,
|
||||
}
|
||||
|
||||
impl fmt::Display for Snapshot {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
match self {
|
||||
Self::Initial => "initial_ast",
|
||||
Self::TypeInference => "type_inferenced_ast",
|
||||
Self::Canonicalization => "canonicalization_ast",
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
pub static AST_SNAPSHOT_FILE_EXTENSION: &str = ".json";
|
||||
|
||||
/// Generic Snapshot file wrapper. Each package can have up to 3
|
||||
/// different snapshots: initial_ast, canonicalization_ast and type_inferenced_ast;
|
||||
#[derive(Deserialize)]
|
||||
pub struct SnapshotFile {
|
||||
pub package_name: String,
|
||||
pub snapshot: Snapshot,
|
||||
}
|
||||
|
||||
impl SnapshotFile {
|
||||
pub fn new(package_name: &str, snapshot: Snapshot) -> Self {
|
||||
Self {
|
||||
package_name: package_name.to_string(),
|
||||
snapshot,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn exists_at(&self, path: &Path) -> bool {
|
||||
let path = self.snapshot_file_path(path);
|
||||
path.exists()
|
||||
}
|
||||
|
||||
/// Reads the serialized circuit from the given file path if it exists.
|
||||
pub fn read_from(&self, path: &Path) -> Result<String> {
|
||||
let path = self.snapshot_file_path(path);
|
||||
|
||||
let result =
|
||||
fs::read_to_string(&path).map_err(|_| PackageError::failed_to_read_snapshot_file(path.into_owned()))?;
|
||||
|
||||
Ok(result)
|
||||
}
|
||||
|
||||
/// Removes the serialized circuit at the given path if it exists. Returns `true` on success,
|
||||
/// `false` if the file doesn't exist, and `Error` if the file system fails during operation.
|
||||
pub fn remove(&self, path: &Path) -> Result<bool> {
|
||||
let path = self.snapshot_file_path(path);
|
||||
if !path.exists() {
|
||||
return Ok(false);
|
||||
}
|
||||
|
||||
fs::remove_file(&path).map_err(|_| PackageError::failed_to_remove_snapshot_file(path.into_owned()))?;
|
||||
Ok(true)
|
||||
}
|
||||
|
||||
fn snapshot_file_path<'a>(&self, path: &'a Path) -> Cow<'a, Path> {
|
||||
let mut path = Cow::from(path);
|
||||
if path.is_dir() {
|
||||
if !path.ends_with(OUTPUTS_DIRECTORY_NAME) {
|
||||
path.to_mut().push(OUTPUTS_DIRECTORY_NAME);
|
||||
}
|
||||
path.to_mut()
|
||||
.push(format!("{}{}", self.snapshot, AST_SNAPSHOT_FILE_EXTENSION));
|
||||
}
|
||||
path
|
||||
}
|
||||
}
|
@ -14,6 +14,9 @@
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with the Leo library. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
pub mod ast_snapshot;
|
||||
pub use self::ast_snapshot::*;
|
||||
|
||||
pub mod circuit;
|
||||
pub use self::circuit::*;
|
||||
|
||||
|
160
package/src/root/lock_file.rs
Normal file
160
package/src/root/lock_file.rs
Normal file
@ -0,0 +1,160 @@
|
||||
// Copyright (C) 2019-2021 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 <https://www.gnu.org/licenses/>.
|
||||
|
||||
use crate::root::Dependency;
|
||||
use leo_errors::{PackageError, Result};
|
||||
|
||||
use indexmap::IndexMap;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::{
|
||||
borrow::Cow,
|
||||
collections::HashMap,
|
||||
convert::TryFrom,
|
||||
fmt::{self, Display},
|
||||
fs::File,
|
||||
io::{Read, Write},
|
||||
path::Path,
|
||||
};
|
||||
|
||||
pub const LOCKFILE_FILENAME: &str = "Leo.lock";
|
||||
|
||||
/// Lock-file struct, contains all information about imported dependencies
|
||||
/// and their relationships.
|
||||
#[derive(Default, Debug, Clone, Serialize, Deserialize)]
|
||||
pub struct LockFile {
|
||||
pub package: Vec<Package>,
|
||||
}
|
||||
|
||||
/// Single dependency record.
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
pub struct Package {
|
||||
pub name: String,
|
||||
pub version: String,
|
||||
pub author: String,
|
||||
pub import_name: Option<String>,
|
||||
#[serde(skip_serializing_if = "IndexMap::is_empty", default)]
|
||||
pub dependencies: IndexMap<String, String>,
|
||||
}
|
||||
|
||||
impl LockFile {
|
||||
pub fn new() -> Self {
|
||||
LockFile { package: vec![] }
|
||||
}
|
||||
|
||||
/// Check if LockFile exists in a directory.
|
||||
pub fn exists_at(path: &Path) -> bool {
|
||||
let mut path = Cow::from(path);
|
||||
if path.is_dir() {
|
||||
path.to_mut().push(LOCKFILE_FILENAME);
|
||||
}
|
||||
path.exists()
|
||||
}
|
||||
|
||||
/// Add Package record to the lock file. Chainable.
|
||||
pub fn add_package(&mut self, package: Package) -> &mut Self {
|
||||
self.package.push(package);
|
||||
self
|
||||
}
|
||||
|
||||
/// Print LockFile as toml.
|
||||
pub fn to_string(&self) -> Result<String> {
|
||||
Ok(toml::to_string(self).map_err(PackageError::failed_to_serialize_lock_file)?)
|
||||
}
|
||||
|
||||
/// Form a HashMap of kind:
|
||||
/// ``` imported_name => package_name ```
|
||||
/// for all imported packages.
|
||||
pub fn to_import_map(&self) -> HashMap<String, String> {
|
||||
let mut result = HashMap::new();
|
||||
for package in self.package.iter() {
|
||||
match &package.import_name {
|
||||
Some(name) => result.insert(name.clone(), package.to_string()),
|
||||
None => result.insert(package.name.clone(), package.to_string()),
|
||||
};
|
||||
}
|
||||
|
||||
result
|
||||
}
|
||||
|
||||
/// Write Leo.lock to the given location.
|
||||
pub fn write_to(self, path: &Path) -> Result<()> {
|
||||
let mut path = Cow::from(path);
|
||||
if path.is_dir() {
|
||||
path.to_mut().push(LOCKFILE_FILENAME);
|
||||
}
|
||||
|
||||
File::create(&path)
|
||||
.map_err(|error| PackageError::failed_to_create_lock_file(LOCKFILE_FILENAME, error))?
|
||||
.write_all(self.to_string()?.as_bytes())
|
||||
.map_err(|error| PackageError::failed_to_write_lock_file(LOCKFILE_FILENAME, error))?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
impl TryFrom<&Path> for LockFile {
|
||||
type Error = PackageError;
|
||||
|
||||
fn try_from(path: &Path) -> Result<Self, Self::Error> {
|
||||
let mut path = Cow::from(path);
|
||||
if path.is_dir() {
|
||||
path.to_mut().push(LOCKFILE_FILENAME);
|
||||
}
|
||||
|
||||
let mut file = File::open(path.clone())
|
||||
.map_err(|error| PackageError::failed_to_open_lock_file(LOCKFILE_FILENAME, error))?;
|
||||
let size = file
|
||||
.metadata()
|
||||
.map_err(|error| PackageError::failed_to_get_lock_file_metadata(LOCKFILE_FILENAME, error))?
|
||||
.len() as usize;
|
||||
|
||||
let mut buffer = String::with_capacity(size);
|
||||
file.read_to_string(&mut buffer)
|
||||
.map_err(|error| PackageError::failed_to_read_lock_file(LOCKFILE_FILENAME, error))?;
|
||||
|
||||
toml::from_str(&buffer).map_err(|error| PackageError::failed_to_parse_lock_file(LOCKFILE_FILENAME, error))
|
||||
}
|
||||
}
|
||||
|
||||
impl Package {
|
||||
/// Fill dependencies from Leo Manifest data.
|
||||
pub fn add_dependencies(&mut self, dependencies: &IndexMap<String, Dependency>) {
|
||||
for (import_name, dependency) in dependencies.iter() {
|
||||
self.dependencies
|
||||
.insert(import_name.clone(), Package::from(dependency).to_string());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Display for Package {
|
||||
/// Form an path identifier for a package. It is the path under which package is stored
|
||||
/// inside the `imports/` directory.
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
write!(f, "{}-{}@{}", self.author, self.name, self.version)
|
||||
}
|
||||
}
|
||||
|
||||
impl From<&Dependency> for Package {
|
||||
fn from(dependency: &Dependency) -> Package {
|
||||
Package {
|
||||
name: dependency.package.clone(),
|
||||
author: dependency.author.clone(),
|
||||
version: dependency.version.clone(),
|
||||
dependencies: Default::default(),
|
||||
import_name: None,
|
||||
}
|
||||
}
|
||||
}
|
@ -17,9 +17,11 @@
|
||||
use crate::package::Package;
|
||||
use leo_errors::{PackageError, Result};
|
||||
|
||||
use indexmap::IndexMap;
|
||||
use serde::Deserialize;
|
||||
use std::{
|
||||
borrow::Cow,
|
||||
collections::HashMap,
|
||||
convert::TryFrom,
|
||||
fs::File,
|
||||
io::{Read, Write},
|
||||
@ -34,10 +36,18 @@ pub struct Remote {
|
||||
pub author: String,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Deserialize)]
|
||||
pub struct Dependency {
|
||||
pub author: String,
|
||||
pub version: String,
|
||||
pub package: String,
|
||||
}
|
||||
|
||||
#[derive(Deserialize)]
|
||||
pub struct Manifest {
|
||||
pub project: Package,
|
||||
pub remote: Option<Remote>,
|
||||
pub dependencies: Option<IndexMap<String, Dependency>>,
|
||||
}
|
||||
|
||||
impl Manifest {
|
||||
@ -45,6 +55,7 @@ impl Manifest {
|
||||
Ok(Self {
|
||||
project: Package::new(package_name)?,
|
||||
remote: author.map(|author| Remote { author }),
|
||||
dependencies: Some(IndexMap::<String, Dependency>::new()),
|
||||
})
|
||||
}
|
||||
|
||||
@ -72,6 +83,27 @@ impl Manifest {
|
||||
self.project.description.clone()
|
||||
}
|
||||
|
||||
pub fn get_package_dependencies(&self) -> Option<IndexMap<String, Dependency>> {
|
||||
self.dependencies.clone()
|
||||
}
|
||||
|
||||
/// Get HashMap of kind:
|
||||
/// import name => import directory
|
||||
/// Which then used in AST/ASG to resolve import paths.
|
||||
pub fn get_imports_map(&self) -> Option<HashMap<String, String>> {
|
||||
self.dependencies.clone().map(|dependencies| {
|
||||
dependencies
|
||||
.into_iter()
|
||||
.map(|(name, dependency)| {
|
||||
(
|
||||
name,
|
||||
format!("{}-{}@{}", dependency.author, dependency.package, dependency.version),
|
||||
)
|
||||
})
|
||||
.collect()
|
||||
})
|
||||
}
|
||||
|
||||
pub fn get_package_license(&self) -> Option<String> {
|
||||
self.project.license.clone()
|
||||
}
|
||||
@ -109,6 +141,14 @@ license = "MIT"
|
||||
|
||||
[remote]
|
||||
author = "{author}" # Add your Aleo Package Manager username or team name.
|
||||
|
||||
[target]
|
||||
curve = "bls12_377"
|
||||
proving_system = "groth16"
|
||||
|
||||
[dependencies]
|
||||
# Define dependencies here in format:
|
||||
# name = {{ package = "package-name", author = "author", version = "version" }}
|
||||
"#,
|
||||
name = self.project.name,
|
||||
author = author
|
||||
|
@ -17,6 +17,9 @@
|
||||
pub mod gitignore;
|
||||
pub use self::gitignore::*;
|
||||
|
||||
pub mod lock_file;
|
||||
pub use self::lock_file::*;
|
||||
|
||||
pub mod manifest;
|
||||
pub use self::manifest::*;
|
||||
|
||||
|
@ -156,10 +156,8 @@ impl ZipFile {
|
||||
|
||||
/// Check if the file path should be included in the package zip file.
|
||||
fn is_included(path: &Path) -> bool {
|
||||
// excluded directories: `output`, `imports`
|
||||
if path.ends_with(OUTPUTS_DIRECTORY_NAME.trim_end_matches('/'))
|
||||
| path.ends_with(IMPORTS_DIRECTORY_NAME.trim_end_matches('/'))
|
||||
{
|
||||
// DO NOT include `imports` and `outputs` directories.
|
||||
if path.starts_with(IMPORTS_DIRECTORY_NAME) || path.starts_with(OUTPUTS_DIRECTORY_NAME) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -452,6 +452,7 @@ impl ParserContext {
|
||||
span: expr.span() + &ident.span,
|
||||
circuit: Box::new(expr),
|
||||
name: ident,
|
||||
type_: None,
|
||||
});
|
||||
} else if let Some((num, span)) = self.eat_int() {
|
||||
expr = Expression::TupleAccess(TupleAccessExpression {
|
||||
|
1
test-framework/.gitignore
vendored
Normal file
1
test-framework/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
!src/bin
|
@ -26,3 +26,32 @@ version = "1.0"
|
||||
|
||||
[dependencies.serde_yaml]
|
||||
version = "0.8"
|
||||
|
||||
# List of dependencies for tgc binary;
|
||||
|
||||
[dependencies.leo-ast]
|
||||
path = "../ast"
|
||||
version = "1.5.2"
|
||||
|
||||
[dependencies.leo-ast-passes]
|
||||
path = "../ast-passes"
|
||||
version = "1.5.2"
|
||||
|
||||
[dependencies.leo-parser]
|
||||
path = "../parser"
|
||||
version = "1.5.2"
|
||||
|
||||
[dependencies.leo-imports]
|
||||
path = "../imports"
|
||||
version = "1.5.2"
|
||||
|
||||
[dependencies.leo-asg]
|
||||
path = "../asg"
|
||||
version = "1.5.2"
|
||||
|
||||
[dependencies.leo-compiler]
|
||||
path = "../compiler"
|
||||
version = "1.5.2"
|
||||
|
||||
[dependencies.structopt]
|
||||
version = "0.3"
|
||||
|
166
test-framework/src/bin/tgc.rs
Normal file
166
test-framework/src/bin/tgc.rs
Normal file
@ -0,0 +1,166 @@
|
||||
// Copyright (C) 2019-2021 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 <https://www.gnu.org/licenses/>.
|
||||
|
||||
use leo_asg::Asg;
|
||||
use leo_ast::AstPass;
|
||||
use leo_compiler::{compiler::thread_leaked_context, TypeInferencePhase};
|
||||
use leo_imports::ImportParser;
|
||||
use leo_test_framework::{
|
||||
fetch::find_tests,
|
||||
test::{extract_test_config, TestExpectationMode as Expectation},
|
||||
};
|
||||
|
||||
use std::{error::Error, fs, path::PathBuf};
|
||||
use structopt::{clap::AppSettings, StructOpt};
|
||||
|
||||
#[derive(StructOpt)]
|
||||
#[structopt(name = "ast-stages-generator", author = "The Aleo Team <hello@aleo.org>", setting = AppSettings::ColoredHelp)]
|
||||
struct Opt {
|
||||
#[structopt(
|
||||
short,
|
||||
long,
|
||||
help = "Path to the output folder (auto generated)",
|
||||
default_value = "tmp/tgc"
|
||||
)]
|
||||
path: PathBuf,
|
||||
|
||||
#[structopt(short, long, help = "Run only for test that match pattern")]
|
||||
filter: Option<String>,
|
||||
|
||||
#[structopt(short, long, help = "Skip tests matching pattern")]
|
||||
skip: Option<Vec<String>>,
|
||||
}
|
||||
|
||||
fn main() {
|
||||
handle_error(run_with_args(Opt::from_args()));
|
||||
}
|
||||
|
||||
fn run_with_args(opt: Opt) -> Result<(), Box<dyn Error>> {
|
||||
// Variable that stores all the tests.
|
||||
let mut tests = Vec::new();
|
||||
let mut test_dir = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
|
||||
test_dir.push("../tests/");
|
||||
find_tests(&test_dir, &mut tests);
|
||||
|
||||
if !opt.path.exists() {
|
||||
fs::create_dir_all(&opt.path)?;
|
||||
}
|
||||
|
||||
// Prepare directory for placing results.
|
||||
'main_loop: for (index, (path, text)) in tests.iter().enumerate() {
|
||||
if let Some(config) = extract_test_config(text) {
|
||||
// Skip namespaces that we don't need; also skip failure tests.
|
||||
if config.namespace != "Compile" || config.expectation == Expectation::Fail {
|
||||
continue;
|
||||
}
|
||||
|
||||
let mut test_name = path
|
||||
.split("tests/")
|
||||
.last()
|
||||
.unwrap()
|
||||
.replace(std::path::MAIN_SEPARATOR, "_");
|
||||
|
||||
// Filter out the tests that do not match pattern, if pattern is set.
|
||||
if let Some(filter) = &opt.filter {
|
||||
if !test_name.contains(filter) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
// If skip flag is used, don't run tests matching the pattern.
|
||||
if let Some(skips) = &opt.skip {
|
||||
for skip_pattern in skips {
|
||||
if test_name.contains(skip_pattern) {
|
||||
println!("Skipping: {} because of {}", test_name, skip_pattern);
|
||||
continue 'main_loop;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
test_name.push_str(&format!("_{}", index));
|
||||
|
||||
// Create directory for this file.
|
||||
let mut target = PathBuf::from("tmp/tgc");
|
||||
target.push(test_name);
|
||||
|
||||
if !target.exists() {
|
||||
fs::create_dir_all(target.clone())?;
|
||||
}
|
||||
|
||||
let cwd = config
|
||||
.extra
|
||||
.get("cwd")
|
||||
.map(|val| {
|
||||
let mut cwd = PathBuf::from(path);
|
||||
cwd.pop();
|
||||
cwd.join(&val.as_str().unwrap())
|
||||
})
|
||||
.unwrap_or(PathBuf::from(path));
|
||||
|
||||
// Write all files into the directory.
|
||||
let (initial, canonicalized, type_inferenced) = generate_asts(cwd, text)?;
|
||||
|
||||
target.push("initial_ast.json");
|
||||
fs::write(target.clone(), initial)?;
|
||||
target.pop();
|
||||
|
||||
target.push("canonicalization_ast.json");
|
||||
fs::write(target.clone(), canonicalized)?;
|
||||
target.pop();
|
||||
|
||||
target.push("type_inferenced_ast.json");
|
||||
fs::write(target.clone(), type_inferenced)?;
|
||||
}
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
/// Do what Compiler does - prepare 3 stages of AST: initial, canonicalized and type_inferenced
|
||||
fn generate_asts(path: PathBuf, text: &String) -> Result<(String, String, String), Box<dyn Error>> {
|
||||
let mut ast = leo_parser::parse_ast(path.clone().into_os_string().into_string().unwrap(), text)?;
|
||||
let initial = ast.to_json_string()?;
|
||||
|
||||
ast = leo_ast_passes::Importer::do_pass(
|
||||
ast.into_repr(),
|
||||
ImportParser::new(path, Default::default()),
|
||||
)?;
|
||||
|
||||
ast = leo_ast_passes::Canonicalizer::do_pass(ast.into_repr())?;
|
||||
let canonicalized = ast.to_json_string()?;
|
||||
|
||||
let asg = Asg::new(
|
||||
thread_leaked_context(),
|
||||
&ast,
|
||||
)?;
|
||||
|
||||
let type_inferenced = TypeInferencePhase::default()
|
||||
.phase_ast(&ast.into_repr(), &asg.clone().into_repr())
|
||||
.expect("Failed to produce type inference ast.")
|
||||
.to_json_string()?;
|
||||
|
||||
Ok((initial, canonicalized, type_inferenced))
|
||||
}
|
||||
|
||||
fn handle_error(res: Result<(), Box<dyn Error>>) {
|
||||
match res {
|
||||
Ok(_) => (),
|
||||
Err(err) => {
|
||||
eprintln!("Error: {}", err);
|
||||
std::process::exit(1);
|
||||
}
|
||||
}
|
||||
}
|
@ -22,7 +22,7 @@ pub enum TestExpectationMode {
|
||||
Fail,
|
||||
}
|
||||
|
||||
#[derive(serde::Serialize, serde::Deserialize)]
|
||||
#[derive(Debug, serde::Serialize, serde::Deserialize)]
|
||||
pub struct TestConfig {
|
||||
pub namespace: String,
|
||||
pub expectation: TestExpectationMode,
|
||||
|
@ -0,0 +1,6 @@
|
||||
[main]
|
||||
x: u8 = 3;
|
||||
y: bool = true;
|
||||
|
||||
[registers]
|
||||
a: u8 = 0;
|
@ -0,0 +1,9 @@
|
||||
/*
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
input_file: inputs/ternary_explicit_and_implicit.in
|
||||
*/
|
||||
|
||||
function main(x: u8, y: bool) -> u8 {
|
||||
return y ? x : 2;
|
||||
}
|
@ -16,7 +16,13 @@ outputs:
|
||||
out:
|
||||
type: bool
|
||||
value: "true"
|
||||
<<<<<<< HEAD
|
||||
initial_ast: 989d9de839e0e74a27333a90066c5d7b1e1bd404a41e7f9e49a691360fb4d8dc
|
||||
imports_resolved_ast: 4ca172d902f797a1d225223900fbf3f01a68c44ad5a0cf402e719f9e5961988b
|
||||
canonicalized_ast: 0c65e90065d4363e1a51b3b7f3ec1e94281958fdbd76aa47b42ae678a2bf5042
|
||||
type_inferenced_ast: 3138d69d125bfe3f0eaaa85d52ffa5934a750274a4e8f031b4945f9d0d98c807
|
||||
=======
|
||||
initial_ast: 9a4630fa0959a626a26800f00d05a203e35f4389a9d17a6dc491eb725ef3a529
|
||||
canonicalized_ast: 6c7df16234b6b4d8aaa6ca1d761bcffb5b05893cc515b6f4d72118bc8e495b7e
|
||||
type_inferenced_ast: 4aa60801f15fb817e16eb9f9bd4d6bed555c9130d88edebb3ba78302879703a1
|
||||
>>>>>>> 7a5979660b7c4200fc3c8feb3263dbadd04daf0a
|
||||
|
@ -22,7 +22,13 @@ outputs:
|
||||
r:
|
||||
type: "[u8; 3]"
|
||||
value: "\"123\""
|
||||
<<<<<<< HEAD
|
||||
initial_ast: 5b224262cdf11d2a6e114637866c5768c6013ceea2a7602884bddf470652fd84
|
||||
imports_resolved_ast: 4ca172d902f797a1d225223900fbf3f01a68c44ad5a0cf402e719f9e5961988b
|
||||
canonicalized_ast: 5b224262cdf11d2a6e114637866c5768c6013ceea2a7602884bddf470652fd84
|
||||
type_inferenced_ast: 900f2882fecb7096f0862b05fa64bd9c0a8d51ae4fb255994062234e9451acf2
|
||||
=======
|
||||
initial_ast: 1c07965336635dce8cd66c67eddf25a51f61a3b90513f87ef123c642a9b5b18a
|
||||
canonicalized_ast: 1c07965336635dce8cd66c67eddf25a51f61a3b90513f87ef123c642a9b5b18a
|
||||
type_inferenced_ast: cf35fa9ca18f19ac75ca522a77e310b02ff56ac1d748cd5df5c2204bba4a4802
|
||||
>>>>>>> 7a5979660b7c4200fc3c8feb3263dbadd04daf0a
|
||||
|
@ -100,7 +100,13 @@ outputs:
|
||||
r:
|
||||
type: char
|
||||
value: "'\\u{1f62d}'"
|
||||
<<<<<<< HEAD
|
||||
initial_ast: 9b476ab0cc1f82ffbe5735bdc9839290da1f19b860193bc6ca76dac7086797a9
|
||||
imports_resolved_ast: 4ca172d902f797a1d225223900fbf3f01a68c44ad5a0cf402e719f9e5961988b
|
||||
canonicalized_ast: 9b476ab0cc1f82ffbe5735bdc9839290da1f19b860193bc6ca76dac7086797a9
|
||||
type_inferenced_ast: c1b6a8e1c31fe2eb3c523e9d142093f4bd0ea426c0bb1b179ee4b3624e202102
|
||||
=======
|
||||
initial_ast: 715a33d0032f02d69d13687ac98005a789b6bcb63ff619865b21f0c691f14a75
|
||||
canonicalized_ast: 715a33d0032f02d69d13687ac98005a789b6bcb63ff619865b21f0c691f14a75
|
||||
type_inferenced_ast: d04164068277e88b5529f1072b512ffadc7eaaf704c8a3e394a409e783cc1e27
|
||||
>>>>>>> 7a5979660b7c4200fc3c8feb3263dbadd04daf0a
|
||||
|
@ -16,7 +16,13 @@ outputs:
|
||||
r0:
|
||||
type: bool
|
||||
value: "true"
|
||||
<<<<<<< HEAD
|
||||
initial_ast: f07f94732bac78a34babc46bf89d52fd54e94d26a542c4ac9c8be18b4e134147
|
||||
imports_resolved_ast: 4ca172d902f797a1d225223900fbf3f01a68c44ad5a0cf402e719f9e5961988b
|
||||
canonicalized_ast: da80138eeba68ac6fd321c5e70a6b2c8c684164df2e7b8a567c96e5f5fae49b3
|
||||
type_inferenced_ast: 535b85a7fdf15d30b0fb862432abc822129ca90e4ab95861e76692aa2b8d1865
|
||||
=======
|
||||
initial_ast: bc330763338677f23601b03f5665bd8f42f8143f59cc9b4803fb693b3cfa0311
|
||||
canonicalized_ast: fbff610ef772ee7f997b4bc4cd7c2a3f2024d70af35b94a966ca6a0f19f15194
|
||||
type_inferenced_ast: f6b0159f6bffeff8e3cde7f13c97ac5d537b40855271a4a13d07a84d24d78504
|
||||
>>>>>>> 7a5979660b7c4200fc3c8feb3263dbadd04daf0a
|
||||
|
@ -16,7 +16,13 @@ outputs:
|
||||
r0:
|
||||
type: bool
|
||||
value: "true"
|
||||
<<<<<<< HEAD
|
||||
initial_ast: 43c77feea5d5dd8c43bf9683bcaaef76a2ad8f0c60107b8bb083ef209c8d4f25
|
||||
imports_resolved_ast: 4ca172d902f797a1d225223900fbf3f01a68c44ad5a0cf402e719f9e5961988b
|
||||
canonicalized_ast: 43c77feea5d5dd8c43bf9683bcaaef76a2ad8f0c60107b8bb083ef209c8d4f25
|
||||
type_inferenced_ast: 3152b144908381ea564e157067b103f10cfa0cdaad30d683ca3ad0063f32c6d4
|
||||
=======
|
||||
initial_ast: 601fb882472ee0ff4aea3330822936a9df64bfc8ceefcd83f000bb3094878d47
|
||||
canonicalized_ast: 601fb882472ee0ff4aea3330822936a9df64bfc8ceefcd83f000bb3094878d47
|
||||
type_inferenced_ast: 110a4e51c4c0ace6c0f3aa385e1735cb4ecf3cfea2a9d2ab7591da3826582c31
|
||||
>>>>>>> 7a5979660b7c4200fc3c8feb3263dbadd04daf0a
|
||||
|
@ -16,7 +16,13 @@ outputs:
|
||||
r0:
|
||||
type: bool
|
||||
value: "true"
|
||||
<<<<<<< HEAD
|
||||
initial_ast: 67297ef0189a61ca4642ab67d2a065cce9b1c3f991c60b38609254f3e2baaa69
|
||||
imports_resolved_ast: 4ca172d902f797a1d225223900fbf3f01a68c44ad5a0cf402e719f9e5961988b
|
||||
canonicalized_ast: 67297ef0189a61ca4642ab67d2a065cce9b1c3f991c60b38609254f3e2baaa69
|
||||
type_inferenced_ast: 5ac0f8474890799611ef0a16a6f89e6fc673107bcad36e76909b16a932932c1e
|
||||
=======
|
||||
initial_ast: 63f34a3b537f3221e8711828f7d0953c0766627c0cdb2e37933b88a93550e261
|
||||
canonicalized_ast: 63f34a3b537f3221e8711828f7d0953c0766627c0cdb2e37933b88a93550e261
|
||||
type_inferenced_ast: 29604fd57ee8658f83e552bc6496541ebcebb91afa313a1706b285fe18385c4c
|
||||
>>>>>>> 7a5979660b7c4200fc3c8feb3263dbadd04daf0a
|
||||
|
@ -16,7 +16,13 @@ outputs:
|
||||
r0:
|
||||
type: u32
|
||||
value: "100"
|
||||
<<<<<<< HEAD
|
||||
initial_ast: e40f94044b364e85706d791db55cafa482f8d70aa85861f823be0357821381ff
|
||||
imports_resolved_ast: 4ca172d902f797a1d225223900fbf3f01a68c44ad5a0cf402e719f9e5961988b
|
||||
canonicalized_ast: e40f94044b364e85706d791db55cafa482f8d70aa85861f823be0357821381ff
|
||||
type_inferenced_ast: 5823efea8a487179c8a12b9a2b7987952c5ee62abf0b73fcada58ec28d06531d
|
||||
=======
|
||||
initial_ast: c76bd461573b9bb3622a74b5c5a10a98402b8c86c13086c01c161b77aac0c642
|
||||
canonicalized_ast: c76bd461573b9bb3622a74b5c5a10a98402b8c86c13086c01c161b77aac0c642
|
||||
type_inferenced_ast: 213f747571838133c62a73574f769d25fd42afce151e580be42d1d9d7b62033b
|
||||
>>>>>>> 7a5979660b7c4200fc3c8feb3263dbadd04daf0a
|
||||
|
@ -16,7 +16,13 @@ outputs:
|
||||
r0:
|
||||
type: bool
|
||||
value: "true"
|
||||
<<<<<<< HEAD
|
||||
initial_ast: 73ed50cda12e4cb9f06b4118324f9eba10383ffd79883ff9d10d04f328d18819
|
||||
imports_resolved_ast: 4ca172d902f797a1d225223900fbf3f01a68c44ad5a0cf402e719f9e5961988b
|
||||
canonicalized_ast: 314434fd2549c45af345d678e5b202c9f72a5e4219f6122d733188fd64d12c30
|
||||
type_inferenced_ast: 01f97cdd9186508c334e1546c9e700bcbd4ea103926fc8d2112ed439105dc0cf
|
||||
=======
|
||||
initial_ast: 3b07cdd6e203ad5775a6c75a4598330e4bf7b04616bdbd532df20bd7bba1981d
|
||||
canonicalized_ast: f87f269c06e5eb1d6802b4a92c9a4af2a3966583dbaa2454b5468b3f56114a15
|
||||
type_inferenced_ast: 73ed7092d40d9b7e5be744e14da191eaa7f0758b6027c7e984365bd33e07ae2d
|
||||
>>>>>>> 7a5979660b7c4200fc3c8feb3263dbadd04daf0a
|
||||
|
@ -16,7 +16,13 @@ outputs:
|
||||
r0:
|
||||
type: bool
|
||||
value: "true"
|
||||
<<<<<<< HEAD
|
||||
initial_ast: dc9e548133ab1e7b8fdb11cabc90a5761e17cd5126c75697bd3261ee41875013
|
||||
imports_resolved_ast: 4ca172d902f797a1d225223900fbf3f01a68c44ad5a0cf402e719f9e5961988b
|
||||
canonicalized_ast: dc9e548133ab1e7b8fdb11cabc90a5761e17cd5126c75697bd3261ee41875013
|
||||
type_inferenced_ast: 41e3e10f22639e3a59bbfd5347bc55d9f8d08a7457697dadcf58fe168d1e52a9
|
||||
=======
|
||||
initial_ast: b53c2c321c3f6ee2202eaca1e709607f5e82f9e456be132b08493de57b1c4089
|
||||
canonicalized_ast: b53c2c321c3f6ee2202eaca1e709607f5e82f9e456be132b08493de57b1c4089
|
||||
type_inferenced_ast: a94dfe431aa43189323427aadb33120d4ac03e19b9a898353858c26b624869ed
|
||||
>>>>>>> 7a5979660b7c4200fc3c8feb3263dbadd04daf0a
|
||||
|
@ -16,7 +16,13 @@ outputs:
|
||||
r0:
|
||||
type: bool
|
||||
value: "true"
|
||||
<<<<<<< HEAD
|
||||
initial_ast: 7f98f34694dff74fb29f362ffcf6a1c4e6ee13d3b2dbc20f04c375135491bab2
|
||||
imports_resolved_ast: 4ca172d902f797a1d225223900fbf3f01a68c44ad5a0cf402e719f9e5961988b
|
||||
canonicalized_ast: 7f98f34694dff74fb29f362ffcf6a1c4e6ee13d3b2dbc20f04c375135491bab2
|
||||
type_inferenced_ast: 9e9df4ff40f29b9261e46ad45fd159d3c135c0037a8f72a2b927321dae0005ad
|
||||
=======
|
||||
initial_ast: 8b7192c1472be002b294589105832ae0e979e964fc62e63ba22b1f0cf3b762e5
|
||||
canonicalized_ast: 8b7192c1472be002b294589105832ae0e979e964fc62e63ba22b1f0cf3b762e5
|
||||
type_inferenced_ast: 14d9f0f0a222b6ec4236b0eb75e0740d624279181bb7ab9281752529b0a0f417
|
||||
>>>>>>> 7a5979660b7c4200fc3c8feb3263dbadd04daf0a
|
||||
|
@ -16,7 +16,13 @@ outputs:
|
||||
r0:
|
||||
type: bool
|
||||
value: "true"
|
||||
<<<<<<< HEAD
|
||||
initial_ast: 0ac9bb4bd1f8a0415729a64e2139a66e747f4115d10d17a319d78aef7532f062
|
||||
imports_resolved_ast: 4ca172d902f797a1d225223900fbf3f01a68c44ad5a0cf402e719f9e5961988b
|
||||
canonicalized_ast: 0ac9bb4bd1f8a0415729a64e2139a66e747f4115d10d17a319d78aef7532f062
|
||||
type_inferenced_ast: 1afd585064d117e92b84c7aee2c7a20403b9acb126c256fc627d27810715f0f1
|
||||
=======
|
||||
initial_ast: 7abdf292d56f99ef05e39c1a55a6071d9d69ca8c8e537e08201472f057e7a127
|
||||
canonicalized_ast: 7abdf292d56f99ef05e39c1a55a6071d9d69ca8c8e537e08201472f057e7a127
|
||||
type_inferenced_ast: db8685abd4ffc32fa55786b847eff1d0694b871c1757eec70757879d82856872
|
||||
>>>>>>> 7a5979660b7c4200fc3c8feb3263dbadd04daf0a
|
||||
|
@ -16,7 +16,13 @@ outputs:
|
||||
r0:
|
||||
type: bool
|
||||
value: "true"
|
||||
<<<<<<< HEAD
|
||||
initial_ast: e5f0db833c0c7b531575f2d8ffc5174ab383de5e3a0b37e53c700d5b7ce4a4f3
|
||||
imports_resolved_ast: 4ca172d902f797a1d225223900fbf3f01a68c44ad5a0cf402e719f9e5961988b
|
||||
canonicalized_ast: e5f0db833c0c7b531575f2d8ffc5174ab383de5e3a0b37e53c700d5b7ce4a4f3
|
||||
type_inferenced_ast: 4c771c6cd61a2b7acdf63f7ecd0d8c129f843a67895b28cf5462c771bcade692
|
||||
=======
|
||||
initial_ast: ca98bec50adc76ce348e28e7020d6e99cb6aa8fb733e0e0bce023ca8d1e3e4b6
|
||||
canonicalized_ast: ca98bec50adc76ce348e28e7020d6e99cb6aa8fb733e0e0bce023ca8d1e3e4b6
|
||||
type_inferenced_ast: ec5aad932c3d0d016142a7d288328547949da8add55025076c5d404d2451917d
|
||||
>>>>>>> 7a5979660b7c4200fc3c8feb3263dbadd04daf0a
|
||||
|
@ -16,7 +16,13 @@ outputs:
|
||||
r0:
|
||||
type: bool
|
||||
value: "true"
|
||||
<<<<<<< HEAD
|
||||
initial_ast: 8e55e7c3d98c1b19192ef8f03c57f9344dd2b5b234c7d7c70387a6940046f910
|
||||
imports_resolved_ast: 4ca172d902f797a1d225223900fbf3f01a68c44ad5a0cf402e719f9e5961988b
|
||||
canonicalized_ast: 01682b1b73af0485dbbfc339b09da0dc94bf0b949b5b6f40e221557b7ecf4ab0
|
||||
type_inferenced_ast: 0252502dbb4787f01bb1a0023449cf019fe0358dd6ff9c6f0286fc136f55bac6
|
||||
=======
|
||||
initial_ast: a9313db75382b5afb38e9453bdb0dd6c0aa7368cf11e208eb0ca8124ea615d8b
|
||||
canonicalized_ast: 3d4bb330e687601978d3f68544582d93c3bace6c0d3e8808c409b8534c563403
|
||||
type_inferenced_ast: 14b0aa9c6d83ca85c625cdc78e4cf96dcbe1672b98c379e8783744d59d699bb1
|
||||
>>>>>>> 7a5979660b7c4200fc3c8feb3263dbadd04daf0a
|
||||
|
@ -16,7 +16,13 @@ outputs:
|
||||
r0:
|
||||
type: bool
|
||||
value: "true"
|
||||
<<<<<<< HEAD
|
||||
initial_ast: 6c1834fac73685b7f11e5f2b7b59b91e365f46f16d790a26353ae681ee9d899e
|
||||
imports_resolved_ast: 4ca172d902f797a1d225223900fbf3f01a68c44ad5a0cf402e719f9e5961988b
|
||||
canonicalized_ast: 68abcbaa309fd92cb96081ce7c2178bbabb8f11febbeabfcd81097f273b91f6f
|
||||
type_inferenced_ast: ff0e83493a593fbf0c2dcb83a91cf689bce6e86728056a0019325c0eed1a6f18
|
||||
=======
|
||||
initial_ast: ff029cd4035cb046857e7e8c0ff56c843969d2f04db76ced2698a20cf0491485
|
||||
canonicalized_ast: 88447a6c1f7b92f4af7d9cecd7fd8d6fa5e96ed5dd6c6fde5897cf3df3f5cbc5
|
||||
type_inferenced_ast: 51a081de631b9b95b2055ea5ba6a52d17972caf8bf7c70dadd49801af9d011f9
|
||||
>>>>>>> 7a5979660b7c4200fc3c8feb3263dbadd04daf0a
|
||||
|
@ -16,7 +16,13 @@ outputs:
|
||||
r0:
|
||||
type: bool
|
||||
value: "true"
|
||||
<<<<<<< HEAD
|
||||
initial_ast: f501c921a78999fc6e7a947480a76a9240ee419a1111b7c24dfde99bf38bc0a5
|
||||
imports_resolved_ast: 4ca172d902f797a1d225223900fbf3f01a68c44ad5a0cf402e719f9e5961988b
|
||||
canonicalized_ast: 654509d561a595bcca1737be56db8dbd215a072b10d650e8f5804e7ec45b5ac2
|
||||
type_inferenced_ast: 2c412c4544cd51d5fac6b3358a8e2d52493bb41ed721ae5b1ca3355ec0a81041
|
||||
=======
|
||||
initial_ast: 5d815c98c76a76dd93051902eae718df3db66e0268ba9af8ae62ef7af19b1d48
|
||||
canonicalized_ast: 798961ad9da5a767a98882ff36944483f1f1412dcf10f67acf1f390a19bfc138
|
||||
type_inferenced_ast: 6dbfd429fa50f0017a01dae57ae2a98e7452ab7c54bfcd251e1ed40e5f28176c
|
||||
>>>>>>> 7a5979660b7c4200fc3c8feb3263dbadd04daf0a
|
||||
|
@ -16,7 +16,13 @@ outputs:
|
||||
r0:
|
||||
type: bool
|
||||
value: "true"
|
||||
<<<<<<< HEAD
|
||||
initial_ast: eecddf66e9512c6561975460de06fd2bd9471855123469a3dcd4d9abcc1f77a8
|
||||
imports_resolved_ast: 4ca172d902f797a1d225223900fbf3f01a68c44ad5a0cf402e719f9e5961988b
|
||||
canonicalized_ast: eecddf66e9512c6561975460de06fd2bd9471855123469a3dcd4d9abcc1f77a8
|
||||
type_inferenced_ast: a9731a7040e442e0c002cf33c0573327ad6e9e70bc6c0f6c3fc8ff6e0ac33e4b
|
||||
=======
|
||||
initial_ast: 357f19fd5e1fbbbeec8a18bcf14c30a7504feacbc88ffbd26e78eedf1d593275
|
||||
canonicalized_ast: 357f19fd5e1fbbbeec8a18bcf14c30a7504feacbc88ffbd26e78eedf1d593275
|
||||
type_inferenced_ast: aa3bf1734030119bb595a42d268b30509506ee06cf413b14bcde4e9056679dac
|
||||
>>>>>>> 7a5979660b7c4200fc3c8feb3263dbadd04daf0a
|
||||
|
@ -16,7 +16,13 @@ outputs:
|
||||
r0:
|
||||
type: bool
|
||||
value: "true"
|
||||
<<<<<<< HEAD
|
||||
initial_ast: 051832f5f111f33d959c336e83b7b1f1b3a8e6e9653164c7dbb3b8978aa65dc6
|
||||
imports_resolved_ast: 4ca172d902f797a1d225223900fbf3f01a68c44ad5a0cf402e719f9e5961988b
|
||||
canonicalized_ast: c24cc402da9bae0609c8fab4d4c89b8329e63aa8c997ba043c1e19c60b0b8fe8
|
||||
type_inferenced_ast: 3164bb87de97e4e5917c91708198a4ac57c7c2c7ef652efea55321e0364def3d
|
||||
=======
|
||||
initial_ast: bb1ea12ac46ffd912b45b6febd71de41691c9aa064d07d5492e31845e72d00f2
|
||||
canonicalized_ast: ad957837a54fca62c6da8665a04dbf57cb87b5c5a000038a1b900c2be359a178
|
||||
type_inferenced_ast: 0fe1f5ac625424734a5140253228e3a6cde9f548b6deb18907f3ac49871180cc
|
||||
>>>>>>> 7a5979660b7c4200fc3c8feb3263dbadd04daf0a
|
||||
|
@ -16,7 +16,13 @@ outputs:
|
||||
r0:
|
||||
type: bool
|
||||
value: "true"
|
||||
<<<<<<< HEAD
|
||||
initial_ast: 082c29964fcf1fdfcaf361e1c2b1416a995798e8811b820e0c488e3b96f4ed4c
|
||||
imports_resolved_ast: 4ca172d902f797a1d225223900fbf3f01a68c44ad5a0cf402e719f9e5961988b
|
||||
canonicalized_ast: ce0c0b72b2ffe01a08b7400d99cd7abcd178a8ebb79bbf2a5ccb10d101a57fde
|
||||
type_inferenced_ast: 2c66fa00dc29469f9ad1b0762df83e3ac1912adf49b444afa2405b1740734d0c
|
||||
=======
|
||||
initial_ast: 41a569090cff5eba31d9640b3f9e8d8585dfcd817d25a42a48edcd2d522fbb72
|
||||
canonicalized_ast: 5150d7b2463ec10096f925fde523a4b956093ca44579487a82f15554fd7c32ed
|
||||
type_inferenced_ast: 71d1f128ff9c4fa1df5189139360f4ccb3a460e83034c635952e6875c7fe41bb
|
||||
>>>>>>> 7a5979660b7c4200fc3c8feb3263dbadd04daf0a
|
||||
|
@ -16,7 +16,13 @@ outputs:
|
||||
r0:
|
||||
type: bool
|
||||
value: "true"
|
||||
<<<<<<< HEAD
|
||||
initial_ast: ce740d6b7b1ed8bdff8d802f5d46d0454e4f349b3245dbed04c05123432e584c
|
||||
imports_resolved_ast: 4ca172d902f797a1d225223900fbf3f01a68c44ad5a0cf402e719f9e5961988b
|
||||
canonicalized_ast: ce740d6b7b1ed8bdff8d802f5d46d0454e4f349b3245dbed04c05123432e584c
|
||||
type_inferenced_ast: 24fbc61fd3ad00398d9bd220f669b2e67457f4a1822668ad6dfc5ccf65fe7cbd
|
||||
=======
|
||||
initial_ast: 5627039d5f3151255d4c7fff31fa548febc788fe2717606a4814a91937fee405
|
||||
canonicalized_ast: 5627039d5f3151255d4c7fff31fa548febc788fe2717606a4814a91937fee405
|
||||
type_inferenced_ast: 88e398f6f173de48fb7a6109fe886fd59b2fae70d1b9ccc53fd447d9b46ad0a3
|
||||
>>>>>>> 7a5979660b7c4200fc3c8feb3263dbadd04daf0a
|
||||
|
@ -19,7 +19,13 @@ outputs:
|
||||
r1:
|
||||
type: bool
|
||||
value: "true"
|
||||
<<<<<<< HEAD
|
||||
initial_ast: f9560bc24ddf16ed20377eddc0e72787635d4b4935c65cb569688bf27c916f9a
|
||||
imports_resolved_ast: 4ca172d902f797a1d225223900fbf3f01a68c44ad5a0cf402e719f9e5961988b
|
||||
canonicalized_ast: f9560bc24ddf16ed20377eddc0e72787635d4b4935c65cb569688bf27c916f9a
|
||||
type_inferenced_ast: 78924e9c0236e48f96d78c2c69092d512a2d98809acd4c7668bf81f383b04b66
|
||||
=======
|
||||
initial_ast: db801c467c6e6bd413b951d6a8f95e841e0254a3f00a3e1ff903ab2dcd63b253
|
||||
canonicalized_ast: db801c467c6e6bd413b951d6a8f95e841e0254a3f00a3e1ff903ab2dcd63b253
|
||||
type_inferenced_ast: 575c9b880a4a061bce5ace598d6d4195ca0f41278afc2b1a950c74052b2b9cef
|
||||
>>>>>>> 7a5979660b7c4200fc3c8feb3263dbadd04daf0a
|
||||
|
@ -16,7 +16,13 @@ outputs:
|
||||
r0:
|
||||
type: bool
|
||||
value: "false"
|
||||
<<<<<<< HEAD
|
||||
initial_ast: 30c5d5bbed9c1407b452a5e825308711e4301cff0ffb27d12d64ec20f08bc21f
|
||||
imports_resolved_ast: 4ca172d902f797a1d225223900fbf3f01a68c44ad5a0cf402e719f9e5961988b
|
||||
canonicalized_ast: 2b4b6ebee33028b6ec5c5b71bb9f83ac9f09fed2f6a9a98eb124d632b717a887
|
||||
type_inferenced_ast: 69c999727c1adffd4e11796fcfbae66ee0777e8ed6d342c912e5e2ef95572c4b
|
||||
=======
|
||||
initial_ast: d8d093539faee853421ce529aec6b222a651c494ca9f2a6eb4faafc443bbc02d
|
||||
canonicalized_ast: 0556a49c8e1ef663c4428d9c5c315dcfa0721a000d0d482bc10f9c164ef1a4de
|
||||
type_inferenced_ast: bb15e2202bb322be9f823823c780b5771854cebc311f107d51a88d0e601fa41e
|
||||
>>>>>>> 7a5979660b7c4200fc3c8feb3263dbadd04daf0a
|
||||
|
@ -16,7 +16,13 @@ outputs:
|
||||
b:
|
||||
type: bool
|
||||
value: "true"
|
||||
<<<<<<< HEAD
|
||||
initial_ast: 66e43e65f41365d8440956c5c918ec35abc1948b5b7aacdcbffb24b7b6d82e59
|
||||
imports_resolved_ast: 4ca172d902f797a1d225223900fbf3f01a68c44ad5a0cf402e719f9e5961988b
|
||||
canonicalized_ast: 66e43e65f41365d8440956c5c918ec35abc1948b5b7aacdcbffb24b7b6d82e59
|
||||
type_inferenced_ast: c065bd130d1dee1ee9558b58cad2f45eb4043d7d5e194fe74ff761cd5e706929
|
||||
=======
|
||||
initial_ast: 2e0d03e2ad668ec5149102d0f9de870d0b3d263fb5c460471db913b5c15e153b
|
||||
canonicalized_ast: 2e0d03e2ad668ec5149102d0f9de870d0b3d263fb5c460471db913b5c15e153b
|
||||
type_inferenced_ast: ab37500c6660ca13113fe642160046179b9713d848ab712cd1c57b6e82ac7916
|
||||
>>>>>>> 7a5979660b7c4200fc3c8feb3263dbadd04daf0a
|
||||
|
@ -16,7 +16,13 @@ outputs:
|
||||
r0:
|
||||
type: bool
|
||||
value: "true"
|
||||
<<<<<<< HEAD
|
||||
initial_ast: 1fd3354e8158c97199b2916ea75c5b50904bfc486c61db2f99388432b58df628
|
||||
imports_resolved_ast: 4ca172d902f797a1d225223900fbf3f01a68c44ad5a0cf402e719f9e5961988b
|
||||
canonicalized_ast: 1fd3354e8158c97199b2916ea75c5b50904bfc486c61db2f99388432b58df628
|
||||
type_inferenced_ast: 70ad34288f72385b5c9fff5f2d2102f14aba1faec15cb01971d02966a3d17666
|
||||
=======
|
||||
initial_ast: 7c42b985a3e0013f38398639442535e6f40af6f379d9af65387e707cd97fb146
|
||||
canonicalized_ast: 7c42b985a3e0013f38398639442535e6f40af6f379d9af65387e707cd97fb146
|
||||
type_inferenced_ast: aeb12c856d7aa61002723056fc228fa4d342076b7c2bac597269f426a29a4cb2
|
||||
>>>>>>> 7a5979660b7c4200fc3c8feb3263dbadd04daf0a
|
||||
|
@ -16,7 +16,13 @@ outputs:
|
||||
r0:
|
||||
type: bool
|
||||
value: "true"
|
||||
<<<<<<< HEAD
|
||||
initial_ast: 73ea1d8369e1c1cdb79251ef8c0a67670a51823308545261bcfafba2175d9436
|
||||
imports_resolved_ast: 4ca172d902f797a1d225223900fbf3f01a68c44ad5a0cf402e719f9e5961988b
|
||||
canonicalized_ast: 73ea1d8369e1c1cdb79251ef8c0a67670a51823308545261bcfafba2175d9436
|
||||
type_inferenced_ast: f12528b216b0da1cadda8e038b43244a309d0d91ce4f275faaa2ae43eafca649
|
||||
=======
|
||||
initial_ast: 9cca50f35319c4b4e776c170a2936cb7e0a82c2d458bd725a282f1eaa3f01391
|
||||
canonicalized_ast: 9cca50f35319c4b4e776c170a2936cb7e0a82c2d458bd725a282f1eaa3f01391
|
||||
type_inferenced_ast: d75b58e775d20e72834683792cbf09339bb9f07ce05501d0331026cc0fe859cf
|
||||
>>>>>>> 7a5979660b7c4200fc3c8feb3263dbadd04daf0a
|
||||
|
@ -16,7 +16,13 @@ outputs:
|
||||
r0:
|
||||
type: bool
|
||||
value: "true"
|
||||
<<<<<<< HEAD
|
||||
initial_ast: 5388060e8ce3e339dc87dd20af16166fedc03f0f1bfd3e53f60b69fb584ae9d8
|
||||
imports_resolved_ast: 4ca172d902f797a1d225223900fbf3f01a68c44ad5a0cf402e719f9e5961988b
|
||||
canonicalized_ast: 5388060e8ce3e339dc87dd20af16166fedc03f0f1bfd3e53f60b69fb584ae9d8
|
||||
type_inferenced_ast: b07018cbbf0e1b8a80dc5ec0fe2a5a42cfdcf4c715f2158f3171d4799333ee68
|
||||
=======
|
||||
initial_ast: 21381595616fc58e28df26f9c89b4cddcd8219703cd877523c55c80617288e07
|
||||
canonicalized_ast: 21381595616fc58e28df26f9c89b4cddcd8219703cd877523c55c80617288e07
|
||||
type_inferenced_ast: 981b4059bbf5feaa39719dfd802585fca3ee841c3e78792eb7b68470a015a41a
|
||||
>>>>>>> 7a5979660b7c4200fc3c8feb3263dbadd04daf0a
|
||||
|
@ -16,7 +16,13 @@ outputs:
|
||||
r0:
|
||||
type: bool
|
||||
value: "true"
|
||||
<<<<<<< HEAD
|
||||
initial_ast: a5891029bbe6451203f6161a731cb169d46abadb227033e33ad1feb2f44ae014
|
||||
imports_resolved_ast: 4ca172d902f797a1d225223900fbf3f01a68c44ad5a0cf402e719f9e5961988b
|
||||
canonicalized_ast: 4d83de45eaf4ab321b1a7bb5e5e0dd0476bf0dcd8ade8ee517ad31fdc5b6e09b
|
||||
type_inferenced_ast: 8cd10144d3e4b141c3e1a8a88c48c0784a2149fd49ebbacc8bb97002eac07a2e
|
||||
=======
|
||||
initial_ast: f98b76f43ddfdf48c6ae59d240f8cc5435af4af4d858b42a215b6c7cdc62cbe0
|
||||
canonicalized_ast: 9322ad9c85e77f9491596f2edf8fbe28e1843e79467a26c700adc1674362cc81
|
||||
type_inferenced_ast: f1ca7540ea64649a3b8fa23be49593b001eb6b46be162701481d2bad4b2fea09
|
||||
>>>>>>> 7a5979660b7c4200fc3c8feb3263dbadd04daf0a
|
||||
|
@ -16,7 +16,13 @@ outputs:
|
||||
r0:
|
||||
type: bool
|
||||
value: "true"
|
||||
<<<<<<< HEAD
|
||||
initial_ast: dc359780d52ee71863304a952eeeaf2e3915021a7239ac8a61d4c42192fe5d50
|
||||
imports_resolved_ast: 4ca172d902f797a1d225223900fbf3f01a68c44ad5a0cf402e719f9e5961988b
|
||||
canonicalized_ast: dc359780d52ee71863304a952eeeaf2e3915021a7239ac8a61d4c42192fe5d50
|
||||
type_inferenced_ast: 74fcc65fd52e28dcea8d3083c248fcae0df76ac9b21ff968417483721db5c43b
|
||||
=======
|
||||
initial_ast: 1341a7e36aa9a9d76d032b4245ac4cecf8c62938cd921be44fc13a736cd21daf
|
||||
canonicalized_ast: 1341a7e36aa9a9d76d032b4245ac4cecf8c62938cd921be44fc13a736cd21daf
|
||||
type_inferenced_ast: 3e10385fa57b142f27bf8b9d9141ca83fece80755ac4643743f9db3824817750
|
||||
>>>>>>> 7a5979660b7c4200fc3c8feb3263dbadd04daf0a
|
||||
|
@ -2,4 +2,8 @@
|
||||
namespace: Compile
|
||||
expectation: Fail
|
||||
outputs:
|
||||
<<<<<<< HEAD
|
||||
- "Error [EASG0373020]: ternary sides had different types: left u32, right bool\n --> compiler-test:4:13\n |\n 4 | let x = true ? x: true;\n | ^^^^^^^^^^^^^^"
|
||||
=======
|
||||
- "Error [EASG0373026]: unexpected type, expected: 'u32', received: 'bool'\n --> compiler-test:4:23\n |\n 4 | let x = true ? x: true;\n | ^^^^"
|
||||
>>>>>>> 7a5979660b7c4200fc3c8feb3263dbadd04daf0a
|
||||
|
@ -16,7 +16,13 @@ outputs:
|
||||
r0:
|
||||
type: bool
|
||||
value: "true"
|
||||
<<<<<<< HEAD
|
||||
initial_ast: 1cd859490b882a947e7cb29d27003839a9ca855bf2f4c859553fd3ee872fc464
|
||||
imports_resolved_ast: 4ca172d902f797a1d225223900fbf3f01a68c44ad5a0cf402e719f9e5961988b
|
||||
canonicalized_ast: 062571f911682fcc5e71a5842a78362adea0199a3de3d50219aa5a1ff7098f70
|
||||
type_inferenced_ast: 9914b5fe13b5af41f786068425a5500ed3ef955ac2e95205b8b78d483bd25554
|
||||
=======
|
||||
initial_ast: 39a18b43d3d5a65507b9a4bc6558efe27509fa16006de6a98a47c67b6085667c
|
||||
canonicalized_ast: 25c0175f87357fe5a14e48159c69eb636bfd6836706203d0a30dfbd0ccf9fff3
|
||||
type_inferenced_ast: ef74c4307c4124ce11ed81e98e0cc555a306c94505d7e40025e66655dac155a8
|
||||
>>>>>>> 7a5979660b7c4200fc3c8feb3263dbadd04daf0a
|
||||
|
@ -0,0 +1,21 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- circuit:
|
||||
num_public_variables: 0
|
||||
num_private_variables: 25
|
||||
num_constraints: 33
|
||||
at: 00318b0f80b01b9e2d5a8154a536deb1545f04abd493a84071ef13dce1a9d92d
|
||||
bt: 799ee4dc07f6320b8c3dcbd5ebdf6de8a4cf5af8b1edc45dbe5621c8a34fa38d
|
||||
ct: 7b6ec9eacd65cfa47dfe7e73eb7c8fa4be804a9fb878fddf59fe5d06e7c04489
|
||||
output:
|
||||
- input_file: inputs/ternary_explicit_and_implicit.in
|
||||
output:
|
||||
registers:
|
||||
a:
|
||||
type: u8
|
||||
value: "3"
|
||||
initial_ast: 29b5d6188c9fe56eaee3024a900b92e4bd9445364551b85e924fe9a392bac35d
|
||||
canonicalized_ast: 29b5d6188c9fe56eaee3024a900b92e4bd9445364551b85e924fe9a392bac35d
|
||||
type_inferenced_ast: 02edde30e615a1ac3e87818daa6fca7e4d7c0c0c0a1a9d9159a0a4190c11ec8a
|
@ -16,7 +16,13 @@ outputs:
|
||||
out:
|
||||
type: "[char; 13]"
|
||||
value: "\"Hello, World!\""
|
||||
<<<<<<< HEAD
|
||||
initial_ast: 6affff3e5f78ca029e629012dc4d75c65c97582ad8f9e4f28dac7cad60c38d94
|
||||
imports_resolved_ast: 4ca172d902f797a1d225223900fbf3f01a68c44ad5a0cf402e719f9e5961988b
|
||||
canonicalized_ast: ef0b99a2377ce416dfba28fe4b1e410cdc77c2d9a27bfd297ffefe689662bddb
|
||||
type_inferenced_ast: 4d152024f120cd18f076dad74742fd7596d8a30be5a9285190be158f5f015668
|
||||
=======
|
||||
initial_ast: 70c3f622477262389299233a81c02174f0af3c99eb9aea42c2be73f191f44673
|
||||
canonicalized_ast: e8a3e9c427681a58127b088b0053cbc2f80c859a7081636fceb59dd0cc6cfee7
|
||||
type_inferenced_ast: db96adeedf84f21908b53bd7db4c4941396afc5fe592012109069186fa066b1a
|
||||
>>>>>>> 7a5979660b7c4200fc3c8feb3263dbadd04daf0a
|
||||
|
@ -8,7 +8,7 @@ outputs:
|
||||
imports: {}
|
||||
aliases: {}
|
||||
circuits:
|
||||
X:
|
||||
"{\"name\":\"X\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":9,\\\"col_stop\\\":10,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"circuit X {\\\"}\"}":
|
||||
circuit_name: "{\"name\":\"X\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":9,\\\"col_stop\\\":10,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"circuit X {\\\"}\"}"
|
||||
core_mapping: ~
|
||||
members:
|
||||
|
@ -8,7 +8,7 @@ outputs:
|
||||
imports: {}
|
||||
aliases: {}
|
||||
circuits:
|
||||
X:
|
||||
"{\"name\":\"X\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":9,\\\"col_stop\\\":10,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"circuit X {\\\"}\"}":
|
||||
circuit_name: "{\"name\":\"X\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":9,\\\"col_stop\\\":10,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"circuit X {\\\"}\"}"
|
||||
core_mapping: ~
|
||||
members: []
|
||||
|
@ -8,7 +8,7 @@ outputs:
|
||||
imports: {}
|
||||
aliases: {}
|
||||
circuits:
|
||||
X:
|
||||
"{\"name\":\"X\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":9,\\\"col_stop\\\":10,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"circuit X {\\\"}\"}":
|
||||
circuit_name: "{\"name\":\"X\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":9,\\\"col_stop\\\":10,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"circuit X {\\\"}\"}"
|
||||
core_mapping: ~
|
||||
members:
|
||||
|
@ -8,7 +8,7 @@ outputs:
|
||||
imports: {}
|
||||
aliases: {}
|
||||
circuits:
|
||||
X:
|
||||
"{\"name\":\"X\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":9,\\\"col_stop\\\":10,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"circuit X {\\\"}\"}":
|
||||
circuit_name: "{\"name\":\"X\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":9,\\\"col_stop\\\":10,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"circuit X {\\\"}\"}"
|
||||
core_mapping: ~
|
||||
members:
|
||||
|
@ -2,4 +2,4 @@
|
||||
namespace: Parse
|
||||
expectation: Fail
|
||||
outputs:
|
||||
- "Error [EPAR0370006]: Cannot mix use of commas and semi-colons for circuit member variable declarations.\n --> test:10:11\n |\n 10 | y: u32;\n | ^"
|
||||
- "Error [EPAR0370006]: Cannot mix use of commas and semi-colons for circuit member variable declarations.\n --> test:10:11\n |\n 10 | y: u32;\n | ^\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\u001b[0m\u001b[38;5;14m ⋮ 4 frames hidden ⋮ \n\u001b[0m 5: \u001b[0m\u001b[38;5;9menum$<leo_errors::parser::parser_errors::ParserError>::mixed_commas_and_semicolons\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\errors\\src\\common\\macros.rs:86\n 6: \u001b[0m\u001b[38;5;9mleo_parser::parser::context::ParserContext::parse_circuit_declaration\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\parser\\file.rs:332\n 7: \u001b[0m\u001b[38;5;9mleo_parser::parser::context::ParserContext::parse_circuit\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\parser\\file.rs:409\n 8: \u001b[0m\u001b[38;5;9mleo_parser::parser::context::ParserContext::parse_program\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\parser\\file.rs:44\n 9: \u001b[0m\u001b[38;5;9mleo_parser::test::{{impl}}::run_test\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:130\n10: \u001b[0m\u001b[38;5;9mleo_test_framework::runner::run_tests<leo_parser::test::TestRunner>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\test-framework\\src\\runner.rs:151\n11: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:153\n12: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests::{{closure}}\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:152\n13: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once<closure-0,tuple<>>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n14: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n15: \u001b[0m\u001b[32mtest::__rust_begin_short_backtrace<fn()>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:577\n16: \u001b[0m\u001b[32malloc::boxed::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\alloc\\src\\boxed.rs:1575\n17: \u001b[0m\u001b[32mstd::panic::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:347\n18: \u001b[0m\u001b[32mstd::panicking::try::do_call\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:401\n19: \u001b[0m\u001b[32mstd::panicking::try\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:365\n20: \u001b[0m\u001b[32mstd::panic::catch_unwind\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:434\n21: \u001b[0m\u001b[32mtest::run_test_in_process\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:600\n\u001b[0m\u001b[38;5;14m ⋮ 15 frames hidden ⋮ \n\u001b[0m"
|
||||
|
@ -8,7 +8,7 @@ outputs:
|
||||
imports: {}
|
||||
aliases: {}
|
||||
circuits:
|
||||
X:
|
||||
"{\"name\":\"X\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":9,\\\"col_stop\\\":10,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"circuit X {\\\"}\"}":
|
||||
circuit_name: "{\"name\":\"X\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":9,\\\"col_stop\\\":10,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"circuit X {\\\"}\"}"
|
||||
core_mapping: ~
|
||||
members:
|
||||
|
@ -8,7 +8,7 @@ outputs:
|
||||
imports: {}
|
||||
aliases: {}
|
||||
circuits:
|
||||
X:
|
||||
"{\"name\":\"X\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":9,\\\"col_stop\\\":10,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"circuit X {\\\"}\"}":
|
||||
circuit_name: "{\"name\":\"X\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":9,\\\"col_stop\\\":10,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"circuit X {\\\"}\"}"
|
||||
core_mapping: ~
|
||||
members:
|
||||
|
@ -8,7 +8,7 @@ outputs:
|
||||
imports: {}
|
||||
aliases: {}
|
||||
circuits:
|
||||
X:
|
||||
"{\"name\":\"X\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":9,\\\"col_stop\\\":10,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"circuit X {\\\"}\"}":
|
||||
circuit_name: "{\"name\":\"X\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":9,\\\"col_stop\\\":10,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"circuit X {\\\"}\"}"
|
||||
core_mapping: ~
|
||||
members:
|
||||
|
@ -280,6 +280,7 @@ outputs:
|
||||
col_stop: 6
|
||||
path: ""
|
||||
content: "x[x.y..]"
|
||||
type_: ~
|
||||
right: ~
|
||||
span:
|
||||
line_start: 1
|
||||
@ -304,6 +305,7 @@ outputs:
|
||||
col_stop: 8
|
||||
path: ""
|
||||
content: "x[..y.x]"
|
||||
type_: ~
|
||||
span:
|
||||
line_start: 1
|
||||
line_stop: 1
|
||||
@ -326,6 +328,7 @@ outputs:
|
||||
col_stop: 6
|
||||
path: ""
|
||||
content: "x[x.y..y.x]"
|
||||
type_: ~
|
||||
right:
|
||||
CircuitMemberAccess:
|
||||
circuit:
|
||||
@ -338,6 +341,7 @@ outputs:
|
||||
col_stop: 11
|
||||
path: ""
|
||||
content: "x[x.y..y.x]"
|
||||
type_: ~
|
||||
span:
|
||||
line_start: 1
|
||||
line_stop: 1
|
||||
@ -362,6 +366,7 @@ outputs:
|
||||
col_stop: 6
|
||||
path: ""
|
||||
content: "x[x.y.x..y.x.y]"
|
||||
type_: ~
|
||||
name: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":7,\\\"col_stop\\\":8,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x[x.y.x..y.x.y]\\\"}\"}"
|
||||
span:
|
||||
line_start: 1
|
||||
@ -370,6 +375,7 @@ outputs:
|
||||
col_stop: 8
|
||||
path: ""
|
||||
content: "x[x.y.x..y.x.y]"
|
||||
type_: ~
|
||||
right:
|
||||
CircuitMemberAccess:
|
||||
circuit:
|
||||
@ -384,6 +390,7 @@ outputs:
|
||||
col_stop: 13
|
||||
path: ""
|
||||
content: "x[x.y.x..y.x.y]"
|
||||
type_: ~
|
||||
name: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":14,\\\"col_stop\\\":15,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x[x.y.x..y.x.y]\\\"}\"}"
|
||||
span:
|
||||
line_start: 1
|
||||
@ -392,6 +399,7 @@ outputs:
|
||||
col_stop: 15
|
||||
path: ""
|
||||
content: "x[x.y.x..y.x.y]"
|
||||
type_: ~
|
||||
span:
|
||||
line_start: 1
|
||||
line_stop: 1
|
||||
|
@ -13,6 +13,7 @@ outputs:
|
||||
col_stop: 4
|
||||
path: ""
|
||||
content: x.y
|
||||
type_: ~
|
||||
- CircuitMemberAccess:
|
||||
circuit:
|
||||
Identifier: "{\"name\":\"X\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"X.Y\\\"}\"}"
|
||||
@ -24,6 +25,7 @@ outputs:
|
||||
col_stop: 4
|
||||
path: ""
|
||||
content: X.Y
|
||||
type_: ~
|
||||
- CircuitMemberAccess:
|
||||
circuit:
|
||||
CircuitMemberAccess:
|
||||
@ -37,6 +39,7 @@ outputs:
|
||||
col_stop: 4
|
||||
path: ""
|
||||
content: x.y.z
|
||||
type_: ~
|
||||
name: "{\"name\":\"z\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x.y.z\\\"}\"}"
|
||||
span:
|
||||
line_start: 1
|
||||
@ -45,6 +48,7 @@ outputs:
|
||||
col_stop: 6
|
||||
path: ""
|
||||
content: x.y.z
|
||||
type_: ~
|
||||
- Call:
|
||||
function:
|
||||
CircuitMemberAccess:
|
||||
@ -58,6 +62,7 @@ outputs:
|
||||
col_stop: 4
|
||||
path: ""
|
||||
content: x.y()
|
||||
type_: ~
|
||||
arguments: []
|
||||
span:
|
||||
line_start: 1
|
||||
@ -79,6 +84,7 @@ outputs:
|
||||
col_stop: 4
|
||||
path: ""
|
||||
content: x.y.0
|
||||
type_: ~
|
||||
index:
|
||||
value: "0"
|
||||
span:
|
||||
@ -101,6 +107,7 @@ outputs:
|
||||
col_stop: 4
|
||||
path: ""
|
||||
content: "x.y[1]"
|
||||
type_: ~
|
||||
index:
|
||||
Value:
|
||||
Implicit:
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -2,12 +2,12 @@
|
||||
namespace: Token
|
||||
expectation: Fail
|
||||
outputs:
|
||||
- "Error [EPAR0370001]: invalid address literal: 'aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d1aleo1'\n --> test:1:1\n |\n 1 | aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d1aleo1\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
|
||||
- "Error [EPAR0370001]: invalid address literal: 'aleo1qnr4dkkvkgfqph0vzc3y6Z2eu975wnpz2925ntjccd5cfqxtyu8sta57J9'\n --> test:1:1\n |\n 1 | aleo1qnr4dkkvkgfqph0vzc3y6Z2eu975wnpz2925ntjccd5cfqxtyu8sta57J9\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
|
||||
- "Error [EPAR0370001]: invalid address literal: 'aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d'\n --> test:1:1\n |\n 1 | aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
|
||||
- "Error [EPAR0370001]: invalid address literal: 'aleo1'\n --> test:1:1\n |\n 1 | aleo1\n | ^^^^^"
|
||||
- "Error [EPAR0370001]: invalid address literal: 'aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8st'\n --> test:1:1\n |\n 1 | aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8st\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
|
||||
- "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: 'aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d1aleo1'\n --> test:1:1\n |\n 1 | aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d1aleo1\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\u001b[0m\u001b[38;5;14m ⋮ 4 frames hidden ⋮ \n\u001b[0m 5: \u001b[0m\u001b[38;5;9menum$<leo_errors::parser::parser_errors::ParserError>::invalid_address_lit<tendril::tendril::Tendril<tendril::fmt::UTF8, tendril::tendril::NonAtomic>*>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\errors\\src\\common\\macros.rs:86\n 6: \u001b[0m\u001b[38;5;9mleo_parser::tokenizer::tokenize\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\tokenizer\\mod.rs:73\n 7: \u001b[0m\u001b[38;5;9mleo_parser::test::{{impl}}::run_test\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:36\n 8: \u001b[0m\u001b[38;5;9mleo_test_framework::runner::run_tests<leo_parser::test::TestRunner>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\test-framework\\src\\runner.rs:151\n 9: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:153\n10: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests::{{closure}}\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:152\n11: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once<closure-0,tuple<>>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n12: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n13: \u001b[0m\u001b[32mtest::__rust_begin_short_backtrace<fn()>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:577\n14: \u001b[0m\u001b[32malloc::boxed::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\alloc\\src\\boxed.rs:1575\n15: \u001b[0m\u001b[32mstd::panic::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:347\n16: \u001b[0m\u001b[32mstd::panicking::try::do_call\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:401\n17: \u001b[0m\u001b[32mstd::panicking::try\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:365\n18: \u001b[0m\u001b[32mstd::panic::catch_unwind\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:434\n19: \u001b[0m\u001b[32mtest::run_test_in_process\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:600\n\u001b[0m\u001b[38;5;14m ⋮ 15 frames hidden ⋮ \n\u001b[0m"
|
||||
- "Error [EPAR0370001]: invalid address literal: 'aleo1qnr4dkkvkgfqph0vzc3y6Z2eu975wnpz2925ntjccd5cfqxtyu8sta57J9'\n --> test:1:1\n |\n 1 | aleo1qnr4dkkvkgfqph0vzc3y6Z2eu975wnpz2925ntjccd5cfqxtyu8sta57J9\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\u001b[0m\u001b[38;5;14m ⋮ 4 frames hidden ⋮ \n\u001b[0m 5: \u001b[0m\u001b[38;5;9menum$<leo_errors::parser::parser_errors::ParserError>::invalid_address_lit<tendril::tendril::Tendril<tendril::fmt::UTF8, tendril::tendril::NonAtomic>*>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\errors\\src\\common\\macros.rs:86\n 6: \u001b[0m\u001b[38;5;9mleo_parser::tokenizer::tokenize\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\tokenizer\\mod.rs:73\n 7: \u001b[0m\u001b[38;5;9mleo_parser::test::{{impl}}::run_test\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:36\n 8: \u001b[0m\u001b[38;5;9mleo_test_framework::runner::run_tests<leo_parser::test::TestRunner>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\test-framework\\src\\runner.rs:151\n 9: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:153\n10: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests::{{closure}}\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:152\n11: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once<closure-0,tuple<>>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n12: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n13: \u001b[0m\u001b[32mtest::__rust_begin_short_backtrace<fn()>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:577\n14: \u001b[0m\u001b[32malloc::boxed::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\alloc\\src\\boxed.rs:1575\n15: \u001b[0m\u001b[32mstd::panic::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:347\n16: \u001b[0m\u001b[32mstd::panicking::try::do_call\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:401\n17: \u001b[0m\u001b[32mstd::panicking::try\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:365\n18: \u001b[0m\u001b[32mstd::panic::catch_unwind\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:434\n19: \u001b[0m\u001b[32mtest::run_test_in_process\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:600\n\u001b[0m\u001b[38;5;14m ⋮ 15 frames hidden ⋮ \n\u001b[0m"
|
||||
- "Error [EPAR0370001]: invalid address literal: 'aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d'\n --> test:1:1\n |\n 1 | aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\u001b[0m\u001b[38;5;14m ⋮ 4 frames hidden ⋮ \n\u001b[0m 5: \u001b[0m\u001b[38;5;9menum$<leo_errors::parser::parser_errors::ParserError>::invalid_address_lit<tendril::tendril::Tendril<tendril::fmt::UTF8, tendril::tendril::NonAtomic>*>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\errors\\src\\common\\macros.rs:86\n 6: \u001b[0m\u001b[38;5;9mleo_parser::tokenizer::tokenize\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\tokenizer\\mod.rs:73\n 7: \u001b[0m\u001b[38;5;9mleo_parser::test::{{impl}}::run_test\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:36\n 8: \u001b[0m\u001b[38;5;9mleo_test_framework::runner::run_tests<leo_parser::test::TestRunner>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\test-framework\\src\\runner.rs:151\n 9: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:153\n10: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests::{{closure}}\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:152\n11: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once<closure-0,tuple<>>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n12: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n13: \u001b[0m\u001b[32mtest::__rust_begin_short_backtrace<fn()>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:577\n14: \u001b[0m\u001b[32malloc::boxed::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\alloc\\src\\boxed.rs:1575\n15: \u001b[0m\u001b[32mstd::panic::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:347\n16: \u001b[0m\u001b[32mstd::panicking::try::do_call\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:401\n17: \u001b[0m\u001b[32mstd::panicking::try\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:365\n18: \u001b[0m\u001b[32mstd::panic::catch_unwind\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:434\n19: \u001b[0m\u001b[32mtest::run_test_in_process\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:600\n\u001b[0m\u001b[38;5;14m ⋮ 15 frames hidden ⋮ \n\u001b[0m"
|
||||
- "Error [EPAR0370001]: invalid address literal: 'aleo1'\n --> test:1:1\n |\n 1 | aleo1\n | ^^^^^\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\u001b[0m\u001b[38;5;14m ⋮ 4 frames hidden ⋮ \n\u001b[0m 5: \u001b[0m\u001b[38;5;9menum$<leo_errors::parser::parser_errors::ParserError>::invalid_address_lit<tendril::tendril::Tendril<tendril::fmt::UTF8, tendril::tendril::NonAtomic>*>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\errors\\src\\common\\macros.rs:86\n 6: \u001b[0m\u001b[38;5;9mleo_parser::tokenizer::tokenize\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\tokenizer\\mod.rs:73\n 7: \u001b[0m\u001b[38;5;9mleo_parser::test::{{impl}}::run_test\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:36\n 8: \u001b[0m\u001b[38;5;9mleo_test_framework::runner::run_tests<leo_parser::test::TestRunner>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\test-framework\\src\\runner.rs:151\n 9: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:153\n10: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests::{{closure}}\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:152\n11: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once<closure-0,tuple<>>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n12: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n13: \u001b[0m\u001b[32mtest::__rust_begin_short_backtrace<fn()>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:577\n14: \u001b[0m\u001b[32malloc::boxed::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\alloc\\src\\boxed.rs:1575\n15: \u001b[0m\u001b[32mstd::panic::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:347\n16: \u001b[0m\u001b[32mstd::panicking::try::do_call\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:401\n17: \u001b[0m\u001b[32mstd::panicking::try\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:365\n18: \u001b[0m\u001b[32mstd::panic::catch_unwind\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:434\n19: \u001b[0m\u001b[32mtest::run_test_in_process\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:600\n\u001b[0m\u001b[38;5;14m ⋮ 15 frames hidden ⋮ \n\u001b[0m"
|
||||
- "Error [EPAR0370001]: invalid address literal: 'aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8st'\n --> test:1:1\n |\n 1 | aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8st\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\u001b[0m\u001b[38;5;14m ⋮ 4 frames hidden ⋮ \n\u001b[0m 5: \u001b[0m\u001b[38;5;9menum$<leo_errors::parser::parser_errors::ParserError>::invalid_address_lit<tendril::tendril::Tendril<tendril::fmt::UTF8, tendril::tendril::NonAtomic>*>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\errors\\src\\common\\macros.rs:86\n 6: \u001b[0m\u001b[38;5;9mleo_parser::tokenizer::tokenize\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\tokenizer\\mod.rs:73\n 7: \u001b[0m\u001b[38;5;9mleo_parser::test::{{impl}}::run_test\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:36\n 8: \u001b[0m\u001b[38;5;9mleo_test_framework::runner::run_tests<leo_parser::test::TestRunner>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\test-framework\\src\\runner.rs:151\n 9: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:153\n10: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests::{{closure}}\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:152\n11: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once<closure-0,tuple<>>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n12: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n13: \u001b[0m\u001b[32mtest::__rust_begin_short_backtrace<fn()>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:577\n14: \u001b[0m\u001b[32malloc::boxed::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\alloc\\src\\boxed.rs:1575\n15: \u001b[0m\u001b[32mstd::panic::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:347\n16: \u001b[0m\u001b[32mstd::panicking::try::do_call\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:401\n17: \u001b[0m\u001b[32mstd::panicking::try\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:365\n18: \u001b[0m\u001b[32mstd::panic::catch_unwind\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:434\n19: \u001b[0m\u001b[32mtest::run_test_in_process\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:600\n\u001b[0m\u001b[38;5;14m ⋮ 15 frames hidden ⋮ \n\u001b[0m"
|
||||
- "Error [EPAR0370001]: invalid address literal: 'aleo1'\n --> test:1:1\n |\n 1 | aleo1\n | ^^^^^\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\u001b[0m\u001b[38;5;14m ⋮ 4 frames hidden ⋮ \n\u001b[0m 5: \u001b[0m\u001b[38;5;9menum$<leo_errors::parser::parser_errors::ParserError>::invalid_address_lit<tendril::tendril::Tendril<tendril::fmt::UTF8, tendril::tendril::NonAtomic>*>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\errors\\src\\common\\macros.rs:86\n 6: \u001b[0m\u001b[38;5;9mleo_parser::tokenizer::tokenize\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\tokenizer\\mod.rs:73\n 7: \u001b[0m\u001b[38;5;9mleo_parser::test::{{impl}}::run_test\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:36\n 8: \u001b[0m\u001b[38;5;9mleo_test_framework::runner::run_tests<leo_parser::test::TestRunner>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\test-framework\\src\\runner.rs:151\n 9: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:153\n10: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests::{{closure}}\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:152\n11: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once<closure-0,tuple<>>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n12: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n13: \u001b[0m\u001b[32mtest::__rust_begin_short_backtrace<fn()>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:577\n14: \u001b[0m\u001b[32malloc::boxed::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\alloc\\src\\boxed.rs:1575\n15: \u001b[0m\u001b[32mstd::panic::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:347\n16: \u001b[0m\u001b[32mstd::panicking::try::do_call\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:401\n17: \u001b[0m\u001b[32mstd::panicking::try\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:365\n18: \u001b[0m\u001b[32mstd::panic::catch_unwind\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:434\n19: \u001b[0m\u001b[32mtest::run_test_in_process\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:600\n\u001b[0m\u001b[38;5;14m ⋮ 15 frames hidden ⋮ \n\u001b[0m"
|
||||
- "Error [EPAR0370001]: invalid address literal: 'aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d1aleo1'\n --> test:1:1\n |\n 1 | aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d1aleo1\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\u001b[0m\u001b[38;5;14m ⋮ 4 frames hidden ⋮ \n\u001b[0m 5: \u001b[0m\u001b[38;5;9menum$<leo_errors::parser::parser_errors::ParserError>::invalid_address_lit<tendril::tendril::Tendril<tendril::fmt::UTF8, tendril::tendril::NonAtomic>*>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\errors\\src\\common\\macros.rs:86\n 6: \u001b[0m\u001b[38;5;9mleo_parser::tokenizer::tokenize\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\tokenizer\\mod.rs:73\n 7: \u001b[0m\u001b[38;5;9mleo_parser::test::{{impl}}::run_test\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:36\n 8: \u001b[0m\u001b[38;5;9mleo_test_framework::runner::run_tests<leo_parser::test::TestRunner>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\test-framework\\src\\runner.rs:151\n 9: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:153\n10: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests::{{closure}}\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:152\n11: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once<closure-0,tuple<>>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n12: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n13: \u001b[0m\u001b[32mtest::__rust_begin_short_backtrace<fn()>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:577\n14: \u001b[0m\u001b[32malloc::boxed::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\alloc\\src\\boxed.rs:1575\n15: \u001b[0m\u001b[32mstd::panic::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:347\n16: \u001b[0m\u001b[32mstd::panicking::try::do_call\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:401\n17: \u001b[0m\u001b[32mstd::panicking::try\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:365\n18: \u001b[0m\u001b[32mstd::panic::catch_unwind\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:434\n19: \u001b[0m\u001b[32mtest::run_test_in_process\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:600\n\u001b[0m\u001b[38;5;14m ⋮ 15 frames hidden ⋮ \n\u001b[0m"
|
||||
- "Error [EPAR0370001]: invalid address literal: 'aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d11'\n --> test:1:1\n |\n 1 | aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d11\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\u001b[0m\u001b[38;5;14m ⋮ 4 frames hidden ⋮ \n\u001b[0m 5: \u001b[0m\u001b[38;5;9menum$<leo_errors::parser::parser_errors::ParserError>::invalid_address_lit<tendril::tendril::Tendril<tendril::fmt::UTF8, tendril::tendril::NonAtomic>*>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\errors\\src\\common\\macros.rs:86\n 6: \u001b[0m\u001b[38;5;9mleo_parser::tokenizer::tokenize\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\tokenizer\\mod.rs:73\n 7: \u001b[0m\u001b[38;5;9mleo_parser::test::{{impl}}::run_test\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:36\n 8: \u001b[0m\u001b[38;5;9mleo_test_framework::runner::run_tests<leo_parser::test::TestRunner>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\test-framework\\src\\runner.rs:151\n 9: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:153\n10: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests::{{closure}}\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:152\n11: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once<closure-0,tuple<>>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n12: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n13: \u001b[0m\u001b[32mtest::__rust_begin_short_backtrace<fn()>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:577\n14: \u001b[0m\u001b[32malloc::boxed::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\alloc\\src\\boxed.rs:1575\n15: \u001b[0m\u001b[32mstd::panic::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:347\n16: \u001b[0m\u001b[32mstd::panicking::try::do_call\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:401\n17: \u001b[0m\u001b[32mstd::panicking::try\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:365\n18: \u001b[0m\u001b[32mstd::panic::catch_unwind\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:434\n19: \u001b[0m\u001b[32mtest::run_test_in_process\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:600\n\u001b[0m\u001b[38;5;14m ⋮ 15 frames hidden ⋮ \n\u001b[0m"
|
||||
- "Error [EPAR0370001]: invalid address literal: 'aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d1x'\n --> test:1:1\n |\n 1 | aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d1x\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\u001b[0m\u001b[38;5;14m ⋮ 4 frames hidden ⋮ \n\u001b[0m 5: \u001b[0m\u001b[38;5;9menum$<leo_errors::parser::parser_errors::ParserError>::invalid_address_lit<tendril::tendril::Tendril<tendril::fmt::UTF8, tendril::tendril::NonAtomic>*>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\errors\\src\\common\\macros.rs:86\n 6: \u001b[0m\u001b[38;5;9mleo_parser::tokenizer::tokenize\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\tokenizer\\mod.rs:73\n 7: \u001b[0m\u001b[38;5;9mleo_parser::test::{{impl}}::run_test\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:36\n 8: \u001b[0m\u001b[38;5;9mleo_test_framework::runner::run_tests<leo_parser::test::TestRunner>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\test-framework\\src\\runner.rs:151\n 9: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:153\n10: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests::{{closure}}\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:152\n11: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once<closure-0,tuple<>>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n12: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n13: \u001b[0m\u001b[32mtest::__rust_begin_short_backtrace<fn()>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:577\n14: \u001b[0m\u001b[32malloc::boxed::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\alloc\\src\\boxed.rs:1575\n15: \u001b[0m\u001b[32mstd::panic::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:347\n16: \u001b[0m\u001b[32mstd::panicking::try::do_call\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:401\n17: \u001b[0m\u001b[32mstd::panicking::try\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:365\n18: \u001b[0m\u001b[32mstd::panic::catch_unwind\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:434\n19: \u001b[0m\u001b[32mtest::run_test_in_process\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:600\n\u001b[0m\u001b[38;5;14m ⋮ 15 frames hidden ⋮ \n\u001b[0m"
|
||||
|
@ -2,38 +2,38 @@
|
||||
namespace: Token
|
||||
expectation: Fail
|
||||
outputs:
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\'\n | ^"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | 'a\n | ^"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | ''\n | ^"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\x9A'\n | ^"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\x7'\n | ^"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\x7g'\n | ^"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\xz'\n | ^"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\x80'\n | ^"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\xc1'\n | ^"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\xc2'\n | ^"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\xDF'\n | ^"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\xC0'\n | ^"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\xe0'\n | ^"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\x9f'\n | ^"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | 'abcdefg'\n | ^"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\t\\t'\n | ^"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\a'\n | ^"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\z'\n | ^"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\A'\n | ^"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\Z'\n | ^"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\1'\n | ^"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\9'\n | ^"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\*'\n | ^"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\x'\n | ^"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\u'\n | ^"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\u{bbbbb}\\u{aaaa}'\n | ^"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\uz'\n | ^"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\u1'\n | ^"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\u123'\n | ^"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\u{2764z'\n | ^"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\u{276g}'\n | ^"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\u00000000'\n | ^"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\u01000000'\n | ^"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\u9999999'\n | ^"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '😭😂😘'\n | ^"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\'\n | ^\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\u001b[0m\u001b[38;5;14m ⋮ 4 frames hidden ⋮ \n\u001b[0m 5: \u001b[0m\u001b[38;5;9menum$<leo_errors::parser::parser_errors::ParserError>::unexpected_token<str>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\errors\\src\\common\\macros.rs:86\n 6: \u001b[0m\u001b[38;5;9mleo_parser::tokenizer::tokenize\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\tokenizer\\mod.rs:85\n 7: \u001b[0m\u001b[38;5;9mleo_parser::test::{{impl}}::run_test\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:36\n 8: \u001b[0m\u001b[38;5;9mleo_test_framework::runner::run_tests<leo_parser::test::TestRunner>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\test-framework\\src\\runner.rs:151\n 9: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:153\n10: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests::{{closure}}\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:152\n11: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once<closure-0,tuple<>>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n12: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n13: \u001b[0m\u001b[32mtest::__rust_begin_short_backtrace<fn()>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:577\n14: \u001b[0m\u001b[32malloc::boxed::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\alloc\\src\\boxed.rs:1575\n15: \u001b[0m\u001b[32mstd::panic::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:347\n16: \u001b[0m\u001b[32mstd::panicking::try::do_call\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:401\n17: \u001b[0m\u001b[32mstd::panicking::try\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:365\n18: \u001b[0m\u001b[32mstd::panic::catch_unwind\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:434\n19: \u001b[0m\u001b[32mtest::run_test_in_process\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:600\n\u001b[0m\u001b[38;5;14m ⋮ 15 frames hidden ⋮ \n\u001b[0m"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | 'a\n | ^\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\u001b[0m\u001b[38;5;14m ⋮ 4 frames hidden ⋮ \n\u001b[0m 5: \u001b[0m\u001b[38;5;9menum$<leo_errors::parser::parser_errors::ParserError>::unexpected_token<str>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\errors\\src\\common\\macros.rs:86\n 6: \u001b[0m\u001b[38;5;9mleo_parser::tokenizer::tokenize\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\tokenizer\\mod.rs:85\n 7: \u001b[0m\u001b[38;5;9mleo_parser::test::{{impl}}::run_test\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:36\n 8: \u001b[0m\u001b[38;5;9mleo_test_framework::runner::run_tests<leo_parser::test::TestRunner>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\test-framework\\src\\runner.rs:151\n 9: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:153\n10: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests::{{closure}}\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:152\n11: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once<closure-0,tuple<>>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n12: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n13: \u001b[0m\u001b[32mtest::__rust_begin_short_backtrace<fn()>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:577\n14: \u001b[0m\u001b[32malloc::boxed::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\alloc\\src\\boxed.rs:1575\n15: \u001b[0m\u001b[32mstd::panic::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:347\n16: \u001b[0m\u001b[32mstd::panicking::try::do_call\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:401\n17: \u001b[0m\u001b[32mstd::panicking::try\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:365\n18: \u001b[0m\u001b[32mstd::panic::catch_unwind\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:434\n19: \u001b[0m\u001b[32mtest::run_test_in_process\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:600\n\u001b[0m\u001b[38;5;14m ⋮ 15 frames hidden ⋮ \n\u001b[0m"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | ''\n | ^\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\u001b[0m\u001b[38;5;14m ⋮ 4 frames hidden ⋮ \n\u001b[0m 5: \u001b[0m\u001b[38;5;9menum$<leo_errors::parser::parser_errors::ParserError>::unexpected_token<str>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\errors\\src\\common\\macros.rs:86\n 6: \u001b[0m\u001b[38;5;9mleo_parser::tokenizer::tokenize\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\tokenizer\\mod.rs:85\n 7: \u001b[0m\u001b[38;5;9mleo_parser::test::{{impl}}::run_test\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:36\n 8: \u001b[0m\u001b[38;5;9mleo_test_framework::runner::run_tests<leo_parser::test::TestRunner>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\test-framework\\src\\runner.rs:151\n 9: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:153\n10: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests::{{closure}}\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:152\n11: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once<closure-0,tuple<>>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n12: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n13: \u001b[0m\u001b[32mtest::__rust_begin_short_backtrace<fn()>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:577\n14: \u001b[0m\u001b[32malloc::boxed::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\alloc\\src\\boxed.rs:1575\n15: \u001b[0m\u001b[32mstd::panic::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:347\n16: \u001b[0m\u001b[32mstd::panicking::try::do_call\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:401\n17: \u001b[0m\u001b[32mstd::panicking::try\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:365\n18: \u001b[0m\u001b[32mstd::panic::catch_unwind\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:434\n19: \u001b[0m\u001b[32mtest::run_test_in_process\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:600\n\u001b[0m\u001b[38;5;14m ⋮ 15 frames hidden ⋮ \n\u001b[0m"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\x9A'\n | ^\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\u001b[0m\u001b[38;5;14m ⋮ 4 frames hidden ⋮ \n\u001b[0m 5: \u001b[0m\u001b[38;5;9menum$<leo_errors::parser::parser_errors::ParserError>::unexpected_token<str>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\errors\\src\\common\\macros.rs:86\n 6: \u001b[0m\u001b[38;5;9mleo_parser::tokenizer::tokenize\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\tokenizer\\mod.rs:85\n 7: \u001b[0m\u001b[38;5;9mleo_parser::test::{{impl}}::run_test\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:36\n 8: \u001b[0m\u001b[38;5;9mleo_test_framework::runner::run_tests<leo_parser::test::TestRunner>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\test-framework\\src\\runner.rs:151\n 9: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:153\n10: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests::{{closure}}\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:152\n11: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once<closure-0,tuple<>>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n12: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n13: \u001b[0m\u001b[32mtest::__rust_begin_short_backtrace<fn()>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:577\n14: \u001b[0m\u001b[32malloc::boxed::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\alloc\\src\\boxed.rs:1575\n15: \u001b[0m\u001b[32mstd::panic::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:347\n16: \u001b[0m\u001b[32mstd::panicking::try::do_call\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:401\n17: \u001b[0m\u001b[32mstd::panicking::try\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:365\n18: \u001b[0m\u001b[32mstd::panic::catch_unwind\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:434\n19: \u001b[0m\u001b[32mtest::run_test_in_process\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:600\n\u001b[0m\u001b[38;5;14m ⋮ 15 frames hidden ⋮ \n\u001b[0m"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\x7'\n | ^\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\u001b[0m\u001b[38;5;14m ⋮ 4 frames hidden ⋮ \n\u001b[0m 5: \u001b[0m\u001b[38;5;9menum$<leo_errors::parser::parser_errors::ParserError>::unexpected_token<str>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\errors\\src\\common\\macros.rs:86\n 6: \u001b[0m\u001b[38;5;9mleo_parser::tokenizer::tokenize\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\tokenizer\\mod.rs:85\n 7: \u001b[0m\u001b[38;5;9mleo_parser::test::{{impl}}::run_test\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:36\n 8: \u001b[0m\u001b[38;5;9mleo_test_framework::runner::run_tests<leo_parser::test::TestRunner>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\test-framework\\src\\runner.rs:151\n 9: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:153\n10: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests::{{closure}}\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:152\n11: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once<closure-0,tuple<>>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n12: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n13: \u001b[0m\u001b[32mtest::__rust_begin_short_backtrace<fn()>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:577\n14: \u001b[0m\u001b[32malloc::boxed::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\alloc\\src\\boxed.rs:1575\n15: \u001b[0m\u001b[32mstd::panic::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:347\n16: \u001b[0m\u001b[32mstd::panicking::try::do_call\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:401\n17: \u001b[0m\u001b[32mstd::panicking::try\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:365\n18: \u001b[0m\u001b[32mstd::panic::catch_unwind\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:434\n19: \u001b[0m\u001b[32mtest::run_test_in_process\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:600\n\u001b[0m\u001b[38;5;14m ⋮ 15 frames hidden ⋮ \n\u001b[0m"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\x7g'\n | ^\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\u001b[0m\u001b[38;5;14m ⋮ 4 frames hidden ⋮ \n\u001b[0m 5: \u001b[0m\u001b[38;5;9menum$<leo_errors::parser::parser_errors::ParserError>::unexpected_token<str>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\errors\\src\\common\\macros.rs:86\n 6: \u001b[0m\u001b[38;5;9mleo_parser::tokenizer::tokenize\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\tokenizer\\mod.rs:85\n 7: \u001b[0m\u001b[38;5;9mleo_parser::test::{{impl}}::run_test\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:36\n 8: \u001b[0m\u001b[38;5;9mleo_test_framework::runner::run_tests<leo_parser::test::TestRunner>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\test-framework\\src\\runner.rs:151\n 9: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:153\n10: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests::{{closure}}\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:152\n11: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once<closure-0,tuple<>>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n12: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n13: \u001b[0m\u001b[32mtest::__rust_begin_short_backtrace<fn()>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:577\n14: \u001b[0m\u001b[32malloc::boxed::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\alloc\\src\\boxed.rs:1575\n15: \u001b[0m\u001b[32mstd::panic::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:347\n16: \u001b[0m\u001b[32mstd::panicking::try::do_call\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:401\n17: \u001b[0m\u001b[32mstd::panicking::try\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:365\n18: \u001b[0m\u001b[32mstd::panic::catch_unwind\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:434\n19: \u001b[0m\u001b[32mtest::run_test_in_process\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:600\n\u001b[0m\u001b[38;5;14m ⋮ 15 frames hidden ⋮ \n\u001b[0m"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\xz'\n | ^\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\u001b[0m\u001b[38;5;14m ⋮ 4 frames hidden ⋮ \n\u001b[0m 5: \u001b[0m\u001b[38;5;9menum$<leo_errors::parser::parser_errors::ParserError>::unexpected_token<str>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\errors\\src\\common\\macros.rs:86\n 6: \u001b[0m\u001b[38;5;9mleo_parser::tokenizer::tokenize\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\tokenizer\\mod.rs:85\n 7: \u001b[0m\u001b[38;5;9mleo_parser::test::{{impl}}::run_test\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:36\n 8: \u001b[0m\u001b[38;5;9mleo_test_framework::runner::run_tests<leo_parser::test::TestRunner>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\test-framework\\src\\runner.rs:151\n 9: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:153\n10: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests::{{closure}}\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:152\n11: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once<closure-0,tuple<>>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n12: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n13: \u001b[0m\u001b[32mtest::__rust_begin_short_backtrace<fn()>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:577\n14: \u001b[0m\u001b[32malloc::boxed::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\alloc\\src\\boxed.rs:1575\n15: \u001b[0m\u001b[32mstd::panic::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:347\n16: \u001b[0m\u001b[32mstd::panicking::try::do_call\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:401\n17: \u001b[0m\u001b[32mstd::panicking::try\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:365\n18: \u001b[0m\u001b[32mstd::panic::catch_unwind\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:434\n19: \u001b[0m\u001b[32mtest::run_test_in_process\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:600\n\u001b[0m\u001b[38;5;14m ⋮ 15 frames hidden ⋮ \n\u001b[0m"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\x80'\n | ^\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\u001b[0m\u001b[38;5;14m ⋮ 4 frames hidden ⋮ \n\u001b[0m 5: \u001b[0m\u001b[38;5;9menum$<leo_errors::parser::parser_errors::ParserError>::unexpected_token<str>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\errors\\src\\common\\macros.rs:86\n 6: \u001b[0m\u001b[38;5;9mleo_parser::tokenizer::tokenize\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\tokenizer\\mod.rs:85\n 7: \u001b[0m\u001b[38;5;9mleo_parser::test::{{impl}}::run_test\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:36\n 8: \u001b[0m\u001b[38;5;9mleo_test_framework::runner::run_tests<leo_parser::test::TestRunner>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\test-framework\\src\\runner.rs:151\n 9: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:153\n10: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests::{{closure}}\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:152\n11: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once<closure-0,tuple<>>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n12: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n13: \u001b[0m\u001b[32mtest::__rust_begin_short_backtrace<fn()>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:577\n14: \u001b[0m\u001b[32malloc::boxed::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\alloc\\src\\boxed.rs:1575\n15: \u001b[0m\u001b[32mstd::panic::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:347\n16: \u001b[0m\u001b[32mstd::panicking::try::do_call\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:401\n17: \u001b[0m\u001b[32mstd::panicking::try\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:365\n18: \u001b[0m\u001b[32mstd::panic::catch_unwind\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:434\n19: \u001b[0m\u001b[32mtest::run_test_in_process\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:600\n\u001b[0m\u001b[38;5;14m ⋮ 15 frames hidden ⋮ \n\u001b[0m"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\xc1'\n | ^\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\u001b[0m\u001b[38;5;14m ⋮ 4 frames hidden ⋮ \n\u001b[0m 5: \u001b[0m\u001b[38;5;9menum$<leo_errors::parser::parser_errors::ParserError>::unexpected_token<str>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\errors\\src\\common\\macros.rs:86\n 6: \u001b[0m\u001b[38;5;9mleo_parser::tokenizer::tokenize\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\tokenizer\\mod.rs:85\n 7: \u001b[0m\u001b[38;5;9mleo_parser::test::{{impl}}::run_test\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:36\n 8: \u001b[0m\u001b[38;5;9mleo_test_framework::runner::run_tests<leo_parser::test::TestRunner>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\test-framework\\src\\runner.rs:151\n 9: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:153\n10: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests::{{closure}}\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:152\n11: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once<closure-0,tuple<>>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n12: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n13: \u001b[0m\u001b[32mtest::__rust_begin_short_backtrace<fn()>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:577\n14: \u001b[0m\u001b[32malloc::boxed::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\alloc\\src\\boxed.rs:1575\n15: \u001b[0m\u001b[32mstd::panic::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:347\n16: \u001b[0m\u001b[32mstd::panicking::try::do_call\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:401\n17: \u001b[0m\u001b[32mstd::panicking::try\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:365\n18: \u001b[0m\u001b[32mstd::panic::catch_unwind\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:434\n19: \u001b[0m\u001b[32mtest::run_test_in_process\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:600\n\u001b[0m\u001b[38;5;14m ⋮ 15 frames hidden ⋮ \n\u001b[0m"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\xc2'\n | ^\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\u001b[0m\u001b[38;5;14m ⋮ 4 frames hidden ⋮ \n\u001b[0m 5: \u001b[0m\u001b[38;5;9menum$<leo_errors::parser::parser_errors::ParserError>::unexpected_token<str>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\errors\\src\\common\\macros.rs:86\n 6: \u001b[0m\u001b[38;5;9mleo_parser::tokenizer::tokenize\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\tokenizer\\mod.rs:85\n 7: \u001b[0m\u001b[38;5;9mleo_parser::test::{{impl}}::run_test\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:36\n 8: \u001b[0m\u001b[38;5;9mleo_test_framework::runner::run_tests<leo_parser::test::TestRunner>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\test-framework\\src\\runner.rs:151\n 9: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:153\n10: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests::{{closure}}\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:152\n11: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once<closure-0,tuple<>>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n12: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n13: \u001b[0m\u001b[32mtest::__rust_begin_short_backtrace<fn()>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:577\n14: \u001b[0m\u001b[32malloc::boxed::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\alloc\\src\\boxed.rs:1575\n15: \u001b[0m\u001b[32mstd::panic::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:347\n16: \u001b[0m\u001b[32mstd::panicking::try::do_call\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:401\n17: \u001b[0m\u001b[32mstd::panicking::try\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:365\n18: \u001b[0m\u001b[32mstd::panic::catch_unwind\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:434\n19: \u001b[0m\u001b[32mtest::run_test_in_process\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:600\n\u001b[0m\u001b[38;5;14m ⋮ 15 frames hidden ⋮ \n\u001b[0m"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\xDF'\n | ^\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\u001b[0m\u001b[38;5;14m ⋮ 4 frames hidden ⋮ \n\u001b[0m 5: \u001b[0m\u001b[38;5;9menum$<leo_errors::parser::parser_errors::ParserError>::unexpected_token<str>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\errors\\src\\common\\macros.rs:86\n 6: \u001b[0m\u001b[38;5;9mleo_parser::tokenizer::tokenize\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\tokenizer\\mod.rs:85\n 7: \u001b[0m\u001b[38;5;9mleo_parser::test::{{impl}}::run_test\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:36\n 8: \u001b[0m\u001b[38;5;9mleo_test_framework::runner::run_tests<leo_parser::test::TestRunner>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\test-framework\\src\\runner.rs:151\n 9: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:153\n10: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests::{{closure}}\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:152\n11: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once<closure-0,tuple<>>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n12: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n13: \u001b[0m\u001b[32mtest::__rust_begin_short_backtrace<fn()>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:577\n14: \u001b[0m\u001b[32malloc::boxed::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\alloc\\src\\boxed.rs:1575\n15: \u001b[0m\u001b[32mstd::panic::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:347\n16: \u001b[0m\u001b[32mstd::panicking::try::do_call\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:401\n17: \u001b[0m\u001b[32mstd::panicking::try\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:365\n18: \u001b[0m\u001b[32mstd::panic::catch_unwind\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:434\n19: \u001b[0m\u001b[32mtest::run_test_in_process\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:600\n\u001b[0m\u001b[38;5;14m ⋮ 15 frames hidden ⋮ \n\u001b[0m"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\xC0'\n | ^\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\u001b[0m\u001b[38;5;14m ⋮ 4 frames hidden ⋮ \n\u001b[0m 5: \u001b[0m\u001b[38;5;9menum$<leo_errors::parser::parser_errors::ParserError>::unexpected_token<str>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\errors\\src\\common\\macros.rs:86\n 6: \u001b[0m\u001b[38;5;9mleo_parser::tokenizer::tokenize\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\tokenizer\\mod.rs:85\n 7: \u001b[0m\u001b[38;5;9mleo_parser::test::{{impl}}::run_test\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:36\n 8: \u001b[0m\u001b[38;5;9mleo_test_framework::runner::run_tests<leo_parser::test::TestRunner>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\test-framework\\src\\runner.rs:151\n 9: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:153\n10: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests::{{closure}}\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:152\n11: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once<closure-0,tuple<>>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n12: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n13: \u001b[0m\u001b[32mtest::__rust_begin_short_backtrace<fn()>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:577\n14: \u001b[0m\u001b[32malloc::boxed::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\alloc\\src\\boxed.rs:1575\n15: \u001b[0m\u001b[32mstd::panic::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:347\n16: \u001b[0m\u001b[32mstd::panicking::try::do_call\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:401\n17: \u001b[0m\u001b[32mstd::panicking::try\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:365\n18: \u001b[0m\u001b[32mstd::panic::catch_unwind\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:434\n19: \u001b[0m\u001b[32mtest::run_test_in_process\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:600\n\u001b[0m\u001b[38;5;14m ⋮ 15 frames hidden ⋮ \n\u001b[0m"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\xe0'\n | ^\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\u001b[0m\u001b[38;5;14m ⋮ 4 frames hidden ⋮ \n\u001b[0m 5: \u001b[0m\u001b[38;5;9menum$<leo_errors::parser::parser_errors::ParserError>::unexpected_token<str>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\errors\\src\\common\\macros.rs:86\n 6: \u001b[0m\u001b[38;5;9mleo_parser::tokenizer::tokenize\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\tokenizer\\mod.rs:85\n 7: \u001b[0m\u001b[38;5;9mleo_parser::test::{{impl}}::run_test\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:36\n 8: \u001b[0m\u001b[38;5;9mleo_test_framework::runner::run_tests<leo_parser::test::TestRunner>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\test-framework\\src\\runner.rs:151\n 9: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:153\n10: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests::{{closure}}\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:152\n11: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once<closure-0,tuple<>>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n12: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n13: \u001b[0m\u001b[32mtest::__rust_begin_short_backtrace<fn()>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:577\n14: \u001b[0m\u001b[32malloc::boxed::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\alloc\\src\\boxed.rs:1575\n15: \u001b[0m\u001b[32mstd::panic::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:347\n16: \u001b[0m\u001b[32mstd::panicking::try::do_call\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:401\n17: \u001b[0m\u001b[32mstd::panicking::try\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:365\n18: \u001b[0m\u001b[32mstd::panic::catch_unwind\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:434\n19: \u001b[0m\u001b[32mtest::run_test_in_process\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:600\n\u001b[0m\u001b[38;5;14m ⋮ 15 frames hidden ⋮ \n\u001b[0m"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\x9f'\n | ^\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\u001b[0m\u001b[38;5;14m ⋮ 4 frames hidden ⋮ \n\u001b[0m 5: \u001b[0m\u001b[38;5;9menum$<leo_errors::parser::parser_errors::ParserError>::unexpected_token<str>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\errors\\src\\common\\macros.rs:86\n 6: \u001b[0m\u001b[38;5;9mleo_parser::tokenizer::tokenize\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\tokenizer\\mod.rs:85\n 7: \u001b[0m\u001b[38;5;9mleo_parser::test::{{impl}}::run_test\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:36\n 8: \u001b[0m\u001b[38;5;9mleo_test_framework::runner::run_tests<leo_parser::test::TestRunner>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\test-framework\\src\\runner.rs:151\n 9: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:153\n10: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests::{{closure}}\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:152\n11: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once<closure-0,tuple<>>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n12: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n13: \u001b[0m\u001b[32mtest::__rust_begin_short_backtrace<fn()>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:577\n14: \u001b[0m\u001b[32malloc::boxed::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\alloc\\src\\boxed.rs:1575\n15: \u001b[0m\u001b[32mstd::panic::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:347\n16: \u001b[0m\u001b[32mstd::panicking::try::do_call\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:401\n17: \u001b[0m\u001b[32mstd::panicking::try\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:365\n18: \u001b[0m\u001b[32mstd::panic::catch_unwind\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:434\n19: \u001b[0m\u001b[32mtest::run_test_in_process\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:600\n\u001b[0m\u001b[38;5;14m ⋮ 15 frames hidden ⋮ \n\u001b[0m"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | 'abcdefg'\n | ^\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\u001b[0m\u001b[38;5;14m ⋮ 4 frames hidden ⋮ \n\u001b[0m 5: \u001b[0m\u001b[38;5;9menum$<leo_errors::parser::parser_errors::ParserError>::unexpected_token<str>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\errors\\src\\common\\macros.rs:86\n 6: \u001b[0m\u001b[38;5;9mleo_parser::tokenizer::tokenize\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\tokenizer\\mod.rs:85\n 7: \u001b[0m\u001b[38;5;9mleo_parser::test::{{impl}}::run_test\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:36\n 8: \u001b[0m\u001b[38;5;9mleo_test_framework::runner::run_tests<leo_parser::test::TestRunner>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\test-framework\\src\\runner.rs:151\n 9: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:153\n10: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests::{{closure}}\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:152\n11: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once<closure-0,tuple<>>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n12: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n13: \u001b[0m\u001b[32mtest::__rust_begin_short_backtrace<fn()>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:577\n14: \u001b[0m\u001b[32malloc::boxed::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\alloc\\src\\boxed.rs:1575\n15: \u001b[0m\u001b[32mstd::panic::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:347\n16: \u001b[0m\u001b[32mstd::panicking::try::do_call\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:401\n17: \u001b[0m\u001b[32mstd::panicking::try\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:365\n18: \u001b[0m\u001b[32mstd::panic::catch_unwind\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:434\n19: \u001b[0m\u001b[32mtest::run_test_in_process\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:600\n\u001b[0m\u001b[38;5;14m ⋮ 15 frames hidden ⋮ \n\u001b[0m"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\t\\t'\n | ^\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\u001b[0m\u001b[38;5;14m ⋮ 4 frames hidden ⋮ \n\u001b[0m 5: \u001b[0m\u001b[38;5;9menum$<leo_errors::parser::parser_errors::ParserError>::unexpected_token<str>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\errors\\src\\common\\macros.rs:86\n 6: \u001b[0m\u001b[38;5;9mleo_parser::tokenizer::tokenize\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\tokenizer\\mod.rs:85\n 7: \u001b[0m\u001b[38;5;9mleo_parser::test::{{impl}}::run_test\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:36\n 8: \u001b[0m\u001b[38;5;9mleo_test_framework::runner::run_tests<leo_parser::test::TestRunner>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\test-framework\\src\\runner.rs:151\n 9: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:153\n10: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests::{{closure}}\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:152\n11: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once<closure-0,tuple<>>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n12: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n13: \u001b[0m\u001b[32mtest::__rust_begin_short_backtrace<fn()>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:577\n14: \u001b[0m\u001b[32malloc::boxed::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\alloc\\src\\boxed.rs:1575\n15: \u001b[0m\u001b[32mstd::panic::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:347\n16: \u001b[0m\u001b[32mstd::panicking::try::do_call\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:401\n17: \u001b[0m\u001b[32mstd::panicking::try\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:365\n18: \u001b[0m\u001b[32mstd::panic::catch_unwind\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:434\n19: \u001b[0m\u001b[32mtest::run_test_in_process\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:600\n\u001b[0m\u001b[38;5;14m ⋮ 15 frames hidden ⋮ \n\u001b[0m"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\a'\n | ^\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\u001b[0m\u001b[38;5;14m ⋮ 4 frames hidden ⋮ \n\u001b[0m 5: \u001b[0m\u001b[38;5;9menum$<leo_errors::parser::parser_errors::ParserError>::unexpected_token<str>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\errors\\src\\common\\macros.rs:86\n 6: \u001b[0m\u001b[38;5;9mleo_parser::tokenizer::tokenize\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\tokenizer\\mod.rs:85\n 7: \u001b[0m\u001b[38;5;9mleo_parser::test::{{impl}}::run_test\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:36\n 8: \u001b[0m\u001b[38;5;9mleo_test_framework::runner::run_tests<leo_parser::test::TestRunner>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\test-framework\\src\\runner.rs:151\n 9: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:153\n10: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests::{{closure}}\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:152\n11: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once<closure-0,tuple<>>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n12: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n13: \u001b[0m\u001b[32mtest::__rust_begin_short_backtrace<fn()>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:577\n14: \u001b[0m\u001b[32malloc::boxed::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\alloc\\src\\boxed.rs:1575\n15: \u001b[0m\u001b[32mstd::panic::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:347\n16: \u001b[0m\u001b[32mstd::panicking::try::do_call\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:401\n17: \u001b[0m\u001b[32mstd::panicking::try\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:365\n18: \u001b[0m\u001b[32mstd::panic::catch_unwind\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:434\n19: \u001b[0m\u001b[32mtest::run_test_in_process\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:600\n\u001b[0m\u001b[38;5;14m ⋮ 15 frames hidden ⋮ \n\u001b[0m"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\z'\n | ^\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\u001b[0m\u001b[38;5;14m ⋮ 4 frames hidden ⋮ \n\u001b[0m 5: \u001b[0m\u001b[38;5;9menum$<leo_errors::parser::parser_errors::ParserError>::unexpected_token<str>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\errors\\src\\common\\macros.rs:86\n 6: \u001b[0m\u001b[38;5;9mleo_parser::tokenizer::tokenize\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\tokenizer\\mod.rs:85\n 7: \u001b[0m\u001b[38;5;9mleo_parser::test::{{impl}}::run_test\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:36\n 8: \u001b[0m\u001b[38;5;9mleo_test_framework::runner::run_tests<leo_parser::test::TestRunner>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\test-framework\\src\\runner.rs:151\n 9: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:153\n10: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests::{{closure}}\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:152\n11: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once<closure-0,tuple<>>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n12: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n13: \u001b[0m\u001b[32mtest::__rust_begin_short_backtrace<fn()>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:577\n14: \u001b[0m\u001b[32malloc::boxed::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\alloc\\src\\boxed.rs:1575\n15: \u001b[0m\u001b[32mstd::panic::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:347\n16: \u001b[0m\u001b[32mstd::panicking::try::do_call\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:401\n17: \u001b[0m\u001b[32mstd::panicking::try\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:365\n18: \u001b[0m\u001b[32mstd::panic::catch_unwind\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:434\n19: \u001b[0m\u001b[32mtest::run_test_in_process\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:600\n\u001b[0m\u001b[38;5;14m ⋮ 15 frames hidden ⋮ \n\u001b[0m"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\A'\n | ^\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\u001b[0m\u001b[38;5;14m ⋮ 4 frames hidden ⋮ \n\u001b[0m 5: \u001b[0m\u001b[38;5;9menum$<leo_errors::parser::parser_errors::ParserError>::unexpected_token<str>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\errors\\src\\common\\macros.rs:86\n 6: \u001b[0m\u001b[38;5;9mleo_parser::tokenizer::tokenize\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\tokenizer\\mod.rs:85\n 7: \u001b[0m\u001b[38;5;9mleo_parser::test::{{impl}}::run_test\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:36\n 8: \u001b[0m\u001b[38;5;9mleo_test_framework::runner::run_tests<leo_parser::test::TestRunner>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\test-framework\\src\\runner.rs:151\n 9: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:153\n10: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests::{{closure}}\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:152\n11: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once<closure-0,tuple<>>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n12: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n13: \u001b[0m\u001b[32mtest::__rust_begin_short_backtrace<fn()>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:577\n14: \u001b[0m\u001b[32malloc::boxed::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\alloc\\src\\boxed.rs:1575\n15: \u001b[0m\u001b[32mstd::panic::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:347\n16: \u001b[0m\u001b[32mstd::panicking::try::do_call\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:401\n17: \u001b[0m\u001b[32mstd::panicking::try\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:365\n18: \u001b[0m\u001b[32mstd::panic::catch_unwind\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:434\n19: \u001b[0m\u001b[32mtest::run_test_in_process\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:600\n\u001b[0m\u001b[38;5;14m ⋮ 15 frames hidden ⋮ \n\u001b[0m"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\Z'\n | ^\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\u001b[0m\u001b[38;5;14m ⋮ 4 frames hidden ⋮ \n\u001b[0m 5: \u001b[0m\u001b[38;5;9menum$<leo_errors::parser::parser_errors::ParserError>::unexpected_token<str>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\errors\\src\\common\\macros.rs:86\n 6: \u001b[0m\u001b[38;5;9mleo_parser::tokenizer::tokenize\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\tokenizer\\mod.rs:85\n 7: \u001b[0m\u001b[38;5;9mleo_parser::test::{{impl}}::run_test\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:36\n 8: \u001b[0m\u001b[38;5;9mleo_test_framework::runner::run_tests<leo_parser::test::TestRunner>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\test-framework\\src\\runner.rs:151\n 9: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:153\n10: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests::{{closure}}\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:152\n11: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once<closure-0,tuple<>>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n12: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n13: \u001b[0m\u001b[32mtest::__rust_begin_short_backtrace<fn()>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:577\n14: \u001b[0m\u001b[32malloc::boxed::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\alloc\\src\\boxed.rs:1575\n15: \u001b[0m\u001b[32mstd::panic::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:347\n16: \u001b[0m\u001b[32mstd::panicking::try::do_call\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:401\n17: \u001b[0m\u001b[32mstd::panicking::try\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:365\n18: \u001b[0m\u001b[32mstd::panic::catch_unwind\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:434\n19: \u001b[0m\u001b[32mtest::run_test_in_process\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:600\n\u001b[0m\u001b[38;5;14m ⋮ 15 frames hidden ⋮ \n\u001b[0m"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\1'\n | ^\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\u001b[0m\u001b[38;5;14m ⋮ 4 frames hidden ⋮ \n\u001b[0m 5: \u001b[0m\u001b[38;5;9menum$<leo_errors::parser::parser_errors::ParserError>::unexpected_token<str>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\errors\\src\\common\\macros.rs:86\n 6: \u001b[0m\u001b[38;5;9mleo_parser::tokenizer::tokenize\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\tokenizer\\mod.rs:85\n 7: \u001b[0m\u001b[38;5;9mleo_parser::test::{{impl}}::run_test\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:36\n 8: \u001b[0m\u001b[38;5;9mleo_test_framework::runner::run_tests<leo_parser::test::TestRunner>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\test-framework\\src\\runner.rs:151\n 9: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:153\n10: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests::{{closure}}\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:152\n11: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once<closure-0,tuple<>>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n12: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n13: \u001b[0m\u001b[32mtest::__rust_begin_short_backtrace<fn()>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:577\n14: \u001b[0m\u001b[32malloc::boxed::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\alloc\\src\\boxed.rs:1575\n15: \u001b[0m\u001b[32mstd::panic::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:347\n16: \u001b[0m\u001b[32mstd::panicking::try::do_call\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:401\n17: \u001b[0m\u001b[32mstd::panicking::try\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:365\n18: \u001b[0m\u001b[32mstd::panic::catch_unwind\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:434\n19: \u001b[0m\u001b[32mtest::run_test_in_process\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:600\n\u001b[0m\u001b[38;5;14m ⋮ 15 frames hidden ⋮ \n\u001b[0m"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\9'\n | ^\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\u001b[0m\u001b[38;5;14m ⋮ 4 frames hidden ⋮ \n\u001b[0m 5: \u001b[0m\u001b[38;5;9menum$<leo_errors::parser::parser_errors::ParserError>::unexpected_token<str>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\errors\\src\\common\\macros.rs:86\n 6: \u001b[0m\u001b[38;5;9mleo_parser::tokenizer::tokenize\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\tokenizer\\mod.rs:85\n 7: \u001b[0m\u001b[38;5;9mleo_parser::test::{{impl}}::run_test\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:36\n 8: \u001b[0m\u001b[38;5;9mleo_test_framework::runner::run_tests<leo_parser::test::TestRunner>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\test-framework\\src\\runner.rs:151\n 9: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:153\n10: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests::{{closure}}\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:152\n11: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once<closure-0,tuple<>>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n12: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n13: \u001b[0m\u001b[32mtest::__rust_begin_short_backtrace<fn()>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:577\n14: \u001b[0m\u001b[32malloc::boxed::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\alloc\\src\\boxed.rs:1575\n15: \u001b[0m\u001b[32mstd::panic::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:347\n16: \u001b[0m\u001b[32mstd::panicking::try::do_call\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:401\n17: \u001b[0m\u001b[32mstd::panicking::try\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:365\n18: \u001b[0m\u001b[32mstd::panic::catch_unwind\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:434\n19: \u001b[0m\u001b[32mtest::run_test_in_process\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:600\n\u001b[0m\u001b[38;5;14m ⋮ 15 frames hidden ⋮ \n\u001b[0m"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\*'\n | ^\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\u001b[0m\u001b[38;5;14m ⋮ 4 frames hidden ⋮ \n\u001b[0m 5: \u001b[0m\u001b[38;5;9menum$<leo_errors::parser::parser_errors::ParserError>::unexpected_token<str>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\errors\\src\\common\\macros.rs:86\n 6: \u001b[0m\u001b[38;5;9mleo_parser::tokenizer::tokenize\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\tokenizer\\mod.rs:85\n 7: \u001b[0m\u001b[38;5;9mleo_parser::test::{{impl}}::run_test\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:36\n 8: \u001b[0m\u001b[38;5;9mleo_test_framework::runner::run_tests<leo_parser::test::TestRunner>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\test-framework\\src\\runner.rs:151\n 9: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:153\n10: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests::{{closure}}\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:152\n11: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once<closure-0,tuple<>>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n12: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n13: \u001b[0m\u001b[32mtest::__rust_begin_short_backtrace<fn()>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:577\n14: \u001b[0m\u001b[32malloc::boxed::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\alloc\\src\\boxed.rs:1575\n15: \u001b[0m\u001b[32mstd::panic::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:347\n16: \u001b[0m\u001b[32mstd::panicking::try::do_call\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:401\n17: \u001b[0m\u001b[32mstd::panicking::try\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:365\n18: \u001b[0m\u001b[32mstd::panic::catch_unwind\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:434\n19: \u001b[0m\u001b[32mtest::run_test_in_process\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:600\n\u001b[0m\u001b[38;5;14m ⋮ 15 frames hidden ⋮ \n\u001b[0m"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\x'\n | ^\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\u001b[0m\u001b[38;5;14m ⋮ 4 frames hidden ⋮ \n\u001b[0m 5: \u001b[0m\u001b[38;5;9menum$<leo_errors::parser::parser_errors::ParserError>::unexpected_token<str>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\errors\\src\\common\\macros.rs:86\n 6: \u001b[0m\u001b[38;5;9mleo_parser::tokenizer::tokenize\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\tokenizer\\mod.rs:85\n 7: \u001b[0m\u001b[38;5;9mleo_parser::test::{{impl}}::run_test\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:36\n 8: \u001b[0m\u001b[38;5;9mleo_test_framework::runner::run_tests<leo_parser::test::TestRunner>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\test-framework\\src\\runner.rs:151\n 9: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:153\n10: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests::{{closure}}\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:152\n11: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once<closure-0,tuple<>>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n12: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n13: \u001b[0m\u001b[32mtest::__rust_begin_short_backtrace<fn()>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:577\n14: \u001b[0m\u001b[32malloc::boxed::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\alloc\\src\\boxed.rs:1575\n15: \u001b[0m\u001b[32mstd::panic::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:347\n16: \u001b[0m\u001b[32mstd::panicking::try::do_call\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:401\n17: \u001b[0m\u001b[32mstd::panicking::try\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:365\n18: \u001b[0m\u001b[32mstd::panic::catch_unwind\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:434\n19: \u001b[0m\u001b[32mtest::run_test_in_process\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:600\n\u001b[0m\u001b[38;5;14m ⋮ 15 frames hidden ⋮ \n\u001b[0m"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\u'\n | ^\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\u001b[0m\u001b[38;5;14m ⋮ 4 frames hidden ⋮ \n\u001b[0m 5: \u001b[0m\u001b[38;5;9menum$<leo_errors::parser::parser_errors::ParserError>::unexpected_token<str>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\errors\\src\\common\\macros.rs:86\n 6: \u001b[0m\u001b[38;5;9mleo_parser::tokenizer::tokenize\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\tokenizer\\mod.rs:85\n 7: \u001b[0m\u001b[38;5;9mleo_parser::test::{{impl}}::run_test\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:36\n 8: \u001b[0m\u001b[38;5;9mleo_test_framework::runner::run_tests<leo_parser::test::TestRunner>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\test-framework\\src\\runner.rs:151\n 9: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:153\n10: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests::{{closure}}\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:152\n11: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once<closure-0,tuple<>>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n12: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n13: \u001b[0m\u001b[32mtest::__rust_begin_short_backtrace<fn()>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:577\n14: \u001b[0m\u001b[32malloc::boxed::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\alloc\\src\\boxed.rs:1575\n15: \u001b[0m\u001b[32mstd::panic::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:347\n16: \u001b[0m\u001b[32mstd::panicking::try::do_call\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:401\n17: \u001b[0m\u001b[32mstd::panicking::try\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:365\n18: \u001b[0m\u001b[32mstd::panic::catch_unwind\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:434\n19: \u001b[0m\u001b[32mtest::run_test_in_process\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:600\n\u001b[0m\u001b[38;5;14m ⋮ 15 frames hidden ⋮ \n\u001b[0m"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\u{bbbbb}\\u{aaaa}'\n | ^\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\u001b[0m\u001b[38;5;14m ⋮ 4 frames hidden ⋮ \n\u001b[0m 5: \u001b[0m\u001b[38;5;9menum$<leo_errors::parser::parser_errors::ParserError>::unexpected_token<str>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\errors\\src\\common\\macros.rs:86\n 6: \u001b[0m\u001b[38;5;9mleo_parser::tokenizer::tokenize\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\tokenizer\\mod.rs:85\n 7: \u001b[0m\u001b[38;5;9mleo_parser::test::{{impl}}::run_test\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:36\n 8: \u001b[0m\u001b[38;5;9mleo_test_framework::runner::run_tests<leo_parser::test::TestRunner>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\test-framework\\src\\runner.rs:151\n 9: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:153\n10: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests::{{closure}}\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:152\n11: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once<closure-0,tuple<>>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n12: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n13: \u001b[0m\u001b[32mtest::__rust_begin_short_backtrace<fn()>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:577\n14: \u001b[0m\u001b[32malloc::boxed::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\alloc\\src\\boxed.rs:1575\n15: \u001b[0m\u001b[32mstd::panic::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:347\n16: \u001b[0m\u001b[32mstd::panicking::try::do_call\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:401\n17: \u001b[0m\u001b[32mstd::panicking::try\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:365\n18: \u001b[0m\u001b[32mstd::panic::catch_unwind\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:434\n19: \u001b[0m\u001b[32mtest::run_test_in_process\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:600\n\u001b[0m\u001b[38;5;14m ⋮ 15 frames hidden ⋮ \n\u001b[0m"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\uz'\n | ^\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\u001b[0m\u001b[38;5;14m ⋮ 4 frames hidden ⋮ \n\u001b[0m 5: \u001b[0m\u001b[38;5;9menum$<leo_errors::parser::parser_errors::ParserError>::unexpected_token<str>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\errors\\src\\common\\macros.rs:86\n 6: \u001b[0m\u001b[38;5;9mleo_parser::tokenizer::tokenize\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\tokenizer\\mod.rs:85\n 7: \u001b[0m\u001b[38;5;9mleo_parser::test::{{impl}}::run_test\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:36\n 8: \u001b[0m\u001b[38;5;9mleo_test_framework::runner::run_tests<leo_parser::test::TestRunner>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\test-framework\\src\\runner.rs:151\n 9: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:153\n10: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests::{{closure}}\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:152\n11: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once<closure-0,tuple<>>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n12: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n13: \u001b[0m\u001b[32mtest::__rust_begin_short_backtrace<fn()>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:577\n14: \u001b[0m\u001b[32malloc::boxed::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\alloc\\src\\boxed.rs:1575\n15: \u001b[0m\u001b[32mstd::panic::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:347\n16: \u001b[0m\u001b[32mstd::panicking::try::do_call\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:401\n17: \u001b[0m\u001b[32mstd::panicking::try\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:365\n18: \u001b[0m\u001b[32mstd::panic::catch_unwind\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:434\n19: \u001b[0m\u001b[32mtest::run_test_in_process\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:600\n\u001b[0m\u001b[38;5;14m ⋮ 15 frames hidden ⋮ \n\u001b[0m"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\u1'\n | ^\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\u001b[0m\u001b[38;5;14m ⋮ 4 frames hidden ⋮ \n\u001b[0m 5: \u001b[0m\u001b[38;5;9menum$<leo_errors::parser::parser_errors::ParserError>::unexpected_token<str>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\errors\\src\\common\\macros.rs:86\n 6: \u001b[0m\u001b[38;5;9mleo_parser::tokenizer::tokenize\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\tokenizer\\mod.rs:85\n 7: \u001b[0m\u001b[38;5;9mleo_parser::test::{{impl}}::run_test\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:36\n 8: \u001b[0m\u001b[38;5;9mleo_test_framework::runner::run_tests<leo_parser::test::TestRunner>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\test-framework\\src\\runner.rs:151\n 9: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:153\n10: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests::{{closure}}\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:152\n11: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once<closure-0,tuple<>>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n12: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n13: \u001b[0m\u001b[32mtest::__rust_begin_short_backtrace<fn()>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:577\n14: \u001b[0m\u001b[32malloc::boxed::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\alloc\\src\\boxed.rs:1575\n15: \u001b[0m\u001b[32mstd::panic::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:347\n16: \u001b[0m\u001b[32mstd::panicking::try::do_call\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:401\n17: \u001b[0m\u001b[32mstd::panicking::try\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:365\n18: \u001b[0m\u001b[32mstd::panic::catch_unwind\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:434\n19: \u001b[0m\u001b[32mtest::run_test_in_process\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:600\n\u001b[0m\u001b[38;5;14m ⋮ 15 frames hidden ⋮ \n\u001b[0m"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\u123'\n | ^\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\u001b[0m\u001b[38;5;14m ⋮ 4 frames hidden ⋮ \n\u001b[0m 5: \u001b[0m\u001b[38;5;9menum$<leo_errors::parser::parser_errors::ParserError>::unexpected_token<str>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\errors\\src\\common\\macros.rs:86\n 6: \u001b[0m\u001b[38;5;9mleo_parser::tokenizer::tokenize\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\tokenizer\\mod.rs:85\n 7: \u001b[0m\u001b[38;5;9mleo_parser::test::{{impl}}::run_test\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:36\n 8: \u001b[0m\u001b[38;5;9mleo_test_framework::runner::run_tests<leo_parser::test::TestRunner>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\test-framework\\src\\runner.rs:151\n 9: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:153\n10: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests::{{closure}}\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:152\n11: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once<closure-0,tuple<>>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n12: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n13: \u001b[0m\u001b[32mtest::__rust_begin_short_backtrace<fn()>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:577\n14: \u001b[0m\u001b[32malloc::boxed::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\alloc\\src\\boxed.rs:1575\n15: \u001b[0m\u001b[32mstd::panic::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:347\n16: \u001b[0m\u001b[32mstd::panicking::try::do_call\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:401\n17: \u001b[0m\u001b[32mstd::panicking::try\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:365\n18: \u001b[0m\u001b[32mstd::panic::catch_unwind\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:434\n19: \u001b[0m\u001b[32mtest::run_test_in_process\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:600\n\u001b[0m\u001b[38;5;14m ⋮ 15 frames hidden ⋮ \n\u001b[0m"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\u{2764z'\n | ^\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\u001b[0m\u001b[38;5;14m ⋮ 4 frames hidden ⋮ \n\u001b[0m 5: \u001b[0m\u001b[38;5;9menum$<leo_errors::parser::parser_errors::ParserError>::unexpected_token<str>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\errors\\src\\common\\macros.rs:86\n 6: \u001b[0m\u001b[38;5;9mleo_parser::tokenizer::tokenize\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\tokenizer\\mod.rs:85\n 7: \u001b[0m\u001b[38;5;9mleo_parser::test::{{impl}}::run_test\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:36\n 8: \u001b[0m\u001b[38;5;9mleo_test_framework::runner::run_tests<leo_parser::test::TestRunner>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\test-framework\\src\\runner.rs:151\n 9: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:153\n10: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests::{{closure}}\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:152\n11: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once<closure-0,tuple<>>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n12: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n13: \u001b[0m\u001b[32mtest::__rust_begin_short_backtrace<fn()>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:577\n14: \u001b[0m\u001b[32malloc::boxed::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\alloc\\src\\boxed.rs:1575\n15: \u001b[0m\u001b[32mstd::panic::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:347\n16: \u001b[0m\u001b[32mstd::panicking::try::do_call\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:401\n17: \u001b[0m\u001b[32mstd::panicking::try\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:365\n18: \u001b[0m\u001b[32mstd::panic::catch_unwind\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:434\n19: \u001b[0m\u001b[32mtest::run_test_in_process\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:600\n\u001b[0m\u001b[38;5;14m ⋮ 15 frames hidden ⋮ \n\u001b[0m"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\u{276g}'\n | ^\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\u001b[0m\u001b[38;5;14m ⋮ 4 frames hidden ⋮ \n\u001b[0m 5: \u001b[0m\u001b[38;5;9menum$<leo_errors::parser::parser_errors::ParserError>::unexpected_token<str>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\errors\\src\\common\\macros.rs:86\n 6: \u001b[0m\u001b[38;5;9mleo_parser::tokenizer::tokenize\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\tokenizer\\mod.rs:85\n 7: \u001b[0m\u001b[38;5;9mleo_parser::test::{{impl}}::run_test\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:36\n 8: \u001b[0m\u001b[38;5;9mleo_test_framework::runner::run_tests<leo_parser::test::TestRunner>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\test-framework\\src\\runner.rs:151\n 9: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:153\n10: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests::{{closure}}\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:152\n11: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once<closure-0,tuple<>>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n12: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n13: \u001b[0m\u001b[32mtest::__rust_begin_short_backtrace<fn()>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:577\n14: \u001b[0m\u001b[32malloc::boxed::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\alloc\\src\\boxed.rs:1575\n15: \u001b[0m\u001b[32mstd::panic::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:347\n16: \u001b[0m\u001b[32mstd::panicking::try::do_call\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:401\n17: \u001b[0m\u001b[32mstd::panicking::try\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:365\n18: \u001b[0m\u001b[32mstd::panic::catch_unwind\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:434\n19: \u001b[0m\u001b[32mtest::run_test_in_process\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:600\n\u001b[0m\u001b[38;5;14m ⋮ 15 frames hidden ⋮ \n\u001b[0m"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\u00000000'\n | ^\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\u001b[0m\u001b[38;5;14m ⋮ 4 frames hidden ⋮ \n\u001b[0m 5: \u001b[0m\u001b[38;5;9menum$<leo_errors::parser::parser_errors::ParserError>::unexpected_token<str>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\errors\\src\\common\\macros.rs:86\n 6: \u001b[0m\u001b[38;5;9mleo_parser::tokenizer::tokenize\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\tokenizer\\mod.rs:85\n 7: \u001b[0m\u001b[38;5;9mleo_parser::test::{{impl}}::run_test\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:36\n 8: \u001b[0m\u001b[38;5;9mleo_test_framework::runner::run_tests<leo_parser::test::TestRunner>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\test-framework\\src\\runner.rs:151\n 9: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:153\n10: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests::{{closure}}\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:152\n11: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once<closure-0,tuple<>>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n12: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n13: \u001b[0m\u001b[32mtest::__rust_begin_short_backtrace<fn()>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:577\n14: \u001b[0m\u001b[32malloc::boxed::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\alloc\\src\\boxed.rs:1575\n15: \u001b[0m\u001b[32mstd::panic::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:347\n16: \u001b[0m\u001b[32mstd::panicking::try::do_call\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:401\n17: \u001b[0m\u001b[32mstd::panicking::try\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:365\n18: \u001b[0m\u001b[32mstd::panic::catch_unwind\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:434\n19: \u001b[0m\u001b[32mtest::run_test_in_process\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:600\n\u001b[0m\u001b[38;5;14m ⋮ 15 frames hidden ⋮ \n\u001b[0m"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\u01000000'\n | ^\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\u001b[0m\u001b[38;5;14m ⋮ 4 frames hidden ⋮ \n\u001b[0m 5: \u001b[0m\u001b[38;5;9menum$<leo_errors::parser::parser_errors::ParserError>::unexpected_token<str>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\errors\\src\\common\\macros.rs:86\n 6: \u001b[0m\u001b[38;5;9mleo_parser::tokenizer::tokenize\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\tokenizer\\mod.rs:85\n 7: \u001b[0m\u001b[38;5;9mleo_parser::test::{{impl}}::run_test\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:36\n 8: \u001b[0m\u001b[38;5;9mleo_test_framework::runner::run_tests<leo_parser::test::TestRunner>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\test-framework\\src\\runner.rs:151\n 9: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:153\n10: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests::{{closure}}\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:152\n11: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once<closure-0,tuple<>>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n12: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n13: \u001b[0m\u001b[32mtest::__rust_begin_short_backtrace<fn()>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:577\n14: \u001b[0m\u001b[32malloc::boxed::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\alloc\\src\\boxed.rs:1575\n15: \u001b[0m\u001b[32mstd::panic::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:347\n16: \u001b[0m\u001b[32mstd::panicking::try::do_call\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:401\n17: \u001b[0m\u001b[32mstd::panicking::try\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:365\n18: \u001b[0m\u001b[32mstd::panic::catch_unwind\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:434\n19: \u001b[0m\u001b[32mtest::run_test_in_process\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:600\n\u001b[0m\u001b[38;5;14m ⋮ 15 frames hidden ⋮ \n\u001b[0m"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '\\u9999999'\n | ^\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\u001b[0m\u001b[38;5;14m ⋮ 4 frames hidden ⋮ \n\u001b[0m 5: \u001b[0m\u001b[38;5;9menum$<leo_errors::parser::parser_errors::ParserError>::unexpected_token<str>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\errors\\src\\common\\macros.rs:86\n 6: \u001b[0m\u001b[38;5;9mleo_parser::tokenizer::tokenize\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\tokenizer\\mod.rs:85\n 7: \u001b[0m\u001b[38;5;9mleo_parser::test::{{impl}}::run_test\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:36\n 8: \u001b[0m\u001b[38;5;9mleo_test_framework::runner::run_tests<leo_parser::test::TestRunner>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\test-framework\\src\\runner.rs:151\n 9: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:153\n10: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests::{{closure}}\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:152\n11: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once<closure-0,tuple<>>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n12: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n13: \u001b[0m\u001b[32mtest::__rust_begin_short_backtrace<fn()>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:577\n14: \u001b[0m\u001b[32malloc::boxed::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\alloc\\src\\boxed.rs:1575\n15: \u001b[0m\u001b[32mstd::panic::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:347\n16: \u001b[0m\u001b[32mstd::panicking::try::do_call\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:401\n17: \u001b[0m\u001b[32mstd::panicking::try\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:365\n18: \u001b[0m\u001b[32mstd::panic::catch_unwind\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:434\n19: \u001b[0m\u001b[32mtest::run_test_in_process\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:600\n\u001b[0m\u001b[38;5;14m ⋮ 15 frames hidden ⋮ \n\u001b[0m"
|
||||
- "Error [EPAR0370000]: '\n --> test:1:1\n |\n 1 | '😭😂😘'\n | ^\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\u001b[0m\u001b[38;5;14m ⋮ 4 frames hidden ⋮ \n\u001b[0m 5: \u001b[0m\u001b[38;5;9menum$<leo_errors::parser::parser_errors::ParserError>::unexpected_token<str>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\errors\\src\\common\\macros.rs:86\n 6: \u001b[0m\u001b[38;5;9mleo_parser::tokenizer::tokenize\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\tokenizer\\mod.rs:85\n 7: \u001b[0m\u001b[38;5;9mleo_parser::test::{{impl}}::run_test\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:36\n 8: \u001b[0m\u001b[38;5;9mleo_test_framework::runner::run_tests<leo_parser::test::TestRunner>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\test-framework\\src\\runner.rs:151\n 9: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:153\n10: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests::{{closure}}\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:152\n11: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once<closure-0,tuple<>>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n12: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n13: \u001b[0m\u001b[32mtest::__rust_begin_short_backtrace<fn()>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:577\n14: \u001b[0m\u001b[32malloc::boxed::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\alloc\\src\\boxed.rs:1575\n15: \u001b[0m\u001b[32mstd::panic::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:347\n16: \u001b[0m\u001b[32mstd::panicking::try::do_call\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:401\n17: \u001b[0m\u001b[32mstd::panicking::try\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:365\n18: \u001b[0m\u001b[32mstd::panic::catch_unwind\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:434\n19: \u001b[0m\u001b[32mtest::run_test_in_process\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:600\n\u001b[0m\u001b[38;5;14m ⋮ 15 frames hidden ⋮ \n\u001b[0m"
|
||||
|
File diff suppressed because one or more lines are too long
@ -2,10 +2,10 @@
|
||||
namespace: Token
|
||||
expectation: Fail
|
||||
outputs:
|
||||
- "Error [EPAR0370000]: \"\n --> test:1:1\n |\n 1 | \"Hello world!\n | ^"
|
||||
- "Error [EPAR0370000]: \"\n --> test:1:1\n |\n 1 | \"\\\"\n | ^"
|
||||
- "Error [EPAR0370000]: \"\n --> test:1:1\n |\n 1 | \"\\l\"\n | ^"
|
||||
- "Error [EPAR0370000]: \"\n --> test:1:1\n |\n 1 | \"\\uaaa\"\n | ^"
|
||||
- "Error [EPAR0370000]: \"\n --> test:1:1\n |\n 1 | \"\\u\"\n | ^"
|
||||
- "Error [EPAR0370000]: \"\n --> test:1:1\n |\n 1 | \"\\xFF\"\n | ^"
|
||||
- "Error [EPAR0370000]: \"\n --> test:1:1\n |\n 1 | \"\\x\"\n | ^"
|
||||
- "Error [EPAR0370000]: \"\n --> test:1:1\n |\n 1 | \"Hello world!\n | ^\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\u001b[0m\u001b[38;5;14m ⋮ 4 frames hidden ⋮ \n\u001b[0m 5: \u001b[0m\u001b[38;5;9menum$<leo_errors::parser::parser_errors::ParserError>::unexpected_token<str>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\errors\\src\\common\\macros.rs:86\n 6: \u001b[0m\u001b[38;5;9mleo_parser::tokenizer::tokenize\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\tokenizer\\mod.rs:85\n 7: \u001b[0m\u001b[38;5;9mleo_parser::test::{{impl}}::run_test\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:36\n 8: \u001b[0m\u001b[38;5;9mleo_test_framework::runner::run_tests<leo_parser::test::TestRunner>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\test-framework\\src\\runner.rs:151\n 9: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:153\n10: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests::{{closure}}\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:152\n11: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once<closure-0,tuple<>>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n12: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n13: \u001b[0m\u001b[32mtest::__rust_begin_short_backtrace<fn()>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:577\n14: \u001b[0m\u001b[32malloc::boxed::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\alloc\\src\\boxed.rs:1575\n15: \u001b[0m\u001b[32mstd::panic::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:347\n16: \u001b[0m\u001b[32mstd::panicking::try::do_call\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:401\n17: \u001b[0m\u001b[32mstd::panicking::try\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:365\n18: \u001b[0m\u001b[32mstd::panic::catch_unwind\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:434\n19: \u001b[0m\u001b[32mtest::run_test_in_process\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:600\n\u001b[0m\u001b[38;5;14m ⋮ 15 frames hidden ⋮ \n\u001b[0m"
|
||||
- "Error [EPAR0370000]: \"\n --> test:1:1\n |\n 1 | \"\\\"\n | ^\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\u001b[0m\u001b[38;5;14m ⋮ 4 frames hidden ⋮ \n\u001b[0m 5: \u001b[0m\u001b[38;5;9menum$<leo_errors::parser::parser_errors::ParserError>::unexpected_token<str>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\errors\\src\\common\\macros.rs:86\n 6: \u001b[0m\u001b[38;5;9mleo_parser::tokenizer::tokenize\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\tokenizer\\mod.rs:85\n 7: \u001b[0m\u001b[38;5;9mleo_parser::test::{{impl}}::run_test\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:36\n 8: \u001b[0m\u001b[38;5;9mleo_test_framework::runner::run_tests<leo_parser::test::TestRunner>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\test-framework\\src\\runner.rs:151\n 9: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:153\n10: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests::{{closure}}\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:152\n11: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once<closure-0,tuple<>>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n12: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n13: \u001b[0m\u001b[32mtest::__rust_begin_short_backtrace<fn()>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:577\n14: \u001b[0m\u001b[32malloc::boxed::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\alloc\\src\\boxed.rs:1575\n15: \u001b[0m\u001b[32mstd::panic::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:347\n16: \u001b[0m\u001b[32mstd::panicking::try::do_call\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:401\n17: \u001b[0m\u001b[32mstd::panicking::try\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:365\n18: \u001b[0m\u001b[32mstd::panic::catch_unwind\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:434\n19: \u001b[0m\u001b[32mtest::run_test_in_process\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:600\n\u001b[0m\u001b[38;5;14m ⋮ 15 frames hidden ⋮ \n\u001b[0m"
|
||||
- "Error [EPAR0370000]: \"\n --> test:1:1\n |\n 1 | \"\\l\"\n | ^\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\u001b[0m\u001b[38;5;14m ⋮ 4 frames hidden ⋮ \n\u001b[0m 5: \u001b[0m\u001b[38;5;9menum$<leo_errors::parser::parser_errors::ParserError>::unexpected_token<str>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\errors\\src\\common\\macros.rs:86\n 6: \u001b[0m\u001b[38;5;9mleo_parser::tokenizer::tokenize\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\tokenizer\\mod.rs:85\n 7: \u001b[0m\u001b[38;5;9mleo_parser::test::{{impl}}::run_test\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:36\n 8: \u001b[0m\u001b[38;5;9mleo_test_framework::runner::run_tests<leo_parser::test::TestRunner>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\test-framework\\src\\runner.rs:151\n 9: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:153\n10: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests::{{closure}}\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:152\n11: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once<closure-0,tuple<>>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n12: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n13: \u001b[0m\u001b[32mtest::__rust_begin_short_backtrace<fn()>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:577\n14: \u001b[0m\u001b[32malloc::boxed::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\alloc\\src\\boxed.rs:1575\n15: \u001b[0m\u001b[32mstd::panic::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:347\n16: \u001b[0m\u001b[32mstd::panicking::try::do_call\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:401\n17: \u001b[0m\u001b[32mstd::panicking::try\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:365\n18: \u001b[0m\u001b[32mstd::panic::catch_unwind\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:434\n19: \u001b[0m\u001b[32mtest::run_test_in_process\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:600\n\u001b[0m\u001b[38;5;14m ⋮ 15 frames hidden ⋮ \n\u001b[0m"
|
||||
- "Error [EPAR0370000]: \"\n --> test:1:1\n |\n 1 | \"\\uaaa\"\n | ^\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\u001b[0m\u001b[38;5;14m ⋮ 4 frames hidden ⋮ \n\u001b[0m 5: \u001b[0m\u001b[38;5;9menum$<leo_errors::parser::parser_errors::ParserError>::unexpected_token<str>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\errors\\src\\common\\macros.rs:86\n 6: \u001b[0m\u001b[38;5;9mleo_parser::tokenizer::tokenize\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\tokenizer\\mod.rs:85\n 7: \u001b[0m\u001b[38;5;9mleo_parser::test::{{impl}}::run_test\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:36\n 8: \u001b[0m\u001b[38;5;9mleo_test_framework::runner::run_tests<leo_parser::test::TestRunner>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\test-framework\\src\\runner.rs:151\n 9: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:153\n10: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests::{{closure}}\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:152\n11: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once<closure-0,tuple<>>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n12: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n13: \u001b[0m\u001b[32mtest::__rust_begin_short_backtrace<fn()>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:577\n14: \u001b[0m\u001b[32malloc::boxed::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\alloc\\src\\boxed.rs:1575\n15: \u001b[0m\u001b[32mstd::panic::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:347\n16: \u001b[0m\u001b[32mstd::panicking::try::do_call\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:401\n17: \u001b[0m\u001b[32mstd::panicking::try\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:365\n18: \u001b[0m\u001b[32mstd::panic::catch_unwind\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:434\n19: \u001b[0m\u001b[32mtest::run_test_in_process\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:600\n\u001b[0m\u001b[38;5;14m ⋮ 15 frames hidden ⋮ \n\u001b[0m"
|
||||
- "Error [EPAR0370000]: \"\n --> test:1:1\n |\n 1 | \"\\u\"\n | ^\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\u001b[0m\u001b[38;5;14m ⋮ 4 frames hidden ⋮ \n\u001b[0m 5: \u001b[0m\u001b[38;5;9menum$<leo_errors::parser::parser_errors::ParserError>::unexpected_token<str>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\errors\\src\\common\\macros.rs:86\n 6: \u001b[0m\u001b[38;5;9mleo_parser::tokenizer::tokenize\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\tokenizer\\mod.rs:85\n 7: \u001b[0m\u001b[38;5;9mleo_parser::test::{{impl}}::run_test\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:36\n 8: \u001b[0m\u001b[38;5;9mleo_test_framework::runner::run_tests<leo_parser::test::TestRunner>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\test-framework\\src\\runner.rs:151\n 9: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:153\n10: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests::{{closure}}\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:152\n11: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once<closure-0,tuple<>>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n12: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n13: \u001b[0m\u001b[32mtest::__rust_begin_short_backtrace<fn()>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:577\n14: \u001b[0m\u001b[32malloc::boxed::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\alloc\\src\\boxed.rs:1575\n15: \u001b[0m\u001b[32mstd::panic::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:347\n16: \u001b[0m\u001b[32mstd::panicking::try::do_call\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:401\n17: \u001b[0m\u001b[32mstd::panicking::try\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:365\n18: \u001b[0m\u001b[32mstd::panic::catch_unwind\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:434\n19: \u001b[0m\u001b[32mtest::run_test_in_process\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:600\n\u001b[0m\u001b[38;5;14m ⋮ 15 frames hidden ⋮ \n\u001b[0m"
|
||||
- "Error [EPAR0370000]: \"\n --> test:1:1\n |\n 1 | \"\\xFF\"\n | ^\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\u001b[0m\u001b[38;5;14m ⋮ 4 frames hidden ⋮ \n\u001b[0m 5: \u001b[0m\u001b[38;5;9menum$<leo_errors::parser::parser_errors::ParserError>::unexpected_token<str>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\errors\\src\\common\\macros.rs:86\n 6: \u001b[0m\u001b[38;5;9mleo_parser::tokenizer::tokenize\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\tokenizer\\mod.rs:85\n 7: \u001b[0m\u001b[38;5;9mleo_parser::test::{{impl}}::run_test\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:36\n 8: \u001b[0m\u001b[38;5;9mleo_test_framework::runner::run_tests<leo_parser::test::TestRunner>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\test-framework\\src\\runner.rs:151\n 9: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:153\n10: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests::{{closure}}\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:152\n11: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once<closure-0,tuple<>>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n12: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n13: \u001b[0m\u001b[32mtest::__rust_begin_short_backtrace<fn()>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:577\n14: \u001b[0m\u001b[32malloc::boxed::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\alloc\\src\\boxed.rs:1575\n15: \u001b[0m\u001b[32mstd::panic::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:347\n16: \u001b[0m\u001b[32mstd::panicking::try::do_call\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:401\n17: \u001b[0m\u001b[32mstd::panicking::try\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:365\n18: \u001b[0m\u001b[32mstd::panic::catch_unwind\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:434\n19: \u001b[0m\u001b[32mtest::run_test_in_process\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:600\n\u001b[0m\u001b[38;5;14m ⋮ 15 frames hidden ⋮ \n\u001b[0m"
|
||||
- "Error [EPAR0370000]: \"\n --> test:1:1\n |\n 1 | \"\\x\"\n | ^\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\u001b[0m\u001b[38;5;14m ⋮ 4 frames hidden ⋮ \n\u001b[0m 5: \u001b[0m\u001b[38;5;9menum$<leo_errors::parser::parser_errors::ParserError>::unexpected_token<str>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\errors\\src\\common\\macros.rs:86\n 6: \u001b[0m\u001b[38;5;9mleo_parser::tokenizer::tokenize\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\tokenizer\\mod.rs:85\n 7: \u001b[0m\u001b[38;5;9mleo_parser::test::{{impl}}::run_test\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:36\n 8: \u001b[0m\u001b[38;5;9mleo_test_framework::runner::run_tests<leo_parser::test::TestRunner>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\test-framework\\src\\runner.rs:151\n 9: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:153\n10: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests::{{closure}}\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:152\n11: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once<closure-0,tuple<>>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n12: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n13: \u001b[0m\u001b[32mtest::__rust_begin_short_backtrace<fn()>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:577\n14: \u001b[0m\u001b[32malloc::boxed::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\alloc\\src\\boxed.rs:1575\n15: \u001b[0m\u001b[32mstd::panic::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:347\n16: \u001b[0m\u001b[32mstd::panicking::try::do_call\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:401\n17: \u001b[0m\u001b[32mstd::panicking::try\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:365\n18: \u001b[0m\u001b[32mstd::panic::catch_unwind\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:434\n19: \u001b[0m\u001b[32mtest::run_test_in_process\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:600\n\u001b[0m\u001b[38;5;14m ⋮ 15 frames hidden ⋮ \n\u001b[0m"
|
||||
|
@ -26,6 +26,7 @@ outputs:
|
||||
col_stop: 5
|
||||
path: ""
|
||||
content: "-x.y"
|
||||
type_: ~
|
||||
op: Negate
|
||||
span:
|
||||
line_start: 1
|
||||
|
@ -26,6 +26,7 @@ outputs:
|
||||
col_stop: 5
|
||||
path: ""
|
||||
content: "!x.y"
|
||||
type_: ~
|
||||
op: Not
|
||||
span:
|
||||
line_start: 1
|
||||
|
@ -10,7 +10,7 @@ outputs:
|
||||
circuits: {}
|
||||
global_consts: {}
|
||||
functions:
|
||||
x:
|
||||
"{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":4,\\\"line_stop\\\":4,\\\"col_start\\\":10,\\\"col_stop\\\":11,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"function x() {\\\"}\"}":
|
||||
annotations:
|
||||
- span:
|
||||
line_start: 3
|
||||
|
@ -2,4 +2,4 @@
|
||||
namespace: Parse
|
||||
expectation: Fail
|
||||
outputs:
|
||||
- "Error [EPAR0370005]: expected 'identifier', 'number' -- got ')'\n --> test:3:12\n |\n 3 | @test(test,)\n | ^"
|
||||
- "Error [EPAR0370005]: expected 'identifier', 'number' -- got ')'\n --> test:3:12\n |\n 3 | @test(test,)\n | ^\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\u001b[0m\u001b[38;5;14m ⋮ 4 frames hidden ⋮ \n\u001b[0m 5: \u001b[0m\u001b[38;5;9menum$<leo_errors::parser::parser_errors::ParserError>::unexpected<enum$<leo_parser::tokenizer::token::Token>,alloc::string::String>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\errors\\src\\common\\macros.rs:86\n 6: \u001b[0m\u001b[38;5;9mleo_parser::parser::context::ParserContext::parse_annotation\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\parser\\file.rs:113\n 7: \u001b[0m\u001b[38;5;9mleo_parser::parser::context::ParserContext::parse_function_declaration\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\parser\\file.rs:473\n 8: \u001b[0m\u001b[38;5;9mleo_parser::parser::context::ParserContext::parse_program\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\parser\\file.rs:48\n 9: \u001b[0m\u001b[38;5;9mleo_parser::test::{{impl}}::run_test\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:130\n10: \u001b[0m\u001b[38;5;9mleo_test_framework::runner::run_tests<leo_parser::test::TestRunner>\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\test-framework\\src\\runner.rs:151\n11: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:153\n12: \u001b[0m\u001b[38;5;9mleo_parser::test::parser_tests::{{closure}}\n\u001b[0m at C:\\Users\\jonat\\AppData\\Roaming\\work\\leo\\parser\\src\\test.rs:152\n13: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once<closure-0,tuple<>>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n14: \u001b[0m\u001b[32mcore::ops::function::FnOnce::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\core\\src\\ops\\function.rs:227\n15: \u001b[0m\u001b[32mtest::__rust_begin_short_backtrace<fn()>\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:577\n16: \u001b[0m\u001b[32malloc::boxed::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\alloc\\src\\boxed.rs:1575\n17: \u001b[0m\u001b[32mstd::panic::{{impl}}::call_once\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:347\n18: \u001b[0m\u001b[32mstd::panicking::try::do_call\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:401\n19: \u001b[0m\u001b[32mstd::panicking::try\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panicking.rs:365\n20: \u001b[0m\u001b[32mstd::panic::catch_unwind\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\library\\std\\src\\panic.rs:434\n21: \u001b[0m\u001b[32mtest::run_test_in_process\n\u001b[0m at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633\\/library\\test\\src\\lib.rs:600\n\u001b[0m\u001b[38;5;14m ⋮ 15 frames hidden ⋮ \n\u001b[0m"
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user