mirror of
https://codeberg.org/ProgramSnail/lang.git
synced 2026-01-25 21:17:11 +00:00
fixes, part of statement printers done
This commit is contained in:
parent
bf49f4030c
commit
c176d1b11d
4 changed files with 315 additions and 7 deletions
25
include/statement_printers.hpp
Normal file
25
include/statement_printers.hpp
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#pragma once
|
||||
|
||||
#include "basic_printers.hpp"
|
||||
#include "statement_nodes.hpp"
|
||||
|
||||
namespace printers {
|
||||
|
||||
void print_source_file(Printer &printer); // TODO
|
||||
|
||||
void print_statement(Printer &printer); // TODO
|
||||
|
||||
void print_import(const nodes::Import &statement, Printer &printer);
|
||||
|
||||
void print_constraint(const nodes::Constraint &statement, Printer &printer);
|
||||
|
||||
void print_type_definition(const nodes::TypeDefinition &statement,
|
||||
Printer &printer);
|
||||
|
||||
void print_function_definition(const nodes::FunctionDefinition &statement,
|
||||
Printer &printer);
|
||||
|
||||
void print_typeclass_definition(const nodes::TypeclassDefinition &statement,
|
||||
Printer &printer);
|
||||
|
||||
} // namespace printers
|
||||
Loading…
Add table
Add a link
Reference in a new issue