program inputs

This commit is contained in:
damirka 2021-05-05 17:35:34 +03:00
parent 2ac3468d18
commit 72648c993c
166 changed files with 517 additions and 25721 deletions

View File

@ -1,21 +0,0 @@
// 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/>.
mod program_input;
mod program_input_and_program_state;
mod program_input_constants;
mod program_registers;
mod program_state;

View File

@ -1,2 +1,5 @@
[main] [main]
a: bool = true; a: bool = true;
[registers]
r0: bool = true;

View File

@ -1,2 +1,2 @@
[main] [main]
x: [i16; 1] = [0i16; 1]; x: [i16; 1] = [0i16; 1];

View File

@ -1,2 +1,2 @@
[main] [main]
bad_name: bool = true; bad_name: bool = true;

View File

@ -1,2 +1,2 @@
[main] [main]
a: u8 = 1; a: u8 = 1;

View File

@ -1,3 +1,3 @@
[main] [main]
a: field = 1; a: field = 1;
b: field = -1; b: field = -1;

View File

@ -1,4 +1,4 @@
[main] [main]
a: group = 1group; a: group = 1group;
b: group = -1group; b: group = -1group;
c: group = (0, -1)group; c: group = (0, -1)group;

View File

@ -1,2 +1,5 @@
[main] [main]
x: [i16; (2, 2, 3)] = [0i16; (2, 2, 3)]; x: [i16; (2, 2, 3)] = [0i16; (2, 2, 3)];
[registers]
r0: bool = true;

View File

@ -1,3 +1,6 @@
[main] [main]
a: bool = true; a: bool = true;
b: bool = false; b: bool = false;
[registers]
r0: bool = true;

View File

@ -0,0 +1,5 @@
[main]
x: (u8, bool, u8) = (10, true, 10);
[registers]
r0: bool = true;

View File

@ -1,2 +1,2 @@
[main] [main]
x: (u8, bool) = (10, true); // wrong size here; main expects (u8, bool, u8) x: (u8, bool) = (10, true); // wrong size here; main expects (u8, bool, u8)

View File

@ -1,3 +1,9 @@
function main(a: bool) { /*
console.assert(a == true); namespace: Compile
} expectation: Pass
input_file: input/main.in
*/
function main(a: bool) -> bool {
return a == true;
}

View File

@ -1,4 +1,10 @@
function main (x: [i16; 1]) { /*
namespace: Compile
expectation: Pass
input_file: input/main_array.in
*/
function main(x: [i16; 1]) {
console.log("{}", x); console.log("{}", x);
console.assert(x[0] == 0); console.assert(x[0] == 0);
} }

View File

@ -1,3 +1,9 @@
function main(x: [i16; 2]){ /*
console.log("x: {}", x); namespace: Compile
} expectation: Fail
input_file: input/main_array_fail.in
*/
function main(x: [i16; 2]) {
console.log("x: {}", x);
}

View File

@ -1,5 +1,11 @@
/*
namespace: Compile
expectation: Pass
input_file: input/main_field.in
*/
function main(a: field, b: field) { function main(a: field, b: field) {
// Change to assert when == is implemented for field. // Change to assert when == is implemented for field.
console.log("a: {}", a); console.log("a: {}", a);
console.log("b: {}", b); console.log("b: {}", b);
} }

View File

@ -1,6 +1,12 @@
/*
namespace: Compile
expectation: Pass
input_file: input/main_group.in
*/
function main(a: group, b: group, c: group) { function main(a: group, b: group, c: group) {
// Change to assert when == is implemented for group. // Change to assert when == is implemented for group.
console.log("a: {}", a); console.log("a: {}", a);
console.log("b: {}", b); console.log("b: {}", b);
console.log("c: {}", c); console.log("c: {}", c);
} }

View File

@ -1,9 +1,14 @@
function main(x: [i16; (2, 2, 3)]){ /*
console.log("x: {}", x); namespace: Compile
expectation: Pass
input_file: input/main_multi_dimension_array.in
*/
const y: [i16; (2, 2, 3)] = [0i16; (2, 2, 3)]; function main(x: [i16; (2, 2, 3)]) -> bool {
console.log("y: {}", y); console.log("x: {}", x);
console.assert(x[0][0][0] == y[0][0][0]); const y: [i16; (2, 2, 3)] = [0i16; (2, 2, 3)];
console.assert(x[1][1][2] == y[1][1][2]); console.log("y: {}", y);
}
return x[0][0][0] == y[0][0][0] && x[1][1][2] == y[1][1][2];
}

View File

@ -1,4 +1,9 @@
function main(a: bool, b: bool) { /*
console.assert(a == true); namespace: Compile
console.assert(b == false); expectation: Pass
} input_file: input/main_multiple.in
*/
function main(a: bool, b: bool) -> bool {
return a != b;
}

View File

@ -0,0 +1,9 @@
/*
namespace: Compile
expectation: Pass
input_file: input/main_tuple.in
*/
function main(x: (u8, bool, u8)) -> bool {
return x.0 == 10 && x.1 == true && x.2 == 10;
}

View File

@ -1,3 +1,9 @@
/*
namespace: Compile
expectation: Fail
input_file: input/main_tuple_fail.in
*/
function main(x: (u8, bool, u8)) { function main(x: (u8, bool, u8)) {
console.log("x: {}", x); console.log("x: {}", x);
} }

View File

@ -1,125 +0,0 @@
// 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::{assert_satisfied, expect_compiler_error, parse_program_with_input, EdwardsTestCompiler};
use leo_compiler::errors::CompilerError;
fn expect_fail(program: EdwardsTestCompiler) {
match expect_compiler_error(program) {
CompilerError::FunctionError(_) => {}
err => panic!("expected input parser error, got {:?}", err),
}
}
#[test]
fn test_input_pass() {
let program_string = include_str!("main.leo");
let input_string = include_str!("input/main.in");
let program = parse_program_with_input(program_string, input_string).unwrap();
assert_satisfied(program);
}
#[test]
fn test_input_array_fail() {
let program_string = include_str!("main_array.leo");
let input_string = include_str!("input/main_array.in");
let program = parse_program_with_input(program_string, input_string).unwrap();
assert_satisfied(program);
}
#[test]
fn test_input_multi_dimension_array() {
let program_string = include_str!("main_multi_dimension_array.leo");
let input_string = include_str!("input/main_multi_dimension_array.in");
let program = parse_program_with_input(program_string, input_string).unwrap();
assert_satisfied(program);
}
#[test]
fn test_input_fail_name() {
let program_string = include_str!("main.leo");
let input_string = include_str!("input/main_fail_name.in");
let program = parse_program_with_input(program_string, input_string).unwrap();
expect_fail(program);
}
#[test]
fn test_input_fail_type() {
let program_string = include_str!("main.leo");
let input_string = include_str!("input/main_fail_type.in");
let program = parse_program_with_input(program_string, input_string).unwrap();
expect_fail(program);
}
#[test]
fn test_input_multiple() {
let program_string = include_str!("main_multiple.leo");
let input_string = include_str!("input/main_multiple.in");
let program = parse_program_with_input(program_string, input_string).unwrap();
assert_satisfied(program);
}
#[test]
fn test_input_array_dimensions_mismatch() {
let program_string = include_str!("main_array_fail.leo");
let input_string = include_str!("input/main_array_fail.in");
let program = parse_program_with_input(program_string, input_string).unwrap();
expect_fail(program);
}
#[test]
fn test_tuple_size_mismatch() {
let program_string = include_str!("main_tuple_fail.leo");
let input_string = include_str!("input/main_tuple_fail.in");
let program = parse_program_with_input(program_string, input_string).unwrap();
expect_fail(program);
}
#[test]
fn test_field_input() {
let program_string = include_str!("main_field.leo");
let input_string = include_str!("input/main_field.in");
let program = parse_program_with_input(program_string, input_string).unwrap();
assert_satisfied(program);
}
#[test]
fn test_group_input() {
let program_string = include_str!("main_group.leo");
let input_string = include_str!("input/main_group.in");
let program = parse_program_with_input(program_string, input_string).unwrap();
assert_satisfied(program);
}

View File

@ -1,11 +0,0 @@
function main(data: [u8; 32]) {
console.assert(input.registers.value_balance == 0u64);
console.assert(input.state.leaf_index == 0u32);
console.assert(input.record.value == 5u64);
console.assert(input.state_leaf.network_id == 0u8);
console.assert(data == [0u8; 32]);
}

View File

@ -0,0 +1,10 @@
/*
namespace: Compile
expectation: Pass
state_file: input/basic.state
input_file: input/basic.in
*/
function main(a: bool) -> bool {
return a == input.registers.b;
}

View File

@ -2,4 +2,4 @@
a: bool = true; a: bool = true;
[registers] [registers]
b: bool = true; b: bool = true;

View File

@ -9,4 +9,4 @@ a: bool = true;
a: bool = true; a: bool = true;
[state_leaf] [state_leaf]
a: bool = true; a: bool = true;

View File

@ -2,5 +2,6 @@
data: [u8; 32] = [0u8; 32]; data: [u8; 32] = [0u8; 32];
[registers] [registers]
r0: bool = true;
token_id: [u8; 32] = [0u8; 32]; token_id: [u8; 32] = [0u8; 32];
value_balance: u64 = 0; value_balance: u64 = 0;

View File

@ -21,4 +21,4 @@ commitment_randomness: [u8; 32] = [0u8; 32];
path: [u8; 128] = [0u8; 128]; path: [u8; 128] = [0u8; 128];
memo: [u8; 32] = [0u8; 32]; memo: [u8; 32] = [0u8; 32];
network_id: u8 = 0; network_id: u8 = 0;
leaf_randomness: [u8; 32] = [0u8; 32]; leaf_randomness: [u8; 32] = [0u8; 32];

View File

@ -1,44 +0,0 @@
// 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::{assert_satisfied, parse_input_and_state, parse_program_with_input_and_state};
#[test]
fn test_basic() {
let input_string = include_str!("input/basic.in");
let state_string = include_str!("input/basic.state");
parse_input_and_state(input_string, state_string).unwrap();
}
#[test]
fn test_full() {
let input_string = include_str!("input/token_withdraw.in");
let state_string = include_str!("input/token_withdraw.state");
parse_input_and_state(input_string, state_string).unwrap();
}
#[test]
fn test_access() {
let program_string = include_str!("access.leo");
let input_string = include_str!("input/token_withdraw.in");
let state_string = include_str!("input/token_withdraw.state");
let program = parse_program_with_input_and_state(program_string, input_string, state_string).unwrap();
assert_satisfied(program);
}

View File

@ -0,0 +1,14 @@
/*
namespace: Compile
expectation: Pass
state_file: input/token_withdraw.state
input_file: input/token_withdraw.in
*/
function main(data: [u8; 32]) -> bool {
return input.registers.value_balance == 0u64
&& input.state.leaf_index == 0u32
&& input.record.value == 5u64
&& input.state_leaf.network_id == 0u8
&& data == [0u8; 32];
}

View File

@ -1,2 +1,5 @@
[constants] [constants]
a: bool = true; a: bool = true;
[registers]
r0: bool = true;

View File

@ -1,2 +1,2 @@
[constants] [constants]
x: [i16; 1] = [0i16; 1]; x: [i16; 1] = [0i16; 1];

View File

@ -1,5 +0,0 @@
[main]
a: bool = true;
[constants]
a: bool = false;

View File

@ -1,2 +1,2 @@
[constants] [constants]
bad_name: bool = true; bad_name: bool = true;

View File

@ -1,2 +1,2 @@
[constants] [constants]
a: u8 = 1; a: u8 = 1;

View File

@ -1,3 +1,3 @@
[constants] [constants]
a: field = 1; a: field = 1;
b: field = -1; b: field = -1;

View File

@ -1,4 +1,4 @@
[constants] [constants]
a: group = 1group; a: group = 1group;
b: group = -1group; b: group = -1group;
c: group = (0, -1)group; c: group = (0, -1)group;

View File

@ -1,2 +1,5 @@
[constants] [constants]
x: [i16; (2, 2, 3)] = [0i16; (2, 2, 3)]; x: [i16; (2, 2, 3)] = [0i16; (2, 2, 3)];
[registers]
r0: bool = true;

View File

@ -1,3 +1,6 @@
[constants] [constants]
a: bool = true; a: bool = true;
b: bool = false; b: bool = false;
[registers]
r0: bool = true;

View File

@ -1,2 +0,0 @@
[main]
a: bool = true; // expecting const a, not main a

View File

@ -0,0 +1,5 @@
[constants]
x: (u8, bool, u8) = (10, true, 10);
[registers]
r0: bool = true;

View File

@ -1,2 +1,2 @@
[constants] [constants]
x: (u8, bool) = (10, true); // wrong size here; main expects (u8, bool, u8) x: (u8, bool) = (10, true); // wrong size here; main expects (u8, bool, u8)

View File

@ -1,2 +0,0 @@
[constants]
a: u8 = 10;

View File

@ -1,3 +1,9 @@
function main(const a: bool) { /*
console.assert(a == true); namespace: Compile
} expectation: Pass
input_file: ../program_input_constants/input/main.in
*/
function main(const a: bool) -> bool {
return a == true;
}

View File

@ -1,4 +1,10 @@
function main (const x: [i16; 1]) { /*
namespace: Compile
expectation: Pass
input_file: input/main_array.in
*/
function main(const x: [i16; 1]) {
console.log("{}", x); console.log("{}", x);
console.assert(x[0] == 0); console.assert(x[0] == 0);
} }

View File

@ -1,3 +1,9 @@
function main(const x: [i16; 2]){ /*
console.log("x: {}", x); namespace: Compile
} expectation: Fail
input_file: input/main_array_fail.in
*/
function main(const x: [i16; 2]) {
console.log("x: {}", x);
}

View File

@ -1,5 +1,11 @@
/*
namespace: Compile
expectation: Pass
input_file: input/main_field.in
*/
function main(const a: field, const b: field) { function main(const a: field, const b: field) {
// Change to assert when == is implemented for field. // Change to assert when == is implemented for field.
console.log("a: {}", a); console.log("a: {}", a);
console.log("b: {}", b); console.log("b: {}", b);
} }

View File

@ -1,6 +1,12 @@
/*
namespace: Compile
expectation: Pass
input_file: input/main_group.in
*/
function main(const a: group, const b: group, const c: group) { function main(const a: group, const b: group, const c: group) {
// Change to assert when == is implemented for group. // Change to assert when == is implemented for group.
console.log("a: {}", a); console.log("a: {}", a);
console.log("b: {}", b); console.log("b: {}", b);
console.log("c: {}", c); console.log("c: {}", c);
} }

View File

@ -1,9 +1,14 @@
function main(const x: [i16; (2, 2, 3)]){ /*
console.log("x: {}", x); namespace: Compile
expectation: Pass
input_file: input/main_multi_dimension_array.in
*/
let y: [i16; (2, 2, 3)] = [0i16; (2, 2, 3)]; function main(const x: [i16; (2, 2, 3)]) -> bool {
console.log("y: {}", y); console.log("x: {}", x);
console.assert(x[0][0][0] == y[0][0][0]); const y: [i16; (2, 2, 3)] = [0i16; (2, 2, 3)];
console.assert(x[1][1][2] == y[1][1][2]); console.log("y: {}", y);
}
return x[0][0][0] == y[0][0][0] && x[1][1][2] == y[1][1][2];
}

View File

@ -1,4 +1,9 @@
function main(const a: bool, const b: bool) { /*
console.assert(a == true); namespace: Compile
console.assert(b == false); expectation: Pass
} input_file: input/main_multiple.in
*/
function main(const a: bool, const b: bool) -> bool {
return a != b;
}

View File

@ -0,0 +1,9 @@
/*
namespace: Compile
expectation: Pass
input_file: input/main_tuple.in
*/
function main(const x: (u8, bool, u8)) -> bool {
return x.0 == 10 && x.1 == true && x.2 == 10;
}

View File

@ -1,3 +1,9 @@
/*
namespace: Compile
expectation: Fail
input_file: input/main_tuple_fail.in
*/
function main(const x: (u8, bool, u8)) { function main(const x: (u8, bool, u8)) {
console.log("x: {}", x); console.log("x: {}", x);
} }

View File

@ -1,145 +0,0 @@
// 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::{assert_satisfied, expect_compiler_error, parse_program_with_input, EdwardsTestCompiler};
use leo_compiler::errors::CompilerError;
fn expect_fail(program: EdwardsTestCompiler) {
match expect_compiler_error(program) {
CompilerError::FunctionError(_) => {}
err => panic!("expected input parser error, got {:?}", err),
}
}
#[test]
fn test_input_pass() {
let program_string = include_str!("main.leo");
let input_string = include_str!("input/main.in");
let program = parse_program_with_input(program_string, input_string).unwrap();
assert_satisfied(program);
}
#[test]
fn test_input_array_fail() {
let program_string = include_str!("main_array.leo");
let input_string = include_str!("input/main_array.in");
let program = parse_program_with_input(program_string, input_string).unwrap();
assert_satisfied(program);
}
#[test]
fn test_input_multi_dimension_array() {
let program_string = include_str!("main_multi_dimension_array.leo");
let input_string = include_str!("input/main_multi_dimension_array.in");
let program = parse_program_with_input(program_string, input_string).unwrap();
assert_satisfied(program);
}
#[test]
fn test_input_fail_name() {
let program_string = include_str!("main.leo");
let input_string = include_str!("input/main_fail_name.in");
let program = parse_program_with_input(program_string, input_string).unwrap();
expect_fail(program);
}
#[test]
fn test_input_fail_type() {
let program_string = include_str!("main.leo");
let input_string = include_str!("input/main_fail_type.in");
let program = parse_program_with_input(program_string, input_string).unwrap();
expect_fail(program);
}
#[test]
fn test_input_multiple() {
let program_string = include_str!("main_multiple.leo");
let input_string = include_str!("input/main_multiple.in");
let program = parse_program_with_input(program_string, input_string).unwrap();
assert_satisfied(program);
}
#[test]
fn test_input_array_dimensions_mismatch() {
let program_string = include_str!("main_array_fail.leo");
let input_string = include_str!("input/main_array_fail.in");
let program = parse_program_with_input(program_string, input_string).unwrap();
expect_fail(program);
}
#[test]
fn test_input_double_declaration() {
let program_string = include_str!("main.leo");
let input_string = include_str!("input/main_double_declaration_fail.in");
let program = parse_program_with_input(program_string, input_string).unwrap();
expect_fail(program);
}
#[test]
fn test_non_constant_input() {
let program_string = include_str!("main.leo");
let input_string = include_str!("input/main_not_const_input_fail.in");
let program = parse_program_with_input(program_string, input_string).unwrap();
expect_fail(program);
}
#[test]
fn test_tuple_size_mismatch() {
let program_string = include_str!("main_tuple_fail.leo");
let input_string = include_str!("input/main_tuple_fail.in");
let program = parse_program_with_input(program_string, input_string).unwrap();
expect_fail(program);
}
#[test]
fn test_field_input() {
let program_string = include_str!("main_field.leo");
let input_string = include_str!("input/main_field.in");
let program = parse_program_with_input(program_string, input_string).unwrap();
assert_satisfied(program);
}
#[test]
fn test_group_input() {
let program_string = include_str!("main_group.leo");
let input_string = include_str!("input/main_group.in");
let program = parse_program_with_input(program_string, input_string).unwrap();
assert_satisfied(program);
}

View File

@ -0,0 +1,18 @@
---
namespace: Compile
expectation: Pass
outputs:
- circuit:
num_public_variables: 0
num_private_variables: 1
num_constraints: 1
at: 042610d0fd1fe6d6ac112138f8755752f44c7d2a00f1b5960574d6da5cda393f
bt: e97756698880ab7555a959a5fb5c6b4e15bd64612aa677adbfe2d0bd91f0a83c
ct: cf1cbb66a638b4860a516671fb74850e6ccf787fe6c4c8d29e9c04efe880bd05
output:
- input_file: input/main.in
output:
registers:
r0:
type: bool
value: "true"

View File

@ -0,0 +1,15 @@
---
namespace: Compile
expectation: Pass
outputs:
- circuit:
num_public_variables: 0
num_private_variables: 31
num_constraints: 31
at: 9dbf37472d7a01111bf49d73870895e1669fce2d7c86d19fa1cd9bf97102c34a
bt: 51c5020146972aaa76ab053686ae5364f63ce6185620eba3780cf86581f29cfe
ct: e02be0defc1d4e9bfd935093780a8693b624228f7dc2501ac1f065af2eee9bc8
output:
- input_file: input/main_array.in
output:
registers: {}

View File

@ -0,0 +1,5 @@
---
namespace: Compile
expectation: Fail
outputs:
- " --> /test/src/main.leo:3:1\n |\n 3 | function main(x: [i16; 2]) {\n 4 | ...\n 5 | }\n | ^\n |\n = Input array dimensions mismatch expected 1, found array dimensions 2"

View File

@ -0,0 +1,15 @@
---
namespace: Compile
expectation: Pass
outputs:
- circuit:
num_public_variables: 0
num_private_variables: 2
num_constraints: 0
at: 4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945
bt: 4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945
ct: 4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945
output:
- input_file: input/main_field.in
output:
registers: {}

View File

@ -0,0 +1,15 @@
---
namespace: Compile
expectation: Pass
outputs:
- circuit:
num_public_variables: 0
num_private_variables: 12
num_constraints: 9
at: df88b362955f00b8c41afd9e31c9e41e4b8254a71ea0f3f2f97d5b6b8b767415
bt: df58aff07b131c34e977ffb5657bbd21852f59fd7e059117c419c3c6070a7053
ct: 335cdfb09b13172262042abccf4560511666deaa63cc1b3f30dd35dcb554840f
output:
- input_file: input/main_group.in
output:
registers: {}

View File

@ -0,0 +1,18 @@
---
namespace: Compile
expectation: Pass
outputs:
- circuit:
num_public_variables: 0
num_private_variables: 223
num_constraints: 223
at: 87fe022f8971e90450cc219824d04ea84f08040429143393193aa2de0321759f
bt: 65e18f4e1e32d72f87d238401f8397b5d8ba20e7da7d50cc5930faa5673cdb77
ct: 389354117abccc4ef9f4822705889f64f1d16b7e0d2adae52005c7b91b0ccabb
output:
- input_file: input/main_multi_dimension_array.in
output:
registers:
r0:
type: bool
value: "true"

View File

@ -0,0 +1,18 @@
---
namespace: Compile
expectation: Pass
outputs:
- circuit:
num_public_variables: 0
num_private_variables: 3
num_constraints: 3
at: d4e77c2cd10c964fbbc4ad4f374dc36b3a6bc7d6865b87ec5234076348308c2c
bt: 49e8fa1fd3f85b0f486c49f194e4fff3da5e8039685fca1f3327389cbe9fc180
ct: 7ca43d5c34997f3c866631161cb33186cc016972238c07771ae105ca1b05320d
output:
- input_file: input/main_multiple.in
output:
registers:
r0:
type: bool
value: "true"

View File

@ -0,0 +1,18 @@
---
namespace: Compile
expectation: Pass
outputs:
- circuit:
num_public_variables: 0
num_private_variables: 33
num_constraints: 33
at: 16cd2aaf51f97f0d967f934facd55d3da0f128b5548ca7d9033099dabb8755aa
bt: 13ce6219d223223b0e2a5b8bab43bda704fb2509e20143c1c8dc28238c65a0c3
ct: 1a2cc6ebebf9b0d70351fb54db6ab269bfec125b7d84dea8450ee1566d937a38
output:
- input_file: input/main_tuple.in
output:
registers:
r0:
type: bool
value: "true"

View File

@ -0,0 +1,5 @@
---
namespace: Compile
expectation: Fail
outputs:
- " --> /test/src/main.leo:3:1\n |\n 3 | function main(x: (u8, bool, u8)) {\n 4 | ...\n 5 | }\n | ^\n |\n = Input tuple size mismatch expected 3, found tuple with length 2"

View File

@ -0,0 +1,18 @@
---
namespace: Compile
expectation: Pass
outputs:
- circuit:
num_public_variables: 0
num_private_variables: 3
num_constraints: 3
at: c5f99f3b350445cd2709c7f76cda7a2ff158e972c58dc1294b346ab21b5c9100
bt: 5a01b0726c5b948a3b336179b77081865f51dc2f1de630ce95b03424a5ae7998
ct: 7ca43d5c34997f3c866631161cb33186cc016972238c07771ae105ca1b05320d
output:
- input_file: input/basic.in
output:
registers:
b:
type: bool
value: "true"

View File

@ -0,0 +1,18 @@
---
namespace: Compile
expectation: Pass
outputs:
- circuit:
num_public_variables: 0
num_private_variables: 847
num_constraints: 847
at: 7a173ccf91016726958e205fb7a60e954c826a7d8f3dbfba86417c4dad8a8809
bt: ef390629424c3ec765f6759eba6be4285e92bbb34e1fdb083ea723021fda1a83
ct: 048882f78f795732711ba34cb6892495a782c2573a1358a9c679b97fa5ea5fe7
output:
- input_file: input/token_withdraw.in
output:
registers:
r0:
type: bool
value: "true"

View File

@ -0,0 +1,18 @@
---
namespace: Compile
expectation: Pass
outputs:
- circuit:
num_public_variables: 0
num_private_variables: 0
num_constraints: 0
at: 4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945
bt: 4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945
ct: 4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945
output:
- input_file: "../program_input_constants/input/main.in"
output:
registers:
r0:
type: bool
value: "true"

View File

@ -0,0 +1,15 @@
---
namespace: Compile
expectation: Pass
outputs:
- circuit:
num_public_variables: 0
num_private_variables: 0
num_constraints: 0
at: 4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945
bt: 4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945
ct: 4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945
output:
- input_file: input/main_array.in
output:
registers: {}

View File

@ -0,0 +1,5 @@
---
namespace: Compile
expectation: Fail
outputs:
- " --> /test/src/main.leo:3:1\n |\n 3 | function main(const x: [i16; 2]) {\n 4 | ...\n 5 | }\n | ^\n |\n = Input array dimensions mismatch expected 2, found array dimensions 1"

View File

@ -0,0 +1,15 @@
---
namespace: Compile
expectation: Pass
outputs:
- circuit:
num_public_variables: 0
num_private_variables: 0
num_constraints: 0
at: 4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945
bt: 4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945
ct: 4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945
output:
- input_file: input/main_field.in
output:
registers: {}

View File

@ -0,0 +1,15 @@
---
namespace: Compile
expectation: Pass
outputs:
- circuit:
num_public_variables: 0
num_private_variables: 0
num_constraints: 0
at: 4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945
bt: 4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945
ct: 4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945
output:
- input_file: input/main_group.in
output:
registers: {}

View File

@ -0,0 +1,18 @@
---
namespace: Compile
expectation: Pass
outputs:
- circuit:
num_public_variables: 0
num_private_variables: 0
num_constraints: 0
at: 4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945
bt: 4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945
ct: 4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945
output:
- input_file: input/main_multi_dimension_array.in
output:
registers:
r0:
type: bool
value: "true"

View File

@ -0,0 +1,18 @@
---
namespace: Compile
expectation: Pass
outputs:
- circuit:
num_public_variables: 0
num_private_variables: 0
num_constraints: 0
at: 4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945
bt: 4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945
ct: 4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945
output:
- input_file: input/main_multiple.in
output:
registers:
r0:
type: bool
value: "true"

View File

@ -0,0 +1,18 @@
---
namespace: Compile
expectation: Pass
outputs:
- circuit:
num_public_variables: 0
num_private_variables: 0
num_constraints: 0
at: 4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945
bt: 4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945
ct: 4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945
output:
- input_file: input/main_tuple.in
output:
registers:
r0:
type: bool
value: "true"

View File

@ -0,0 +1,5 @@
---
namespace: Compile
expectation: Fail
outputs:
- " --> /test/src/main.leo:3:1\n |\n 3 | function main(const x: (u8, bool, u8)) {\n 4 | ...\n 5 | }\n | ^\n |\n = Input tuple size mismatch expected 3, found tuple with length 2"

View File

@ -1,53 +0,0 @@
---
namespace: Parse
expectation: Pass
outputs:
- name: ""
expected_input: []
imports: []
circuits:
"{\"name\":\"X\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":9,\\\"col_stop\\\":10,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"circuit X {\\\"}\"}":
circuit_name: "{\"name\":\"X\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":9,\\\"col_stop\\\":10,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"circuit X {\\\"}\"}"
members:
- CircuitFunction:
annotations: []
identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":4,\\\"line_stop\\\":4,\\\"col_start\\\":14,\\\"col_stop\\\":15,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\" function x() -> Self {\\\"}\"}"
input: []
output: SelfType
block:
statements:
- Return:
expression:
CircuitInit:
name: "{\"name\":\"Self\",\"span\":\"{\\\"line_start\\\":5,\\\"line_stop\\\":5,\\\"col_start\\\":16,\\\"col_stop\\\":20,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\" return Self {};\\\"}\"}"
members: []
span:
line_start: 5
line_stop: 5
col_start: 16
col_stop: 23
path: test
content: " return Self {};"
span:
line_start: 5
line_stop: 5
col_start: 9
col_stop: 23
path: test
content: " return Self {};"
span:
line_start: 4
line_stop: 6
col_start: 26
col_stop: 6
path: test
content: " function x() -> Self {\n...\n }"
span:
line_start: 4
line_stop: 6
col_start: 5
col_stop: 6
path: test
content: " function x() -> Self {\n...\n }"
global_consts: {}
functions: {}

View File

@ -1,13 +0,0 @@
---
namespace: Parse
expectation: Pass
outputs:
- name: ""
expected_input: []
imports: []
circuits:
"{\"name\":\"X\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":9,\\\"col_stop\\\":10,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"circuit X {\\\"}\"}":
circuit_name: "{\"name\":\"X\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":9,\\\"col_stop\\\":10,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"circuit X {\\\"}\"}"
members: []
global_consts: {}
functions: {}

View File

@ -1,97 +0,0 @@
---
namespace: Parse
expectation: Pass
outputs:
- name: ""
expected_input: []
imports: []
circuits:
"{\"name\":\"X\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":9,\\\"col_stop\\\":10,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"circuit X {\\\"}\"}":
circuit_name: "{\"name\":\"X\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":9,\\\"col_stop\\\":10,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"circuit X {\\\"}\"}"
members:
- CircuitVariable:
- "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":4,\\\"line_stop\\\":4,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\" x: u32,\\\"}\"}"
- IntegerType: U32
- CircuitVariable:
- "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":5,\\\"line_stop\\\":5,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\" y: u32,\\\"}\"}"
- IntegerType: U32
- CircuitFunction:
annotations: []
identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":6,\\\"line_stop\\\":6,\\\"col_start\\\":14,\\\"col_stop\\\":15,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\" function x() {\\\"}\"}"
input: []
output: ~
block:
statements:
- Return:
expression:
TupleInit:
elements: []
span:
line_start: 7
line_stop: 7
col_start: 16
col_stop: 18
path: test
content: " return ();"
span:
line_start: 7
line_stop: 7
col_start: 9
col_stop: 18
path: test
content: " return ();"
span:
line_start: 6
line_stop: 8
col_start: 18
col_stop: 6
path: test
content: " function x() {\n...\n }"
span:
line_start: 6
line_stop: 8
col_start: 5
col_stop: 6
path: test
content: " function x() {\n...\n }"
- CircuitFunction:
annotations: []
identifier: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":9,\\\"line_stop\\\":9,\\\"col_start\\\":14,\\\"col_stop\\\":15,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\" function y() {\\\"}\"}"
input: []
output: ~
block:
statements:
- Return:
expression:
TupleInit:
elements: []
span:
line_start: 10
line_stop: 10
col_start: 16
col_stop: 18
path: test
content: " return ();"
span:
line_start: 10
line_stop: 10
col_start: 9
col_stop: 18
path: test
content: " return ();"
span:
line_start: 9
line_stop: 11
col_start: 18
col_stop: 6
path: test
content: " function y() {\n...\n }"
span:
line_start: 9
line_stop: 11
col_start: 5
col_stop: 6
path: test
content: " function y() {\n...\n }"
global_consts: {}
functions: {}

View File

@ -1,19 +0,0 @@
---
namespace: Parse
expectation: Pass
outputs:
- name: ""
expected_input: []
imports: []
circuits:
"{\"name\":\"X\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":9,\\\"col_stop\\\":10,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"circuit X {\\\"}\"}":
circuit_name: "{\"name\":\"X\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":9,\\\"col_stop\\\":10,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"circuit X {\\\"}\"}"
members:
- CircuitVariable:
- "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":4,\\\"line_stop\\\":4,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\" x: u32,\\\"}\"}"
- IntegerType: U32
- CircuitVariable:
- "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":5,\\\"line_stop\\\":5,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\" y: u32,\\\"}\"}"
- IntegerType: U32
global_consts: {}
functions: {}

View File

@ -1,91 +0,0 @@
---
namespace: Parse
expectation: Pass
outputs:
- name: ""
expected_input: []
imports: []
circuits:
"{\"name\":\"X\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":9,\\\"col_stop\\\":10,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"circuit X {\\\"}\"}":
circuit_name: "{\"name\":\"X\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":9,\\\"col_stop\\\":10,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"circuit X {\\\"}\"}"
members:
- CircuitFunction:
annotations: []
identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":4,\\\"line_stop\\\":4,\\\"col_start\\\":14,\\\"col_stop\\\":15,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\" function x() {\\\"}\"}"
input: []
output: ~
block:
statements:
- Return:
expression:
TupleInit:
elements: []
span:
line_start: 5
line_stop: 5
col_start: 16
col_stop: 18
path: test
content: " return ();"
span:
line_start: 5
line_stop: 5
col_start: 9
col_stop: 18
path: test
content: " return ();"
span:
line_start: 4
line_stop: 6
col_start: 18
col_stop: 6
path: test
content: " function x() {\n...\n }"
span:
line_start: 4
line_stop: 6
col_start: 5
col_stop: 6
path: test
content: " function x() {\n...\n }"
- CircuitFunction:
annotations: []
identifier: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":7,\\\"line_stop\\\":7,\\\"col_start\\\":14,\\\"col_stop\\\":15,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\" function y() {\\\"}\"}"
input: []
output: ~
block:
statements:
- Return:
expression:
TupleInit:
elements: []
span:
line_start: 8
line_stop: 8
col_start: 16
col_stop: 18
path: test
content: " return ();"
span:
line_start: 8
line_stop: 8
col_start: 9
col_stop: 18
path: test
content: " return ();"
span:
line_start: 7
line_stop: 9
col_start: 18
col_stop: 6
path: test
content: " function y() {\n...\n }"
span:
line_start: 7
line_stop: 9
col_start: 5
col_stop: 6
path: test
content: " function y() {\n...\n }"
global_consts: {}
functions: {}

View File

@ -1,53 +0,0 @@
---
namespace: Parse
expectation: Pass
outputs:
- name: ""
expected_input: []
imports: []
circuits:
"{\"name\":\"X\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":9,\\\"col_stop\\\":10,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"circuit X {\\\"}\"}":
circuit_name: "{\"name\":\"X\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":9,\\\"col_stop\\\":10,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"circuit X {\\\"}\"}"
members:
- CircuitFunction:
annotations: []
identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":4,\\\"line_stop\\\":4,\\\"col_start\\\":14,\\\"col_stop\\\":15,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\" function x(mut self) {\\\"}\"}"
input:
- MutSelfKeyword: "{\"name\":\"mut self\",\"span\":\"{\\\"line_start\\\":4,\\\"line_stop\\\":4,\\\"col_start\\\":16,\\\"col_stop\\\":24,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\" function x(mut self) {\\\"}\"}"
output: ~
block:
statements:
- Return:
expression:
TupleInit:
elements: []
span:
line_start: 5
line_stop: 5
col_start: 16
col_stop: 18
path: test
content: " return ();"
span:
line_start: 5
line_stop: 5
col_start: 9
col_stop: 18
path: test
content: " return ();"
span:
line_start: 4
line_stop: 6
col_start: 26
col_stop: 6
path: test
content: " function x(mut self) {\n...\n }"
span:
line_start: 4
line_stop: 6
col_start: 5
col_stop: 6
path: test
content: " function x(mut self) {\n...\n }"
global_consts: {}
functions: {}

View File

@ -1,53 +0,0 @@
---
namespace: Parse
expectation: Pass
outputs:
- name: ""
expected_input: []
imports: []
circuits:
"{\"name\":\"X\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":9,\\\"col_stop\\\":10,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"circuit X {\\\"}\"}":
circuit_name: "{\"name\":\"X\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":9,\\\"col_stop\\\":10,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"circuit X {\\\"}\"}"
members:
- CircuitFunction:
annotations: []
identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":4,\\\"line_stop\\\":4,\\\"col_start\\\":14,\\\"col_stop\\\":15,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\" function x(self) {\\\"}\"}"
input:
- SelfKeyword: "{\"name\":\"self\",\"span\":\"{\\\"line_start\\\":4,\\\"line_stop\\\":4,\\\"col_start\\\":16,\\\"col_stop\\\":20,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\" function x(self) {\\\"}\"}"
output: ~
block:
statements:
- Return:
expression:
TupleInit:
elements: []
span:
line_start: 5
line_stop: 5
col_start: 16
col_stop: 18
path: test
content: " return ();"
span:
line_start: 5
line_stop: 5
col_start: 9
col_stop: 18
path: test
content: " return ();"
span:
line_start: 4
line_stop: 6
col_start: 22
col_stop: 6
path: test
content: " function x(self) {\n...\n }"
span:
line_start: 4
line_stop: 6
col_start: 5
col_stop: 6
path: test
content: " function x(self) {\n...\n }"
global_consts: {}
functions: {}

View File

@ -1,267 +0,0 @@
---
namespace: ParseExpression
expectation: Pass
outputs:
- ArrayAccess:
array:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x[0]\\\"}\"}"
index:
Value:
Implicit:
- "0"
- line_start: 1
line_stop: 1
col_start: 3
col_stop: 4
path: test
content: "x[0]"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 5
path: test
content: "x[0]"
- ArrayAccess:
array:
Identifier: "{\"name\":\"X\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"X[1]\\\"}\"}"
index:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 3
col_stop: 4
path: test
content: "X[1]"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 5
path: test
content: "X[1]"
- ArrayAccess:
array:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x[0u8]\\\"}\"}"
index:
Value:
Integer:
- U8
- "0"
- line_start: 1
line_stop: 1
col_start: 3
col_stop: 6
path: test
content: "x[0u8]"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 7
path: test
content: "x[0u8]"
- ArrayAccess:
array:
ArrayAccess:
array:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x[1u8][2u8]\\\"}\"}"
index:
Value:
Integer:
- U8
- "1"
- line_start: 1
line_stop: 1
col_start: 3
col_stop: 6
path: test
content: "x[1u8][2u8]"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 7
path: test
content: "x[1u8][2u8]"
index:
Value:
Integer:
- U8
- "2"
- line_start: 1
line_stop: 1
col_start: 8
col_stop: 11
path: test
content: "x[1u8][2u8]"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 12
path: test
content: "x[1u8][2u8]"
- ArrayAccess:
array:
ArrayAccess:
array:
ArrayAccess:
array:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x[x][y][z]\\\"}\"}"
index:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":3,\\\"col_stop\\\":4,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x[x][y][z]\\\"}\"}"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 5
path: test
content: "x[x][y][z]"
index:
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":6,\\\"col_stop\\\":7,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x[x][y][z]\\\"}\"}"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 8
path: test
content: "x[x][y][z]"
index:
Identifier: "{\"name\":\"z\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":9,\\\"col_stop\\\":10,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x[x][y][z]\\\"}\"}"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 11
path: test
content: "x[x][y][z]"
- Call:
function:
ArrayAccess:
array:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x[0]()\\\"}\"}"
index:
Value:
Implicit:
- "0"
- line_start: 1
line_stop: 1
col_start: 3
col_stop: 4
path: test
content: "x[0]()"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 5
path: test
content: "x[0]()"
arguments: []
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 7
path: test
content: "x[0]()"
- ArrayAccess:
array:
Call:
function:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x()[0]\\\"}\"}"
arguments: []
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 4
path: test
content: "x()[0]"
index:
Value:
Implicit:
- "0"
- line_start: 1
line_stop: 1
col_start: 5
col_stop: 6
path: test
content: "x()[0]"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 7
path: test
content: "x()[0]"
- Call:
function:
CircuitStaticFunctionAccess:
circuit:
Call:
function:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x(y)::y(x)\\\"}\"}"
arguments:
- Identifier: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":3,\\\"col_stop\\\":4,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x(y)::y(x)\\\"}\"}"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 5
path: test
content: "x(y)::y(x)"
name: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":7,\\\"col_stop\\\":8,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x(y)::y(x)\\\"}\"}"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 8
path: test
content: "x(y)::y(x)"
arguments:
- Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":9,\\\"col_stop\\\":10,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x(y)::y(x)\\\"}\"}"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 11
path: test
content: "x(y)::y(x)"
- ArrayAccess:
array:
TupleAccess:
tuple:
ArrayAccess:
array:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x[x].0[x]\\\"}\"}"
index:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":3,\\\"col_stop\\\":4,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x[x].0[x]\\\"}\"}"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 5
path: test
content: "x[x].0[x]"
index:
value: "0"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 7
path: test
content: "x[x].0[x]"
index:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":8,\\\"col_stop\\\":9,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x[x].0[x]\\\"}\"}"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 10
path: test
content: "x[x].0[x]"

View File

@ -1,401 +0,0 @@
---
namespace: ParseExpression
expectation: Pass
outputs:
- ArrayRangeAccess:
array:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x[..]\\\"}\"}"
left: ~
right: ~
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 6
path: test
content: "x[..]"
- ArrayRangeAccess:
array:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x[1..]\\\"}\"}"
left:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 3
col_stop: 4
path: test
content: "x[1..]"
right: ~
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 7
path: test
content: "x[1..]"
- ArrayRangeAccess:
array:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x[..1]\\\"}\"}"
left: ~
right:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 5
col_stop: 6
path: test
content: "x[..1]"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 7
path: test
content: "x[..1]"
- ArrayRangeAccess:
array:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x[1..1]\\\"}\"}"
left:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 3
col_stop: 4
path: test
content: "x[1..1]"
right:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 6
col_stop: 7
path: test
content: "x[1..1]"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 8
path: test
content: "x[1..1]"
- ArrayRangeAccess:
array:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x[0..100]\\\"}\"}"
left:
Value:
Implicit:
- "0"
- line_start: 1
line_stop: 1
col_start: 3
col_stop: 4
path: test
content: "x[0..100]"
right:
Value:
Implicit:
- "100"
- line_start: 1
line_stop: 1
col_start: 6
col_stop: 9
path: test
content: "x[0..100]"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 10
path: test
content: "x[0..100]"
- ArrayAccess:
array:
ArrayAccess:
array:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x[323452345.2345234523453453][323452345.2345234523453453]\\\"}\"}"
index:
TupleAccess:
tuple:
Value:
Implicit:
- "323452345"
- line_start: 1
line_stop: 1
col_start: 3
col_stop: 12
path: test
content: "x[323452345.2345234523453453][323452345.2345234523453453]"
index:
value: "2345234523453453"
span:
line_start: 1
line_stop: 1
col_start: 3
col_stop: 29
path: test
content: "x[323452345.2345234523453453][323452345.2345234523453453]"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 30
path: test
content: "x[323452345.2345234523453453][323452345.2345234523453453]"
index:
TupleAccess:
tuple:
Value:
Implicit:
- "323452345"
- line_start: 1
line_stop: 1
col_start: 31
col_stop: 40
path: test
content: "x[323452345.2345234523453453][323452345.2345234523453453]"
index:
value: "2345234523453453"
span:
line_start: 1
line_stop: 1
col_start: 31
col_stop: 57
path: test
content: "x[323452345.2345234523453453][323452345.2345234523453453]"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 58
path: test
content: "x[323452345.2345234523453453][323452345.2345234523453453]"
- ArrayRangeAccess:
array:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x[0u8..1u8]\\\"}\"}"
left:
Value:
Integer:
- U8
- "0"
- line_start: 1
line_stop: 1
col_start: 3
col_stop: 6
path: test
content: "x[0u8..1u8]"
right:
Value:
Integer:
- U8
- "1"
- line_start: 1
line_stop: 1
col_start: 8
col_stop: 11
path: test
content: "x[0u8..1u8]"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 12
path: test
content: "x[0u8..1u8]"
- ArrayRangeAccess:
array:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x[0u8..]\\\"}\"}"
left:
Value:
Integer:
- U8
- "0"
- line_start: 1
line_stop: 1
col_start: 3
col_stop: 6
path: test
content: "x[0u8..]"
right: ~
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 9
path: test
content: "x[0u8..]"
- ArrayRangeAccess:
array:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x[..0u8]\\\"}\"}"
left: ~
right:
Value:
Integer:
- U8
- "0"
- line_start: 1
line_stop: 1
col_start: 5
col_stop: 8
path: test
content: "x[..0u8]"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 9
path: test
content: "x[..0u8]"
- ArrayRangeAccess:
array:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x[..]\\\"}\"}"
left: ~
right: ~
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 6
path: test
content: "x[..]"
- ArrayRangeAccess:
array:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x[x.y..]\\\"}\"}"
left:
CircuitMemberAccess:
circuit:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":3,\\\"col_stop\\\":4,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x[x.y..]\\\"}\"}"
name: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x[x.y..]\\\"}\"}"
span:
line_start: 1
line_stop: 1
col_start: 3
col_stop: 6
path: test
content: "x[x.y..]"
right: ~
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 9
path: test
content: "x[x.y..]"
- ArrayRangeAccess:
array:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x[..y.x]\\\"}\"}"
left: ~
right:
CircuitMemberAccess:
circuit:
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x[..y.x]\\\"}\"}"
name: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":7,\\\"col_stop\\\":8,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x[..y.x]\\\"}\"}"
span:
line_start: 1
line_stop: 1
col_start: 5
col_stop: 8
path: test
content: "x[..y.x]"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 9
path: test
content: "x[..y.x]"
- ArrayRangeAccess:
array:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x[x.y..y.x]\\\"}\"}"
left:
CircuitMemberAccess:
circuit:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":3,\\\"col_stop\\\":4,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x[x.y..y.x]\\\"}\"}"
name: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x[x.y..y.x]\\\"}\"}"
span:
line_start: 1
line_stop: 1
col_start: 3
col_stop: 6
path: test
content: "x[x.y..y.x]"
right:
CircuitMemberAccess:
circuit:
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":8,\\\"col_stop\\\":9,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x[x.y..y.x]\\\"}\"}"
name: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":10,\\\"col_stop\\\":11,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x[x.y..y.x]\\\"}\"}"
span:
line_start: 1
line_stop: 1
col_start: 8
col_stop: 11
path: test
content: "x[x.y..y.x]"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 12
path: test
content: "x[x.y..y.x]"
- ArrayRangeAccess:
array:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x[x.y.x..y.x.y]\\\"}\"}"
left:
CircuitMemberAccess:
circuit:
CircuitMemberAccess:
circuit:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":3,\\\"col_stop\\\":4,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x[x.y.x..y.x.y]\\\"}\"}"
name: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x[x.y.x..y.x.y]\\\"}\"}"
span:
line_start: 1
line_stop: 1
col_start: 3
col_stop: 6
path: test
content: "x[x.y.x..y.x.y]"
name: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":7,\\\"col_stop\\\":8,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x[x.y.x..y.x.y]\\\"}\"}"
span:
line_start: 1
line_stop: 1
col_start: 3
col_stop: 8
path: test
content: "x[x.y.x..y.x.y]"
right:
CircuitMemberAccess:
circuit:
CircuitMemberAccess:
circuit:
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":10,\\\"col_stop\\\":11,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x[x.y.x..y.x.y]\\\"}\"}"
name: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":12,\\\"col_stop\\\":13,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x[x.y.x..y.x.y]\\\"}\"}"
span:
line_start: 1
line_stop: 1
col_start: 10
col_stop: 13
path: test
content: "x[x.y.x..y.x.y]"
name: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":14,\\\"col_stop\\\":15,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x[x.y.x..y.x.y]\\\"}\"}"
span:
line_start: 1
line_stop: 1
col_start: 10
col_stop: 15
path: test
content: "x[x.y.x..y.x.y]"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 16
path: test
content: "x[x.y.x..y.x.y]"

View File

@ -1,162 +0,0 @@
---
namespace: ParseExpression
expectation: Pass
outputs:
- Call:
function:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x()\\\"}\"}"
arguments: []
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 4
path: test
content: x()
- Call:
function:
Identifier: "{\"name\":\"X\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"X()\\\"}\"}"
arguments: []
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 4
path: test
content: X()
- Call:
function:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x(y)\\\"}\"}"
arguments:
- Identifier: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":3,\\\"col_stop\\\":4,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x(y)\\\"}\"}"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 5
path: test
content: x(y)
- Call:
function:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x(y, z)\\\"}\"}"
arguments:
- Identifier: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":3,\\\"col_stop\\\":4,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x(y, z)\\\"}\"}"
- Identifier: "{\"name\":\"z\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":6,\\\"col_stop\\\":7,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x(y, z)\\\"}\"}"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 8
path: test
content: "x(y, z)"
- Call:
function:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x(x, y, z)\\\"}\"}"
arguments:
- Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":3,\\\"col_stop\\\":4,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x(x, y, z)\\\"}\"}"
- Identifier: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":6,\\\"col_stop\\\":7,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x(x, y, z)\\\"}\"}"
- Identifier: "{\"name\":\"z\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":9,\\\"col_stop\\\":10,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x(x, y, z)\\\"}\"}"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 11
path: test
content: "x(x, y, z)"
- Call:
function:
CircuitStaticFunctionAccess:
circuit:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x::y()\\\"}\"}"
name: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":4,\\\"col_stop\\\":5,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x::y()\\\"}\"}"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 5
path: test
content: "x::y()"
arguments: []
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 7
path: test
content: "x::y()"
- Call:
function:
CircuitStaticFunctionAccess:
circuit:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x::y(x)\\\"}\"}"
name: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":4,\\\"col_stop\\\":5,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x::y(x)\\\"}\"}"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 5
path: test
content: "x::y(x)"
arguments:
- Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":6,\\\"col_stop\\\":7,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x::y(x)\\\"}\"}"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 8
path: test
content: "x::y(x)"
- Call:
function:
TupleAccess:
tuple:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x.0(x)\\\"}\"}"
index:
value: "0"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 4
path: test
content: x.0(x)
arguments:
- Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x.0(x)\\\"}\"}"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 7
path: test
content: x.0(x)
- Call:
function:
ArrayAccess:
array:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x[0](x)\\\"}\"}"
index:
Value:
Implicit:
- "0"
- line_start: 1
line_stop: 1
col_start: 3
col_stop: 4
path: test
content: "x[0](x)"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 5
path: test
content: "x[0](x)"
arguments:
- Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":6,\\\"col_stop\\\":7,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x[0](x)\\\"}\"}"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 8
path: test
content: "x[0](x)"

View File

@ -1,120 +0,0 @@
---
namespace: ParseExpression
expectation: Pass
outputs:
- CircuitMemberAccess:
circuit:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x.y\\\"}\"}"
name: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":3,\\\"col_stop\\\":4,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x.y\\\"}\"}"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 4
path: test
content: x.y
- CircuitMemberAccess:
circuit:
Identifier: "{\"name\":\"X\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"X.Y\\\"}\"}"
name: "{\"name\":\"Y\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":3,\\\"col_stop\\\":4,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"X.Y\\\"}\"}"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 4
path: test
content: X.Y
- CircuitMemberAccess:
circuit:
CircuitMemberAccess:
circuit:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x.y.z\\\"}\"}"
name: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":3,\\\"col_stop\\\":4,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x.y.z\\\"}\"}"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 4
path: test
content: x.y.z
name: "{\"name\":\"z\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x.y.z\\\"}\"}"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 6
path: test
content: x.y.z
- Call:
function:
CircuitMemberAccess:
circuit:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x.y()\\\"}\"}"
name: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":3,\\\"col_stop\\\":4,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x.y()\\\"}\"}"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 4
path: test
content: x.y()
arguments: []
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 6
path: test
content: x.y()
- TupleAccess:
tuple:
CircuitMemberAccess:
circuit:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x.y.0\\\"}\"}"
name: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":3,\\\"col_stop\\\":4,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x.y.0\\\"}\"}"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 4
path: test
content: x.y.0
index:
value: "0"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 6
path: test
content: x.y.0
- ArrayAccess:
array:
CircuitMemberAccess:
circuit:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x.y[1]\\\"}\"}"
name: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":3,\\\"col_stop\\\":4,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x.y[1]\\\"}\"}"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 4
path: test
content: "x.y[1]"
index:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 5
col_stop: 6
path: test
content: "x.y[1]"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 7
path: test
content: "x.y[1]"

View File

@ -1,120 +0,0 @@
---
namespace: ParseExpression
expectation: Pass
outputs:
- CircuitStaticFunctionAccess:
circuit:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x::y\\\"}\"}"
name: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":4,\\\"col_stop\\\":5,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x::y\\\"}\"}"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 5
path: test
content: "x::y"
- CircuitStaticFunctionAccess:
circuit:
Identifier: "{\"name\":\"X\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"X::Y\\\"}\"}"
name: "{\"name\":\"Y\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":4,\\\"col_stop\\\":5,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"X::Y\\\"}\"}"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 5
path: test
content: "X::Y"
- CircuitStaticFunctionAccess:
circuit:
CircuitStaticFunctionAccess:
circuit:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x::y::z\\\"}\"}"
name: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":4,\\\"col_stop\\\":5,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x::y::z\\\"}\"}"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 5
path: test
content: "x::y::z"
name: "{\"name\":\"z\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":7,\\\"col_stop\\\":8,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x::y::z\\\"}\"}"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 8
path: test
content: "x::y::z"
- Call:
function:
CircuitStaticFunctionAccess:
circuit:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x::y()\\\"}\"}"
name: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":4,\\\"col_stop\\\":5,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x::y()\\\"}\"}"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 5
path: test
content: "x::y()"
arguments: []
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 7
path: test
content: "x::y()"
- TupleAccess:
tuple:
CircuitStaticFunctionAccess:
circuit:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x::y.0\\\"}\"}"
name: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":4,\\\"col_stop\\\":5,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x::y.0\\\"}\"}"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 5
path: test
content: "x::y.0"
index:
value: "0"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 7
path: test
content: "x::y.0"
- ArrayAccess:
array:
CircuitStaticFunctionAccess:
circuit:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x::y[1]\\\"}\"}"
name: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":4,\\\"col_stop\\\":5,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x::y[1]\\\"}\"}"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 5
path: test
content: "x::y[1]"
index:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 6
col_stop: 7
path: test
content: "x::y[1]"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 8
path: test
content: "x::y[1]"

View File

@ -1,109 +0,0 @@
---
namespace: ParseExpression
expectation: Pass
outputs:
- TupleAccess:
tuple:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x.0\\\"}\"}"
index:
value: "0"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 4
path: test
content: x.0
- TupleAccess:
tuple:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x.1\\\"}\"}"
index:
value: "1"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 4
path: test
content: x.1
- TupleAccess:
tuple:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x.2\\\"}\"}"
index:
value: "2"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 4
path: test
content: x.2
- TupleAccess:
tuple:
TupleAccess:
tuple:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x.0.0\\\"}\"}"
index:
value: "0"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 4
path: test
content: x.0.0
index:
value: "0"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 6
path: test
content: x.0.0
- TupleAccess:
tuple:
TupleAccess:
tuple:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x.1.1\\\"}\"}"
index:
value: "1"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 4
path: test
content: x.1.1
index:
value: "1"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 6
path: test
content: x.1.1
- TupleAccess:
tuple:
TupleAccess:
tuple:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"test\\\",\\\"content\\\":\\\"x.2.2\\\"}\"}"
index:
value: "2"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 4
path: test
content: x.2.2
index:
value: "2"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 6
path: test
content: x.2.2

View File

@ -1,150 +0,0 @@
---
namespace: ParseExpression
expectation: Pass
outputs:
- ArrayInit:
element:
Value:
Integer:
- U8
- "0"
- line_start: 1
line_stop: 1
col_start: 2
col_stop: 5
path: test
content: "[0u8; 1]"
dimensions:
- value: "1"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 9
path: test
content: "[0u8; 1]"
- ArrayInit:
element:
Value:
Implicit:
- "0"
- line_start: 1
line_stop: 1
col_start: 2
col_stop: 3
path: test
content: "[0; 1]"
dimensions:
- value: "1"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 7
path: test
content: "[0; 1]"
- ArrayInit:
element:
Value:
Implicit:
- "0"
- line_start: 1
line_stop: 1
col_start: 2
col_stop: 3
path: test
content: "[0; (1)]"
dimensions:
- value: "1"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 9
path: test
content: "[0; (1)]"
- ArrayInit:
element:
Value:
Implicit:
- "0"
- line_start: 1
line_stop: 1
col_start: 2
col_stop: 3
path: test
content: "[0; (1, 2)]"
dimensions:
- value: "1"
- value: "2"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 12
path: test
content: "[0; (1, 2)]"
- ArrayInit:
element:
Value:
Implicit:
- "0"
- line_start: 1
line_stop: 1
col_start: 2
col_stop: 3
path: test
content: "[0; (1, 2, 3)]"
dimensions:
- value: "1"
- value: "2"
- value: "3"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 15
path: test
content: "[0; (1, 2, 3)]"
- ArrayInit:
element:
ArrayInit:
element:
ArrayInit:
element:
Value:
Implicit:
- "0"
- line_start: 1
line_stop: 1
col_start: 4
col_stop: 5
path: test
content: "[[[0; 3]; 2]; 1]"
dimensions:
- value: "3"
span:
line_start: 1
line_stop: 1
col_start: 3
col_stop: 9
path: test
content: "[[[0; 3]; 2]; 1]"
dimensions:
- value: "2"
span:
line_start: 1
line_stop: 1
col_start: 2
col_stop: 13
path: test
content: "[[[0; 3]; 2]; 1]"
dimensions:
- value: "1"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 17
path: test
content: "[[[0; 3]; 2]; 1]"

View File

@ -1,6 +0,0 @@
---
namespace: ParseExpression
expectation: Fail
outputs:
- " --> test:1:1\n |\n 1 | [...0u8; 1]\n | ^^^^^^^\n |\n = illegal spread in array initializer"
- " --> test:1:1\n |\n 1 | [...0; 1]\n | ^^^^^\n |\n = illegal spread in array initializer"

View File

@ -1,317 +0,0 @@
---
namespace: ParseExpression
expectation: Pass
outputs:
- ArrayInline:
elements:
- Expression:
Value:
Integer:
- U8
- "0"
- line_start: 1
line_stop: 1
col_start: 2
col_stop: 5
path: test
content: "[0u8, 1, 2, 3]"
- Expression:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 7
col_stop: 8
path: test
content: "[0u8, 1, 2, 3]"
- Expression:
Value:
Implicit:
- "2"
- line_start: 1
line_stop: 1
col_start: 10
col_stop: 11
path: test
content: "[0u8, 1, 2, 3]"
- Expression:
Value:
Implicit:
- "3"
- line_start: 1
line_stop: 1
col_start: 13
col_stop: 14
path: test
content: "[0u8, 1, 2, 3]"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 15
path: test
content: "[0u8, 1, 2, 3]"
- ArrayInline:
elements:
- Expression:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 2
col_stop: 3
path: test
content: "[1]"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 4
path: test
content: "[1]"
- ArrayInline:
elements:
- Expression:
Value:
Integer:
- U8
- "1"
- line_start: 1
line_stop: 1
col_start: 2
col_stop: 5
path: test
content: "[1u8]"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 6
path: test
content: "[1u8]"
- ArrayInline:
elements:
- Expression:
Value:
Integer:
- U8
- "1"
- line_start: 1
line_stop: 1
col_start: 2
col_stop: 5
path: test
content: "[1u8,]"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 7
path: test
content: "[1u8,]"
- ArrayInline:
elements:
- Expression:
Value:
Implicit:
- "0"
- line_start: 1
line_stop: 1
col_start: 2
col_stop: 3
path: test
content: "[0, 1,]"
- Expression:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 5
col_stop: 6
path: test
content: "[0, 1,]"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 8
path: test
content: "[0, 1,]"
- ArrayInline:
elements:
- Expression:
Value:
Implicit:
- "0"
- line_start: 1
line_stop: 1
col_start: 2
col_stop: 3
path: test
content: "[0,1,]"
- Expression:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 4
col_stop: 5
path: test
content: "[0,1,]"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 7
path: test
content: "[0,1,]"
- ArrayInline:
elements: []
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 3
path: test
content: "[]"
- ArrayInline:
elements:
- Expression:
ArrayInline:
elements:
- Expression:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 3
col_stop: 4
path: test
content: "[[1,2,3],[1,2,3]]"
- Expression:
Value:
Implicit:
- "2"
- line_start: 1
line_stop: 1
col_start: 5
col_stop: 6
path: test
content: "[[1,2,3],[1,2,3]]"
- Expression:
Value:
Implicit:
- "3"
- line_start: 1
line_stop: 1
col_start: 7
col_stop: 8
path: test
content: "[[1,2,3],[1,2,3]]"
span:
line_start: 1
line_stop: 1
col_start: 2
col_stop: 9
path: test
content: "[[1,2,3],[1,2,3]]"
- Expression:
ArrayInline:
elements:
- Expression:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 11
col_stop: 12
path: test
content: "[[1,2,3],[1,2,3]]"
- Expression:
Value:
Implicit:
- "2"
- line_start: 1
line_stop: 1
col_start: 13
col_stop: 14
path: test
content: "[[1,2,3],[1,2,3]]"
- Expression:
Value:
Implicit:
- "3"
- line_start: 1
line_stop: 1
col_start: 15
col_stop: 16
path: test
content: "[[1,2,3],[1,2,3]]"
span:
line_start: 1
line_stop: 1
col_start: 10
col_stop: 17
path: test
content: "[[1,2,3],[1,2,3]]"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 18
path: test
content: "[[1,2,3],[1,2,3]]"
- ArrayInline:
elements:
- Expression:
ArrayInline:
elements: []
span:
line_start: 1
line_stop: 1
col_start: 2
col_stop: 4
path: test
content: "[[]]"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 5
path: test
content: "[[]]"
- ArrayInline:
elements:
- Expression:
ArrayInline:
elements: []
span:
line_start: 1
line_stop: 1
col_start: 2
col_stop: 4
path: test
content: "[[], []]"
- Expression:
ArrayInline:
elements: []
span:
line_start: 1
line_stop: 1
col_start: 6
col_stop: 8
path: test
content: "[[], []]"
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 9
path: test
content: "[[], []]"

View File

@ -1,9 +0,0 @@
---
namespace: ParseExpression
expectation: Fail
outputs:
- " --> test:1:2\n |\n 1 | [,]\n | ^\n |\n = expected 'expression', got ','"
- " --> test:1:2\n |\n 1 | [,,]\n | ^\n |\n = expected 'expression', got ','"
- " --> test:1:4\n |\n 1 | [0,,]\n | ^\n |\n = expected 'expression', got ','"
- " --> test:1:2\n |\n 1 | [,0]\n | ^\n |\n = expected 'expression', got ','"
- " --> test:1:2\n |\n 1 | [,0,]\n | ^\n |\n = expected 'expression', got ','"

View File

@ -1,338 +0,0 @@
---
namespace: ParseExpression
expectation: Pass
outputs:
- Binary:
left:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 1 + 1
right:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 5
col_stop: 6
path: test
content: 1 + 1
op: Add
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 6
path: test
content: 1 + 1
- Binary:
left:
Value:
Implicit:
- "2"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 2+3
right:
Value:
Implicit:
- "3"
- line_start: 1
line_stop: 1
col_start: 3
col_stop: 4
path: test
content: 2+3
op: Add
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 4
path: test
content: 2+3
- Binary:
left:
Binary:
left:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 1 + 2 + 3
right:
Value:
Implicit:
- "2"
- line_start: 1
line_stop: 1
col_start: 5
col_stop: 6
path: test
content: 1 + 2 + 3
op: Add
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 6
path: test
content: 1 + 2 + 3
right:
Value:
Implicit:
- "3"
- line_start: 1
line_stop: 1
col_start: 9
col_stop: 10
path: test
content: 1 + 2 + 3
op: Add
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 10
path: test
content: 1 + 2 + 3
- Binary:
left:
Binary:
left:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 1 * 2 + 3 * 4
right:
Value:
Implicit:
- "2"
- line_start: 1
line_stop: 1
col_start: 5
col_stop: 6
path: test
content: 1 * 2 + 3 * 4
op: Mul
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 6
path: test
content: 1 * 2 + 3 * 4
right:
Binary:
left:
Value:
Implicit:
- "3"
- line_start: 1
line_stop: 1
col_start: 9
col_stop: 10
path: test
content: 1 * 2 + 3 * 4
right:
Value:
Implicit:
- "4"
- line_start: 1
line_stop: 1
col_start: 13
col_stop: 14
path: test
content: 1 * 2 + 3 * 4
op: Mul
span:
line_start: 1
line_stop: 1
col_start: 9
col_stop: 14
path: test
content: 1 * 2 + 3 * 4
op: Add
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 14
path: test
content: 1 * 2 + 3 * 4
- Binary:
left:
Binary:
left:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 1 + 2 - 3
right:
Value:
Implicit:
- "2"
- line_start: 1
line_stop: 1
col_start: 5
col_stop: 6
path: test
content: 1 + 2 - 3
op: Add
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 6
path: test
content: 1 + 2 - 3
right:
Value:
Implicit:
- "3"
- line_start: 1
line_stop: 1
col_start: 9
col_stop: 10
path: test
content: 1 + 2 - 3
op: Sub
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 10
path: test
content: 1 + 2 - 3
- Binary:
left:
Binary:
left:
Binary:
left:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 1 * 2 + 3 * 4 - 5 * 6
right:
Value:
Implicit:
- "2"
- line_start: 1
line_stop: 1
col_start: 5
col_stop: 6
path: test
content: 1 * 2 + 3 * 4 - 5 * 6
op: Mul
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 6
path: test
content: 1 * 2 + 3 * 4 - 5 * 6
right:
Binary:
left:
Value:
Implicit:
- "3"
- line_start: 1
line_stop: 1
col_start: 9
col_stop: 10
path: test
content: 1 * 2 + 3 * 4 - 5 * 6
right:
Value:
Implicit:
- "4"
- line_start: 1
line_stop: 1
col_start: 13
col_stop: 14
path: test
content: 1 * 2 + 3 * 4 - 5 * 6
op: Mul
span:
line_start: 1
line_stop: 1
col_start: 9
col_stop: 14
path: test
content: 1 * 2 + 3 * 4 - 5 * 6
op: Add
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 14
path: test
content: 1 * 2 + 3 * 4 - 5 * 6
right:
Binary:
left:
Value:
Implicit:
- "5"
- line_start: 1
line_stop: 1
col_start: 17
col_stop: 18
path: test
content: 1 * 2 + 3 * 4 - 5 * 6
right:
Value:
Implicit:
- "6"
- line_start: 1
line_stop: 1
col_start: 21
col_stop: 22
path: test
content: 1 * 2 + 3 * 4 - 5 * 6
op: Mul
span:
line_start: 1
line_stop: 1
col_start: 17
col_stop: 22
path: test
content: 1 * 2 + 3 * 4 - 5 * 6
op: Sub
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 22
path: test
content: 1 * 2 + 3 * 4 - 5 * 6

View File

@ -1,111 +0,0 @@
---
namespace: ParseExpression
expectation: Pass
outputs:
- Binary:
left:
Value:
Boolean:
- "true"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 5
path: test
content: true && false
right:
Value:
Boolean:
- "false"
- line_start: 1
line_stop: 1
col_start: 9
col_stop: 14
path: test
content: true && false
op: And
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 14
path: test
content: true && false
- Binary:
left:
Value:
Boolean:
- "false"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 6
path: test
content: false&&true
right:
Value:
Boolean:
- "true"
- line_start: 1
line_stop: 1
col_start: 8
col_stop: 12
path: test
content: false&&true
op: And
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 12
path: test
content: false&&true
- Binary:
left:
Binary:
left:
Value:
Boolean:
- "true"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 5
path: test
content: true&&false&&true
right:
Value:
Boolean:
- "false"
- line_start: 1
line_stop: 1
col_start: 7
col_stop: 12
path: test
content: true&&false&&true
op: And
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 12
path: test
content: true&&false&&true
right:
Value:
Boolean:
- "true"
- line_start: 1
line_stop: 1
col_start: 14
col_stop: 18
path: test
content: true&&false&&true
op: And
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 18
path: test
content: true&&false&&true

View File

@ -1,180 +0,0 @@
---
namespace: ParseExpression
expectation: Pass
outputs:
- Binary:
left:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 1 / 1
right:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 5
col_stop: 6
path: test
content: 1 / 1
op: Div
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 6
path: test
content: 1 / 1
- Binary:
left:
Value:
Implicit:
- "2"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 2/3
right:
Value:
Implicit:
- "3"
- line_start: 1
line_stop: 1
col_start: 3
col_stop: 4
path: test
content: 2/3
op: Div
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 4
path: test
content: 2/3
- Binary:
left:
Binary:
left:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 1 / 2 / 3
right:
Value:
Implicit:
- "2"
- line_start: 1
line_stop: 1
col_start: 5
col_stop: 6
path: test
content: 1 / 2 / 3
op: Div
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 6
path: test
content: 1 / 2 / 3
right:
Value:
Implicit:
- "3"
- line_start: 1
line_stop: 1
col_start: 9
col_stop: 10
path: test
content: 1 / 2 / 3
op: Div
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 10
path: test
content: 1 / 2 / 3
- Binary:
left:
Binary:
left:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 1 ** 2 / 3 ** 4
right:
Value:
Implicit:
- "2"
- line_start: 1
line_stop: 1
col_start: 6
col_stop: 7
path: test
content: 1 ** 2 / 3 ** 4
op: Pow
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 7
path: test
content: 1 ** 2 / 3 ** 4
right:
Binary:
left:
Value:
Implicit:
- "3"
- line_start: 1
line_stop: 1
col_start: 10
col_stop: 11
path: test
content: 1 ** 2 / 3 ** 4
right:
Value:
Implicit:
- "4"
- line_start: 1
line_stop: 1
col_start: 15
col_stop: 16
path: test
content: 1 ** 2 / 3 ** 4
op: Pow
span:
line_start: 1
line_stop: 1
col_start: 10
col_stop: 16
path: test
content: 1 ** 2 / 3 ** 4
op: Div
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 16
path: test
content: 1 ** 2 / 3 ** 4

View File

@ -1,338 +0,0 @@
---
namespace: ParseExpression
expectation: Pass
outputs:
- Binary:
left:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 1 == 1
right:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 6
col_stop: 7
path: test
content: 1 == 1
op: Eq
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 7
path: test
content: 1 == 1
- Binary:
left:
Value:
Implicit:
- "2"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 2==3
right:
Value:
Implicit:
- "3"
- line_start: 1
line_stop: 1
col_start: 4
col_stop: 5
path: test
content: 2==3
op: Eq
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 5
path: test
content: 2==3
- Binary:
left:
Binary:
left:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 1 == 2 == 3
right:
Value:
Implicit:
- "2"
- line_start: 1
line_stop: 1
col_start: 6
col_stop: 7
path: test
content: 1 == 2 == 3
op: Eq
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 7
path: test
content: 1 == 2 == 3
right:
Value:
Implicit:
- "3"
- line_start: 1
line_stop: 1
col_start: 11
col_stop: 12
path: test
content: 1 == 2 == 3
op: Eq
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 12
path: test
content: 1 == 2 == 3
- Binary:
left:
Binary:
left:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 1 < 2 == 3 < 4
right:
Value:
Implicit:
- "2"
- line_start: 1
line_stop: 1
col_start: 5
col_stop: 6
path: test
content: 1 < 2 == 3 < 4
op: Lt
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 6
path: test
content: 1 < 2 == 3 < 4
right:
Binary:
left:
Value:
Implicit:
- "3"
- line_start: 1
line_stop: 1
col_start: 10
col_stop: 11
path: test
content: 1 < 2 == 3 < 4
right:
Value:
Implicit:
- "4"
- line_start: 1
line_stop: 1
col_start: 14
col_stop: 15
path: test
content: 1 < 2 == 3 < 4
op: Lt
span:
line_start: 1
line_stop: 1
col_start: 10
col_stop: 15
path: test
content: 1 < 2 == 3 < 4
op: Eq
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 15
path: test
content: 1 < 2 == 3 < 4
- Binary:
left:
Binary:
left:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 1 == 2 == 3
right:
Value:
Implicit:
- "2"
- line_start: 1
line_stop: 1
col_start: 6
col_stop: 7
path: test
content: 1 == 2 == 3
op: Eq
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 7
path: test
content: 1 == 2 == 3
right:
Value:
Implicit:
- "3"
- line_start: 1
line_stop: 1
col_start: 11
col_stop: 12
path: test
content: 1 == 2 == 3
op: Eq
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 12
path: test
content: 1 == 2 == 3
- Binary:
left:
Binary:
left:
Binary:
left:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 1 < 2 == 3 < 4 == 5 < 6
right:
Value:
Implicit:
- "2"
- line_start: 1
line_stop: 1
col_start: 5
col_stop: 6
path: test
content: 1 < 2 == 3 < 4 == 5 < 6
op: Lt
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 6
path: test
content: 1 < 2 == 3 < 4 == 5 < 6
right:
Binary:
left:
Value:
Implicit:
- "3"
- line_start: 1
line_stop: 1
col_start: 10
col_stop: 11
path: test
content: 1 < 2 == 3 < 4 == 5 < 6
right:
Value:
Implicit:
- "4"
- line_start: 1
line_stop: 1
col_start: 14
col_stop: 15
path: test
content: 1 < 2 == 3 < 4 == 5 < 6
op: Lt
span:
line_start: 1
line_stop: 1
col_start: 10
col_stop: 15
path: test
content: 1 < 2 == 3 < 4 == 5 < 6
op: Eq
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 15
path: test
content: 1 < 2 == 3 < 4 == 5 < 6
right:
Binary:
left:
Value:
Implicit:
- "5"
- line_start: 1
line_stop: 1
col_start: 19
col_stop: 20
path: test
content: 1 < 2 == 3 < 4 == 5 < 6
right:
Value:
Implicit:
- "6"
- line_start: 1
line_stop: 1
col_start: 23
col_stop: 24
path: test
content: 1 < 2 == 3 < 4 == 5 < 6
op: Lt
span:
line_start: 1
line_stop: 1
col_start: 19
col_stop: 24
path: test
content: 1 < 2 == 3 < 4 == 5 < 6
op: Eq
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 24
path: test
content: 1 < 2 == 3 < 4 == 5 < 6

View File

@ -1,244 +0,0 @@
---
namespace: ParseExpression
expectation: Pass
outputs:
- Binary:
left:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 1 ** 1
right:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 6
col_stop: 7
path: test
content: 1 ** 1
op: Pow
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 7
path: test
content: 1 ** 1
- Binary:
left:
Value:
Implicit:
- "2"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 2**3
right:
Value:
Implicit:
- "3"
- line_start: 1
line_stop: 1
col_start: 4
col_stop: 5
path: test
content: 2**3
op: Pow
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 5
path: test
content: 2**3
- Binary:
left:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 1 ** 2 ** 3
right:
Binary:
left:
Value:
Implicit:
- "2"
- line_start: 1
line_stop: 1
col_start: 6
col_stop: 7
path: test
content: 1 ** 2 ** 3
right:
Value:
Implicit:
- "3"
- line_start: 1
line_stop: 1
col_start: 11
col_stop: 12
path: test
content: 1 ** 2 ** 3
op: Pow
span:
line_start: 1
line_stop: 1
col_start: 6
col_stop: 12
path: test
content: 1 ** 2 ** 3
op: Pow
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 12
path: test
content: 1 ** 2 ** 3
- Binary:
left:
Cast:
inner:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 1 as i8 ** 3 as i8
target_type:
IntegerType: I8
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 8
path: test
content: 1 as i8 ** 3 as i8
right:
Cast:
inner:
Value:
Implicit:
- "3"
- line_start: 1
line_stop: 1
col_start: 12
col_stop: 13
path: test
content: 1 as i8 ** 3 as i8
target_type:
IntegerType: I8
span:
line_start: 1
line_stop: 1
col_start: 12
col_stop: 19
path: test
content: 1 as i8 ** 3 as i8
op: Pow
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 19
path: test
content: 1 as i8 ** 3 as i8
- Binary:
left:
Cast:
inner:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 1 as i8 ** 3 as i8 ** 5 as i8
target_type:
IntegerType: I8
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 8
path: test
content: 1 as i8 ** 3 as i8 ** 5 as i8
right:
Binary:
left:
Cast:
inner:
Value:
Implicit:
- "3"
- line_start: 1
line_stop: 1
col_start: 12
col_stop: 13
path: test
content: 1 as i8 ** 3 as i8 ** 5 as i8
target_type:
IntegerType: I8
span:
line_start: 1
line_stop: 1
col_start: 12
col_stop: 19
path: test
content: 1 as i8 ** 3 as i8 ** 5 as i8
right:
Cast:
inner:
Value:
Implicit:
- "5"
- line_start: 1
line_stop: 1
col_start: 23
col_stop: 24
path: test
content: 1 as i8 ** 3 as i8 ** 5 as i8
target_type:
IntegerType: I8
span:
line_start: 1
line_stop: 1
col_start: 23
col_stop: 30
path: test
content: 1 as i8 ** 3 as i8 ** 5 as i8
op: Pow
span:
line_start: 1
line_stop: 1
col_start: 12
col_stop: 30
path: test
content: 1 as i8 ** 3 as i8 ** 5 as i8
op: Pow
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 30
path: test
content: 1 as i8 ** 3 as i8 ** 5 as i8

View File

@ -1,338 +0,0 @@
---
namespace: ParseExpression
expectation: Pass
outputs:
- Binary:
left:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 1 > 1
right:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 5
col_stop: 6
path: test
content: 1 > 1
op: Gt
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 6
path: test
content: 1 > 1
- Binary:
left:
Value:
Implicit:
- "2"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 2>3
right:
Value:
Implicit:
- "3"
- line_start: 1
line_stop: 1
col_start: 3
col_stop: 4
path: test
content: 2>3
op: Gt
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 4
path: test
content: 2>3
- Binary:
left:
Binary:
left:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 1 > 2 > 3
right:
Value:
Implicit:
- "2"
- line_start: 1
line_stop: 1
col_start: 5
col_stop: 6
path: test
content: 1 > 2 > 3
op: Gt
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 6
path: test
content: 1 > 2 > 3
right:
Value:
Implicit:
- "3"
- line_start: 1
line_stop: 1
col_start: 9
col_stop: 10
path: test
content: 1 > 2 > 3
op: Gt
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 10
path: test
content: 1 > 2 > 3
- Binary:
left:
Binary:
left:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 1 + 2 > 3 + 4
right:
Value:
Implicit:
- "2"
- line_start: 1
line_stop: 1
col_start: 5
col_stop: 6
path: test
content: 1 + 2 > 3 + 4
op: Add
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 6
path: test
content: 1 + 2 > 3 + 4
right:
Binary:
left:
Value:
Implicit:
- "3"
- line_start: 1
line_stop: 1
col_start: 9
col_stop: 10
path: test
content: 1 + 2 > 3 + 4
right:
Value:
Implicit:
- "4"
- line_start: 1
line_stop: 1
col_start: 13
col_stop: 14
path: test
content: 1 + 2 > 3 + 4
op: Add
span:
line_start: 1
line_stop: 1
col_start: 9
col_stop: 14
path: test
content: 1 + 2 > 3 + 4
op: Gt
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 14
path: test
content: 1 + 2 > 3 + 4
- Binary:
left:
Binary:
left:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 1 > 2 > 3
right:
Value:
Implicit:
- "2"
- line_start: 1
line_stop: 1
col_start: 5
col_stop: 6
path: test
content: 1 > 2 > 3
op: Gt
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 6
path: test
content: 1 > 2 > 3
right:
Value:
Implicit:
- "3"
- line_start: 1
line_stop: 1
col_start: 9
col_stop: 10
path: test
content: 1 > 2 > 3
op: Gt
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 10
path: test
content: 1 > 2 > 3
- Binary:
left:
Binary:
left:
Binary:
left:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 1 + 2 > 3 + 4 > 5 + 6
right:
Value:
Implicit:
- "2"
- line_start: 1
line_stop: 1
col_start: 5
col_stop: 6
path: test
content: 1 + 2 > 3 + 4 > 5 + 6
op: Add
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 6
path: test
content: 1 + 2 > 3 + 4 > 5 + 6
right:
Binary:
left:
Value:
Implicit:
- "3"
- line_start: 1
line_stop: 1
col_start: 9
col_stop: 10
path: test
content: 1 + 2 > 3 + 4 > 5 + 6
right:
Value:
Implicit:
- "4"
- line_start: 1
line_stop: 1
col_start: 13
col_stop: 14
path: test
content: 1 + 2 > 3 + 4 > 5 + 6
op: Add
span:
line_start: 1
line_stop: 1
col_start: 9
col_stop: 14
path: test
content: 1 + 2 > 3 + 4 > 5 + 6
op: Gt
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 14
path: test
content: 1 + 2 > 3 + 4 > 5 + 6
right:
Binary:
left:
Value:
Implicit:
- "5"
- line_start: 1
line_stop: 1
col_start: 17
col_stop: 18
path: test
content: 1 + 2 > 3 + 4 > 5 + 6
right:
Value:
Implicit:
- "6"
- line_start: 1
line_stop: 1
col_start: 21
col_stop: 22
path: test
content: 1 + 2 > 3 + 4 > 5 + 6
op: Add
span:
line_start: 1
line_stop: 1
col_start: 17
col_stop: 22
path: test
content: 1 + 2 > 3 + 4 > 5 + 6
op: Gt
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 22
path: test
content: 1 + 2 > 3 + 4 > 5 + 6

View File

@ -1,338 +0,0 @@
---
namespace: ParseExpression
expectation: Pass
outputs:
- Binary:
left:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 1 >= 1
right:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 6
col_stop: 7
path: test
content: 1 >= 1
op: Ge
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 7
path: test
content: 1 >= 1
- Binary:
left:
Value:
Implicit:
- "2"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 2 >= 3
right:
Value:
Implicit:
- "3"
- line_start: 1
line_stop: 1
col_start: 6
col_stop: 7
path: test
content: 2 >= 3
op: Ge
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 7
path: test
content: 2 >= 3
- Binary:
left:
Binary:
left:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 1 >= 2 >= 3
right:
Value:
Implicit:
- "2"
- line_start: 1
line_stop: 1
col_start: 6
col_stop: 7
path: test
content: 1 >= 2 >= 3
op: Ge
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 7
path: test
content: 1 >= 2 >= 3
right:
Value:
Implicit:
- "3"
- line_start: 1
line_stop: 1
col_start: 11
col_stop: 12
path: test
content: 1 >= 2 >= 3
op: Ge
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 12
path: test
content: 1 >= 2 >= 3
- Binary:
left:
Binary:
left:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 1 + 2 >= 3 + 4
right:
Value:
Implicit:
- "2"
- line_start: 1
line_stop: 1
col_start: 5
col_stop: 6
path: test
content: 1 + 2 >= 3 + 4
op: Add
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 6
path: test
content: 1 + 2 >= 3 + 4
right:
Binary:
left:
Value:
Implicit:
- "3"
- line_start: 1
line_stop: 1
col_start: 10
col_stop: 11
path: test
content: 1 + 2 >= 3 + 4
right:
Value:
Implicit:
- "4"
- line_start: 1
line_stop: 1
col_start: 14
col_stop: 15
path: test
content: 1 + 2 >= 3 + 4
op: Add
span:
line_start: 1
line_stop: 1
col_start: 10
col_stop: 15
path: test
content: 1 + 2 >= 3 + 4
op: Ge
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 15
path: test
content: 1 + 2 >= 3 + 4
- Binary:
left:
Binary:
left:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 1 >= 2 >= 3
right:
Value:
Implicit:
- "2"
- line_start: 1
line_stop: 1
col_start: 6
col_stop: 7
path: test
content: 1 >= 2 >= 3
op: Ge
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 7
path: test
content: 1 >= 2 >= 3
right:
Value:
Implicit:
- "3"
- line_start: 1
line_stop: 1
col_start: 11
col_stop: 12
path: test
content: 1 >= 2 >= 3
op: Ge
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 12
path: test
content: 1 >= 2 >= 3
- Binary:
left:
Binary:
left:
Binary:
left:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 1 + 2 >= 3 + 4 >= 5 + 6
right:
Value:
Implicit:
- "2"
- line_start: 1
line_stop: 1
col_start: 5
col_stop: 6
path: test
content: 1 + 2 >= 3 + 4 >= 5 + 6
op: Add
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 6
path: test
content: 1 + 2 >= 3 + 4 >= 5 + 6
right:
Binary:
left:
Value:
Implicit:
- "3"
- line_start: 1
line_stop: 1
col_start: 10
col_stop: 11
path: test
content: 1 + 2 >= 3 + 4 >= 5 + 6
right:
Value:
Implicit:
- "4"
- line_start: 1
line_stop: 1
col_start: 14
col_stop: 15
path: test
content: 1 + 2 >= 3 + 4 >= 5 + 6
op: Add
span:
line_start: 1
line_stop: 1
col_start: 10
col_stop: 15
path: test
content: 1 + 2 >= 3 + 4 >= 5 + 6
op: Ge
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 15
path: test
content: 1 + 2 >= 3 + 4 >= 5 + 6
right:
Binary:
left:
Value:
Implicit:
- "5"
- line_start: 1
line_stop: 1
col_start: 19
col_stop: 20
path: test
content: 1 + 2 >= 3 + 4 >= 5 + 6
right:
Value:
Implicit:
- "6"
- line_start: 1
line_stop: 1
col_start: 23
col_stop: 24
path: test
content: 1 + 2 >= 3 + 4 >= 5 + 6
op: Add
span:
line_start: 1
line_stop: 1
col_start: 19
col_stop: 24
path: test
content: 1 + 2 >= 3 + 4 >= 5 + 6
op: Ge
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 24
path: test
content: 1 + 2 >= 3 + 4 >= 5 + 6

View File

@ -1,338 +0,0 @@
---
namespace: ParseExpression
expectation: Pass
outputs:
- Binary:
left:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 1 < 1
right:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 5
col_stop: 6
path: test
content: 1 < 1
op: Lt
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 6
path: test
content: 1 < 1
- Binary:
left:
Value:
Implicit:
- "2"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 2<3
right:
Value:
Implicit:
- "3"
- line_start: 1
line_stop: 1
col_start: 3
col_stop: 4
path: test
content: 2<3
op: Lt
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 4
path: test
content: 2<3
- Binary:
left:
Binary:
left:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 1 < 2 < 3
right:
Value:
Implicit:
- "2"
- line_start: 1
line_stop: 1
col_start: 5
col_stop: 6
path: test
content: 1 < 2 < 3
op: Lt
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 6
path: test
content: 1 < 2 < 3
right:
Value:
Implicit:
- "3"
- line_start: 1
line_stop: 1
col_start: 9
col_stop: 10
path: test
content: 1 < 2 < 3
op: Lt
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 10
path: test
content: 1 < 2 < 3
- Binary:
left:
Binary:
left:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 1 + 2 < 3 + 4
right:
Value:
Implicit:
- "2"
- line_start: 1
line_stop: 1
col_start: 5
col_stop: 6
path: test
content: 1 + 2 < 3 + 4
op: Add
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 6
path: test
content: 1 + 2 < 3 + 4
right:
Binary:
left:
Value:
Implicit:
- "3"
- line_start: 1
line_stop: 1
col_start: 9
col_stop: 10
path: test
content: 1 + 2 < 3 + 4
right:
Value:
Implicit:
- "4"
- line_start: 1
line_stop: 1
col_start: 13
col_stop: 14
path: test
content: 1 + 2 < 3 + 4
op: Add
span:
line_start: 1
line_stop: 1
col_start: 9
col_stop: 14
path: test
content: 1 + 2 < 3 + 4
op: Lt
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 14
path: test
content: 1 + 2 < 3 + 4
- Binary:
left:
Binary:
left:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 1 < 2 < 3
right:
Value:
Implicit:
- "2"
- line_start: 1
line_stop: 1
col_start: 5
col_stop: 6
path: test
content: 1 < 2 < 3
op: Lt
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 6
path: test
content: 1 < 2 < 3
right:
Value:
Implicit:
- "3"
- line_start: 1
line_stop: 1
col_start: 9
col_stop: 10
path: test
content: 1 < 2 < 3
op: Lt
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 10
path: test
content: 1 < 2 < 3
- Binary:
left:
Binary:
left:
Binary:
left:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 1 + 2 < 3 + 4 < 5 + 6
right:
Value:
Implicit:
- "2"
- line_start: 1
line_stop: 1
col_start: 5
col_stop: 6
path: test
content: 1 + 2 < 3 + 4 < 5 + 6
op: Add
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 6
path: test
content: 1 + 2 < 3 + 4 < 5 + 6
right:
Binary:
left:
Value:
Implicit:
- "3"
- line_start: 1
line_stop: 1
col_start: 9
col_stop: 10
path: test
content: 1 + 2 < 3 + 4 < 5 + 6
right:
Value:
Implicit:
- "4"
- line_start: 1
line_stop: 1
col_start: 13
col_stop: 14
path: test
content: 1 + 2 < 3 + 4 < 5 + 6
op: Add
span:
line_start: 1
line_stop: 1
col_start: 9
col_stop: 14
path: test
content: 1 + 2 < 3 + 4 < 5 + 6
op: Lt
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 14
path: test
content: 1 + 2 < 3 + 4 < 5 + 6
right:
Binary:
left:
Value:
Implicit:
- "5"
- line_start: 1
line_stop: 1
col_start: 17
col_stop: 18
path: test
content: 1 + 2 < 3 + 4 < 5 + 6
right:
Value:
Implicit:
- "6"
- line_start: 1
line_stop: 1
col_start: 21
col_stop: 22
path: test
content: 1 + 2 < 3 + 4 < 5 + 6
op: Add
span:
line_start: 1
line_stop: 1
col_start: 17
col_stop: 22
path: test
content: 1 + 2 < 3 + 4 < 5 + 6
op: Lt
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 22
path: test
content: 1 + 2 < 3 + 4 < 5 + 6

View File

@ -1,338 +0,0 @@
---
namespace: ParseExpression
expectation: Pass
outputs:
- Binary:
left:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 1 <= 1
right:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 6
col_stop: 7
path: test
content: 1 <= 1
op: Le
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 7
path: test
content: 1 <= 1
- Binary:
left:
Value:
Implicit:
- "2"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 2 <= 3
right:
Value:
Implicit:
- "3"
- line_start: 1
line_stop: 1
col_start: 6
col_stop: 7
path: test
content: 2 <= 3
op: Le
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 7
path: test
content: 2 <= 3
- Binary:
left:
Binary:
left:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 1 <= 2 <= 3
right:
Value:
Implicit:
- "2"
- line_start: 1
line_stop: 1
col_start: 6
col_stop: 7
path: test
content: 1 <= 2 <= 3
op: Le
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 7
path: test
content: 1 <= 2 <= 3
right:
Value:
Implicit:
- "3"
- line_start: 1
line_stop: 1
col_start: 11
col_stop: 12
path: test
content: 1 <= 2 <= 3
op: Le
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 12
path: test
content: 1 <= 2 <= 3
- Binary:
left:
Binary:
left:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 1 + 2 <= 3 + 4
right:
Value:
Implicit:
- "2"
- line_start: 1
line_stop: 1
col_start: 5
col_stop: 6
path: test
content: 1 + 2 <= 3 + 4
op: Add
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 6
path: test
content: 1 + 2 <= 3 + 4
right:
Binary:
left:
Value:
Implicit:
- "3"
- line_start: 1
line_stop: 1
col_start: 10
col_stop: 11
path: test
content: 1 + 2 <= 3 + 4
right:
Value:
Implicit:
- "4"
- line_start: 1
line_stop: 1
col_start: 14
col_stop: 15
path: test
content: 1 + 2 <= 3 + 4
op: Add
span:
line_start: 1
line_stop: 1
col_start: 10
col_stop: 15
path: test
content: 1 + 2 <= 3 + 4
op: Le
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 15
path: test
content: 1 + 2 <= 3 + 4
- Binary:
left:
Binary:
left:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 1 <= 2 <= 3
right:
Value:
Implicit:
- "2"
- line_start: 1
line_stop: 1
col_start: 6
col_stop: 7
path: test
content: 1 <= 2 <= 3
op: Le
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 7
path: test
content: 1 <= 2 <= 3
right:
Value:
Implicit:
- "3"
- line_start: 1
line_stop: 1
col_start: 11
col_stop: 12
path: test
content: 1 <= 2 <= 3
op: Le
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 12
path: test
content: 1 <= 2 <= 3
- Binary:
left:
Binary:
left:
Binary:
left:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 1 + 2 <= 3 + 4 <= 5 + 6
right:
Value:
Implicit:
- "2"
- line_start: 1
line_stop: 1
col_start: 5
col_stop: 6
path: test
content: 1 + 2 <= 3 + 4 <= 5 + 6
op: Add
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 6
path: test
content: 1 + 2 <= 3 + 4 <= 5 + 6
right:
Binary:
left:
Value:
Implicit:
- "3"
- line_start: 1
line_stop: 1
col_start: 10
col_stop: 11
path: test
content: 1 + 2 <= 3 + 4 <= 5 + 6
right:
Value:
Implicit:
- "4"
- line_start: 1
line_stop: 1
col_start: 14
col_stop: 15
path: test
content: 1 + 2 <= 3 + 4 <= 5 + 6
op: Add
span:
line_start: 1
line_stop: 1
col_start: 10
col_stop: 15
path: test
content: 1 + 2 <= 3 + 4 <= 5 + 6
op: Le
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 15
path: test
content: 1 + 2 <= 3 + 4 <= 5 + 6
right:
Binary:
left:
Value:
Implicit:
- "5"
- line_start: 1
line_stop: 1
col_start: 19
col_stop: 20
path: test
content: 1 + 2 <= 3 + 4 <= 5 + 6
right:
Value:
Implicit:
- "6"
- line_start: 1
line_stop: 1
col_start: 23
col_stop: 24
path: test
content: 1 + 2 <= 3 + 4 <= 5 + 6
op: Add
span:
line_start: 1
line_stop: 1
col_start: 19
col_stop: 24
path: test
content: 1 + 2 <= 3 + 4 <= 5 + 6
op: Le
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 24
path: test
content: 1 + 2 <= 3 + 4 <= 5 + 6

View File

@ -1,289 +0,0 @@
---
namespace: ParseExpression
expectation: Pass
outputs:
- Binary:
left:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 1 * 1
right:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 5
col_stop: 6
path: test
content: 1 * 1
op: Mul
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 6
path: test
content: 1 * 1
- Binary:
left:
Value:
Implicit:
- "2"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 2*3
right:
Value:
Implicit:
- "3"
- line_start: 1
line_stop: 1
col_start: 3
col_stop: 4
path: test
content: 2*3
op: Mul
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 4
path: test
content: 2*3
- Binary:
left:
Binary:
left:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 1 * 2 * 3
right:
Value:
Implicit:
- "2"
- line_start: 1
line_stop: 1
col_start: 5
col_stop: 6
path: test
content: 1 * 2 * 3
op: Mul
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 6
path: test
content: 1 * 2 * 3
right:
Value:
Implicit:
- "3"
- line_start: 1
line_stop: 1
col_start: 9
col_stop: 10
path: test
content: 1 * 2 * 3
op: Mul
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 10
path: test
content: 1 * 2 * 3
- Binary:
left:
Binary:
left:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 1 ** 2 * 3 ** 4
right:
Value:
Implicit:
- "2"
- line_start: 1
line_stop: 1
col_start: 6
col_stop: 7
path: test
content: 1 ** 2 * 3 ** 4
op: Pow
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 7
path: test
content: 1 ** 2 * 3 ** 4
right:
Binary:
left:
Value:
Implicit:
- "3"
- line_start: 1
line_stop: 1
col_start: 10
col_stop: 11
path: test
content: 1 ** 2 * 3 ** 4
right:
Value:
Implicit:
- "4"
- line_start: 1
line_stop: 1
col_start: 15
col_stop: 16
path: test
content: 1 ** 2 * 3 ** 4
op: Pow
span:
line_start: 1
line_stop: 1
col_start: 10
col_stop: 16
path: test
content: 1 ** 2 * 3 ** 4
op: Mul
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 16
path: test
content: 1 ** 2 * 3 ** 4
- Binary:
left:
Binary:
left:
Binary:
left:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 1 ** 2 * 3 ** 4 / 5 ** 6
right:
Value:
Implicit:
- "2"
- line_start: 1
line_stop: 1
col_start: 6
col_stop: 7
path: test
content: 1 ** 2 * 3 ** 4 / 5 ** 6
op: Pow
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 7
path: test
content: 1 ** 2 * 3 ** 4 / 5 ** 6
right:
Binary:
left:
Value:
Implicit:
- "3"
- line_start: 1
line_stop: 1
col_start: 10
col_stop: 11
path: test
content: 1 ** 2 * 3 ** 4 / 5 ** 6
right:
Value:
Implicit:
- "4"
- line_start: 1
line_stop: 1
col_start: 15
col_stop: 16
path: test
content: 1 ** 2 * 3 ** 4 / 5 ** 6
op: Pow
span:
line_start: 1
line_stop: 1
col_start: 10
col_stop: 16
path: test
content: 1 ** 2 * 3 ** 4 / 5 ** 6
op: Mul
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 16
path: test
content: 1 ** 2 * 3 ** 4 / 5 ** 6
right:
Binary:
left:
Value:
Implicit:
- "5"
- line_start: 1
line_stop: 1
col_start: 19
col_stop: 20
path: test
content: 1 ** 2 * 3 ** 4 / 5 ** 6
right:
Value:
Implicit:
- "6"
- line_start: 1
line_stop: 1
col_start: 24
col_stop: 25
path: test
content: 1 ** 2 * 3 ** 4 / 5 ** 6
op: Pow
span:
line_start: 1
line_stop: 1
col_start: 19
col_stop: 25
path: test
content: 1 ** 2 * 3 ** 4 / 5 ** 6
op: Div
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 25
path: test
content: 1 ** 2 * 3 ** 4 / 5 ** 6

View File

@ -1,338 +0,0 @@
---
namespace: ParseExpression
expectation: Pass
outputs:
- Binary:
left:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 1 != 1
right:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 6
col_stop: 7
path: test
content: 1 != 1
op: Ne
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 7
path: test
content: 1 != 1
- Binary:
left:
Value:
Implicit:
- "2"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 2!=3
right:
Value:
Implicit:
- "3"
- line_start: 1
line_stop: 1
col_start: 4
col_stop: 5
path: test
content: 2!=3
op: Ne
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 5
path: test
content: 2!=3
- Binary:
left:
Binary:
left:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 1 != 2 != 3
right:
Value:
Implicit:
- "2"
- line_start: 1
line_stop: 1
col_start: 6
col_stop: 7
path: test
content: 1 != 2 != 3
op: Ne
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 7
path: test
content: 1 != 2 != 3
right:
Value:
Implicit:
- "3"
- line_start: 1
line_stop: 1
col_start: 11
col_stop: 12
path: test
content: 1 != 2 != 3
op: Ne
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 12
path: test
content: 1 != 2 != 3
- Binary:
left:
Binary:
left:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 1 < 2 != 3 < 4
right:
Value:
Implicit:
- "2"
- line_start: 1
line_stop: 1
col_start: 5
col_stop: 6
path: test
content: 1 < 2 != 3 < 4
op: Lt
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 6
path: test
content: 1 < 2 != 3 < 4
right:
Binary:
left:
Value:
Implicit:
- "3"
- line_start: 1
line_stop: 1
col_start: 10
col_stop: 11
path: test
content: 1 < 2 != 3 < 4
right:
Value:
Implicit:
- "4"
- line_start: 1
line_stop: 1
col_start: 14
col_stop: 15
path: test
content: 1 < 2 != 3 < 4
op: Lt
span:
line_start: 1
line_stop: 1
col_start: 10
col_stop: 15
path: test
content: 1 < 2 != 3 < 4
op: Ne
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 15
path: test
content: 1 < 2 != 3 < 4
- Binary:
left:
Binary:
left:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 1 != 2 != 3
right:
Value:
Implicit:
- "2"
- line_start: 1
line_stop: 1
col_start: 6
col_stop: 7
path: test
content: 1 != 2 != 3
op: Ne
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 7
path: test
content: 1 != 2 != 3
right:
Value:
Implicit:
- "3"
- line_start: 1
line_stop: 1
col_start: 11
col_stop: 12
path: test
content: 1 != 2 != 3
op: Ne
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 12
path: test
content: 1 != 2 != 3
- Binary:
left:
Binary:
left:
Binary:
left:
Value:
Implicit:
- "1"
- line_start: 1
line_stop: 1
col_start: 1
col_stop: 2
path: test
content: 1 < 2 != 3 < 4 != 5 < 6
right:
Value:
Implicit:
- "2"
- line_start: 1
line_stop: 1
col_start: 5
col_stop: 6
path: test
content: 1 < 2 != 3 < 4 != 5 < 6
op: Lt
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 6
path: test
content: 1 < 2 != 3 < 4 != 5 < 6
right:
Binary:
left:
Value:
Implicit:
- "3"
- line_start: 1
line_stop: 1
col_start: 10
col_stop: 11
path: test
content: 1 < 2 != 3 < 4 != 5 < 6
right:
Value:
Implicit:
- "4"
- line_start: 1
line_stop: 1
col_start: 14
col_stop: 15
path: test
content: 1 < 2 != 3 < 4 != 5 < 6
op: Lt
span:
line_start: 1
line_stop: 1
col_start: 10
col_stop: 15
path: test
content: 1 < 2 != 3 < 4 != 5 < 6
op: Ne
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 15
path: test
content: 1 < 2 != 3 < 4 != 5 < 6
right:
Binary:
left:
Value:
Implicit:
- "5"
- line_start: 1
line_stop: 1
col_start: 19
col_stop: 20
path: test
content: 1 < 2 != 3 < 4 != 5 < 6
right:
Value:
Implicit:
- "6"
- line_start: 1
line_stop: 1
col_start: 23
col_stop: 24
path: test
content: 1 < 2 != 3 < 4 != 5 < 6
op: Lt
span:
line_start: 1
line_stop: 1
col_start: 19
col_stop: 24
path: test
content: 1 < 2 != 3 < 4 != 5 < 6
op: Ne
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 24
path: test
content: 1 < 2 != 3 < 4 != 5 < 6

Some files were not shown because too many files have changed in this diff Show More