Pretty print programs partially
This commit is contained in:
parent
1b364061e4
commit
200b653e61
3 changed files with 28 additions and 17 deletions
|
|
@ -1,9 +1 @@
|
|||
use pretty::{DocAllocator, DocBuilder, Pretty};
|
||||
|
||||
use crate::ast::Program;
|
||||
|
||||
impl<'a, A: DocAllocator<'a>> Pretty<'a, A> for Program {
|
||||
fn pretty(self, allocator: &'a A) -> DocBuilder<'a, A, ()> {
|
||||
allocator.text("Hello world")
|
||||
}
|
||||
}
|
||||
mod program;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue