Compiling solution v0.1.0 (/tmp/d20241225-258381-mvfqsm/solution)
error: no rules expected the token `atom('A')`
--> tests/../src/lib.rs:18:32
|
10 | macro_rules! expr {
| ----------------- when calling this macro
...
18 | Expr::And(vec![$(expr!($arg)),*])
| ^^^^ no rules expected this token in macro call
|
::: tests/solution_test.rs:24:5
|
24 | expr!(and(atom('A'), atom('B'), atom('C')));
| ------------------------------------------- in this macro invocation
|
note: while trying to match `atom`
--> tests/../src/lib.rs:11:6
|
11 | (atom($ch:expr)) => {
| ^^^^
= note: this error originates in the macro `expr` (in Nightly builds, run with -Z macro-backtrace for more info)
error: no rules expected the token `atom('B')`
--> tests/../src/lib.rs:18:32
|
10 | macro_rules! expr {
| ----------------- when calling this macro
...
18 | Expr::And(vec![$(expr!($arg)),*])
| ^^^^ no rules expected this token in macro call
|
::: tests/solution_test.rs:24:5
|
24 | expr!(and(atom('A'), atom('B'), atom('C')));
| ------------------------------------------- in this macro invocation
|
note: while trying to match `atom`
--> tests/../src/lib.rs:11:6
|
11 | (atom($ch:expr)) => {
| ^^^^
= note: this error originates in the macro `expr` (in Nightly builds, run with -Z macro-backtrace for more info)
error: no rules expected the token `atom('C')`
--> tests/../src/lib.rs:18:32
|
10 | macro_rules! expr {
| ----------------- when calling this macro
...
18 | Expr::And(vec![$(expr!($arg)),*])
| ^^^^ no rules expected this token in macro call
|
::: tests/solution_test.rs:24:5
|
24 | expr!(and(atom('A'), atom('B'), atom('C')));
| ------------------------------------------- in this macro invocation
|
note: while trying to match `atom`
--> tests/../src/lib.rs:11:6
|
11 | (atom($ch:expr)) => {
| ^^^^
= note: this error originates in the macro `expr` (in Nightly builds, run with -Z macro-backtrace for more info)
error: no rules expected the token `atom('A')`
--> tests/../src/lib.rs:21:31
|
10 | macro_rules! expr {
| ----------------- when calling this macro
...
21 | Expr::Or(vec![$(expr!($arg)),*])
| ^^^^ no rules expected this token in macro call
|
::: tests/solution_test.rs:25:5
|
25 | expr!(or(atom('A'), atom('B'), atom('C')));
| ------------------------------------------ in this macro invocation
|
note: while trying to match `atom`
--> tests/../src/lib.rs:11:6
|
11 | (atom($ch:expr)) => {
| ^^^^
= note: this error originates in the macro `expr` (in Nightly builds, run with -Z macro-backtrace for more info)
error: no rules expected the token `atom('B')`
--> tests/../src/lib.rs:21:31
|
10 | macro_rules! expr {
| ----------------- when calling this macro
...
21 | Expr::Or(vec![$(expr!($arg)),*])
| ^^^^ no rules expected this token in macro call
|
::: tests/solution_test.rs:25:5
|
25 | expr!(or(atom('A'), atom('B'), atom('C')));
| ------------------------------------------ in this macro invocation
|
note: while trying to match `atom`
--> tests/../src/lib.rs:11:6
|
11 | (atom($ch:expr)) => {
| ^^^^
= note: this error originates in the macro `expr` (in Nightly builds, run with -Z macro-backtrace for more info)
error: no rules expected the token `atom('C')`
--> tests/../src/lib.rs:21:31
|
10 | macro_rules! expr {
| ----------------- when calling this macro
...
21 | Expr::Or(vec![$(expr!($arg)),*])
| ^^^^ no rules expected this token in macro call
|
::: tests/solution_test.rs:25:5
|
25 | expr!(or(atom('A'), atom('B'), atom('C')));
| ------------------------------------------ in this macro invocation
|
note: while trying to match `atom`
--> tests/../src/lib.rs:11:6
|
11 | (atom($ch:expr)) => {
| ^^^^
= note: this error originates in the macro `expr` (in Nightly builds, run with -Z macro-backtrace for more info)
error: no rules expected the token `atom('A')`
--> tests/../src/lib.rs:18:32
|
10 | macro_rules! expr {
| ----------------- when calling this macro
...
18 | Expr::And(vec![$(expr!($arg)),*])
| ^^^^ no rules expected this token in macro call
|
::: tests/solution_test.rs:27:5
|
27 | expr!(not(and(atom('A'), atom('B'))));
| ------------------------------------- in this macro invocation
|
note: while trying to match `atom`
--> tests/../src/lib.rs:11:6
|
11 | (atom($ch:expr)) => {
| ^^^^
= note: this error originates in the macro `expr` (in Nightly builds, run with -Z macro-backtrace for more info)
error: no rules expected the token `atom('B')`
--> tests/../src/lib.rs:18:32
|
10 | macro_rules! expr {
| ----------------- when calling this macro
...
18 | Expr::And(vec![$(expr!($arg)),*])
| ^^^^ no rules expected this token in macro call
|
::: tests/solution_test.rs:27:5
|
27 | expr!(not(and(atom('A'), atom('B'))));
| ------------------------------------- in this macro invocation
|
note: while trying to match `atom`
--> tests/../src/lib.rs:11:6
|
11 | (atom($ch:expr)) => {
| ^^^^
= note: this error originates in the macro `expr` (in Nightly builds, run with -Z macro-backtrace for more info)
error: no rules expected the token `atom('A')`
--> tests/../src/lib.rs:21:31
|
10 | macro_rules! expr {
| ----------------- when calling this macro
...
21 | Expr::Or(vec![$(expr!($arg)),*])
| ^^^^ no rules expected this token in macro call
|
::: tests/solution_test.rs:28:5
|
28 | expr!(not(or(atom('A'), atom('B'))));
| ------------------------------------ in this macro invocation
|
note: while trying to match `atom`
--> tests/../src/lib.rs:11:6
|
11 | (atom($ch:expr)) => {
| ^^^^
= note: this error originates in the macro `expr` (in Nightly builds, run with -Z macro-backtrace for more info)
error: no rules expected the token `atom('B')`
--> tests/../src/lib.rs:21:31
|
10 | macro_rules! expr {
| ----------------- when calling this macro
...
21 | Expr::Or(vec![$(expr!($arg)),*])
| ^^^^ no rules expected this token in macro call
|
::: tests/solution_test.rs:28:5
|
28 | expr!(not(or(atom('A'), atom('B'))));
| ------------------------------------ in this macro invocation
|
note: while trying to match `atom`
--> tests/../src/lib.rs:11:6
|
11 | (atom($ch:expr)) => {
| ^^^^
= note: this error originates in the macro `expr` (in Nightly builds, run with -Z macro-backtrace for more info)
error: no rules expected the token `and(atom('A'), atom('B'))`
--> tests/../src/lib.rs:21:31
|
10 | macro_rules! expr {
| ----------------- when calling this macro
...
21 | Expr::Or(vec![$(expr!($arg)),*])
| ^^^^ no rules expected this token in macro call
|
::: tests/solution_test.rs:29:5
|
29 | expr!(or(and(atom('A'), atom('B')), and(atom('C'), atom('D'))));
| --------------------------------------------------------------- in this macro invocation
|
note: while trying to match `atom`
--> tests/../src/lib.rs:11:6
|
11 | (atom($ch:expr)) => {
| ^^^^
= note: this error originates in the macro `expr` (in Nightly builds, run with -Z macro-backtrace for more info)
error: no rules expected the token `and(atom('C'), atom('D'))`
--> tests/../src/lib.rs:21:31
|
10 | macro_rules! expr {
| ----------------- when calling this macro
...
21 | Expr::Or(vec![$(expr!($arg)),*])
| ^^^^ no rules expected this token in macro call
|
::: tests/solution_test.rs:29:5
|
29 | expr!(or(and(atom('A'), atom('B')), and(atom('C'), atom('D'))));
| --------------------------------------------------------------- in this macro invocation
|
note: while trying to match `atom`
--> tests/../src/lib.rs:11:6
|
11 | (atom($ch:expr)) => {
| ^^^^
= note: this error originates in the macro `expr` (in Nightly builds, run with -Z macro-backtrace for more info)
error: no rules expected the token `atom('X')`
--> tests/../src/lib.rs:21:31
|
10 | macro_rules! expr {
| ----------------- when calling this macro
...
21 | Expr::Or(vec![$(expr!($arg)),*])
| ^^^^ no rules expected this token in macro call
|
::: tests/solution_test.rs:31:5
|
31 | / expr!(or(
32 | | atom('X'),
33 | | and(atom('A'), atom('B')),
34 | | not(and(atom('C'), atom('D'))),
35 | | not(not(not(atom('Y'))))
36 | | ));
| |______- in this macro invocation
|
note: while trying to match `atom`
--> tests/../src/lib.rs:11:6
|
11 | (atom($ch:expr)) => {
| ^^^^
= note: this error originates in the macro `expr` (in Nightly builds, run with -Z macro-backtrace for more info)
error: no rules expected the token `and(atom('A'), atom('B'))`
--> tests/../src/lib.rs:21:31
|
10 | macro_rules! expr {
| ----------------- when calling this macro
...
21 | Expr::Or(vec![$(expr!($arg)),*])
| ^^^^ no rules expected this token in macro call
|
::: tests/solution_test.rs:31:5
|
31 | / expr!(or(
32 | | atom('X'),
33 | | and(atom('A'), atom('B')),
34 | | not(and(atom('C'), atom('D'))),
35 | | not(not(not(atom('Y'))))
36 | | ));
| |______- in this macro invocation
|
note: while trying to match `atom`
--> tests/../src/lib.rs:11:6
|
11 | (atom($ch:expr)) => {
| ^^^^
= note: this error originates in the macro `expr` (in Nightly builds, run with -Z macro-backtrace for more info)
error: no rules expected the token `not(and(atom('C'), atom('D')))`
--> tests/../src/lib.rs:21:31
|
10 | macro_rules! expr {
| ----------------- when calling this macro
...
21 | Expr::Or(vec![$(expr!($arg)),*])
| ^^^^ no rules expected this token in macro call
|
::: tests/solution_test.rs:31:5
|
31 | / expr!(or(
32 | | atom('X'),
33 | | and(atom('A'), atom('B')),
34 | | not(and(atom('C'), atom('D'))),
35 | | not(not(not(atom('Y'))))
36 | | ));
| |______- in this macro invocation
|
note: while trying to match `atom`
--> tests/../src/lib.rs:11:6
|
11 | (atom($ch:expr)) => {
| ^^^^
= note: this error originates in the macro `expr` (in Nightly builds, run with -Z macro-backtrace for more info)
error: no rules expected the token `not(not(not(atom('Y'))))`
--> tests/../src/lib.rs:21:31
|
10 | macro_rules! expr {
| ----------------- when calling this macro
...
21 | Expr::Or(vec![$(expr!($arg)),*])
| ^^^^ no rules expected this token in macro call
|
::: tests/solution_test.rs:31:5
|
31 | / expr!(or(
32 | | atom('X'),
33 | | and(atom('A'), atom('B')),
34 | | not(and(atom('C'), atom('D'))),
35 | | not(not(not(atom('Y'))))
36 | | ));
| |______- in this macro invocation
|
note: while trying to match `atom`
--> tests/../src/lib.rs:11:6
|
11 | (atom($ch:expr)) => {
| ^^^^
= note: this error originates in the macro `expr` (in Nightly builds, run with -Z macro-backtrace for more info)
error: could not compile `solution` due to 16 previous errors