Working prefix
This commit is contained in:
+1
-3
@@ -285,11 +285,9 @@ impl From<pest::iterators::Pair<'_, Rule>> for Expression {
|
|||||||
prefixes.push(Prefix::from(inner.next().unwrap()));
|
prefixes.push(Prefix::from(inner.next().unwrap()));
|
||||||
}
|
}
|
||||||
|
|
||||||
println!("{:#?}", prefixes);
|
|
||||||
|
|
||||||
let exp = Expression::from(inner.next().unwrap());
|
let exp = Expression::from(inner.next().unwrap());
|
||||||
|
|
||||||
if inner.len() > 0 {
|
if inner.len() > 0 || prefixes.len() > 0 {
|
||||||
Expression::Fix {
|
Expression::Fix {
|
||||||
initial: Box::new(exp),
|
initial: Box::new(exp),
|
||||||
prefixes,
|
prefixes,
|
||||||
|
|||||||
Reference in New Issue
Block a user