From cafbe9247b276b9b7db13a225731d4953c5b4de1 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Sun, 4 Aug 2024 02:22:27 -0400 Subject: [PATCH] update debug output --- examples/calc/parser.rs | 48 +++++++++++------------------------------ 1 file changed, 12 insertions(+), 36 deletions(-) diff --git a/examples/calc/parser.rs b/examples/calc/parser.rs index 40077361..5c9b6675 100644 --- a/examples/calc/parser.rs +++ b/examples/calc/parser.rs @@ -401,9 +401,7 @@ fn parse_print() { end: 7, }, data: Number( - OrderedFloat( - 1.0, - ), + 1.0, ), }, Add, @@ -414,9 +412,7 @@ fn parse_print() { end: 11, }, data: Number( - OrderedFloat( - 2.0, - ), + 2.0, ), }, ), @@ -552,9 +548,7 @@ fn parse_example() { end: 81, }, data: Number( - OrderedFloat( - 3.14, - ), + 3.14, ), }, Multiply, @@ -615,9 +609,7 @@ fn parse_example() { end: 124, }, data: Number( - OrderedFloat( - 3.0, - ), + 3.0, ), }, Expression { @@ -627,9 +619,7 @@ fn parse_example() { end: 127, }, data: Number( - OrderedFloat( - 4.0, - ), + 4.0, ), }, ], @@ -662,9 +652,7 @@ fn parse_example() { end: 160, }, data: Number( - OrderedFloat( - 1.0, - ), + 1.0, ), }, ], @@ -693,9 +681,7 @@ fn parse_example() { end: 182, }, data: Number( - OrderedFloat( - 11.0, - ), + 11.0, ), }, Multiply, @@ -706,9 +692,7 @@ fn parse_example() { end: 186, }, data: Number( - OrderedFloat( - 2.0, - ), + 2.0, ), }, ), @@ -782,9 +766,7 @@ fn parse_precedence() { end: 7, }, data: Number( - OrderedFloat( - 1.0, - ), + 1.0, ), }, Add, @@ -802,9 +784,7 @@ fn parse_precedence() { end: 11, }, data: Number( - OrderedFloat( - 2.0, - ), + 2.0, ), }, Multiply, @@ -815,9 +795,7 @@ fn parse_precedence() { end: 15, }, data: Number( - OrderedFloat( - 3.0, - ), + 3.0, ), }, ), @@ -832,9 +810,7 @@ fn parse_precedence() { end: 19, }, data: Number( - OrderedFloat( - 4.0, - ), + 4.0, ), }, ),