diff --git a/src/main.rs b/src/main.rs index c71b222..79f4d45 100644 --- a/src/main.rs +++ b/src/main.rs @@ -695,6 +695,8 @@ fn parse_data(pair: pest::iterators::Pair) -> AstNode { let ast = parse_operand(pair.into_inner().nth(1).unwrap(), false); if let AstNode::Immediate32(word) = ast { word + } else if let AstNode::Constant {name: _, address} = ast { + address } else { unreachable!() }