Merge pull request #854 from powdr-labs/fix_public_parsing

Fix public parsing and labels.
This commit is contained in:
chriseth
2023-12-19 15:40:10 +00:00
committed by GitHub
14 changed files with 54 additions and 53 deletions

View File

@@ -140,7 +140,7 @@ impl<T: Display> Display for Return<T> {
impl Display for LabelStatement {
fn fmt(&self, f: &mut Formatter<'_>) -> Result {
write!(f, "{}::", self.name)
write!(f, "{}:", self.name)
}
}

View File

@@ -214,7 +214,7 @@ impl<T: Display> Display for FunctionStatement<T> {
format!(" {}", inputs.iter().format(", "))
}
),
FunctionStatement::Label(_, name) => write!(f, "{name}::"),
FunctionStatement::Label(_, name) => write!(f, "{name}:"),
FunctionStatement::DebugDirective(_, dir) => write!(f, "{dir}"),
FunctionStatement::Return(_, values) => write!(
f,