diff --git a/Makefile.toml b/Makefile.toml index f4efcace42..448a295f29 100644 --- a/Makefile.toml +++ b/Makefile.toml @@ -6,4 +6,9 @@ args = ["src/parser/parser.lalrpop"] [tasks.build] command = "cargo" args = ["build"] -dependencies = ["lalrpop"] \ No newline at end of file +dependencies = ["lalrpop"] + +[tasks.run] +command = "cargo" +args = ["run"] +dependencies = ["build"] \ No newline at end of file diff --git a/src/parser/parser.lalrpop b/src/parser/parser.lalrpop index 5afef11c48..f1ef12763a 100644 --- a/src/parser/parser.lalrpop +++ b/src/parser/parser.lalrpop @@ -46,8 +46,8 @@ Leaf: Leaf = { => Leaf::Int(<>), => Leaf::Int(<>), => match <>.as_ref() { - "true" => Leaf::Boolean(true), - "false" => Leaf::Boolean(false), + "$true" => Leaf::Boolean(true), + "$false" => Leaf::Boolean(false), _ => Leaf::Bare(<>), } } diff --git a/src/parser/parser.rs b/src/parser/parser.rs index dc60f909dd..6db408742e 100644 --- a/src/parser/parser.rs +++ b/src/parser/parser.rs @@ -1,5 +1,5 @@ // auto-generated: "lalrpop 0.17.0" -// sha256: f99d6ffb543c2f4bf7dd50b8ef84cfc8bc946c3a5d6bccb5d5cffcb5de020da +// sha256: 96c6cfd0a47cfd4cec5e50bf6f3af9de58e9593ac9944479c364be989f6acfe use std::str::FromStr; use crate::parser::tokens::*; use byte_unit::Byte; @@ -1955,8 +1955,8 @@ fn __action20< ) -> Leaf { match __0.as_ref() { - "true" => Leaf::Boolean(true), - "false" => Leaf::Boolean(false), + "$true" => Leaf::Boolean(true), + "$false" => Leaf::Boolean(false), _ => Leaf::Bare(__0), } }