mirror of
https://codeberg.org/ProgramSnail/lang.git
synced 2025-12-13 18:38:45 +00:00
folder structure refactoring
This commit is contained in:
parent
ef88e6af86
commit
78c696b99a
30 changed files with 40 additions and 22 deletions
51
include/printers/expression_printers.hpp
Normal file
51
include/printers/expression_printers.hpp
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
#pragma once
|
||||
|
||||
#include "basic_printers.hpp"
|
||||
#include "expression_nodes.hpp"
|
||||
namespace printers {
|
||||
|
||||
void print_expression(const nodes::Expression &expression,
|
||||
printers::Printer &printer);
|
||||
|
||||
// --- flow control
|
||||
|
||||
void print_case(const nodes::Match::Case &expression, Printer &printer);
|
||||
|
||||
void print_match(const nodes::Match &expression, printers::Printer &printer);
|
||||
|
||||
void print_condition(const nodes::Condition &expression,
|
||||
printers::Printer &printer);
|
||||
|
||||
void print_loop(const nodes::Loop &expression, printers::Printer &printer);
|
||||
|
||||
// --- containers
|
||||
|
||||
void print_container(const nodes::Container &expression,
|
||||
printers::Printer &printer);
|
||||
|
||||
// --- modifiers
|
||||
|
||||
void print_return(const nodes::Return &expression, printers::Printer &printer);
|
||||
|
||||
void print_name_definition(const nodes::NameDefinition &expression,
|
||||
printers::Printer &printer);
|
||||
|
||||
void print_access(const nodes::Access &expression, printers::Printer &printer);
|
||||
|
||||
void print_loop_control(const nodes::LoopControl &expression,
|
||||
printers::Printer &printer);
|
||||
|
||||
void print_modifier_expression(const nodes::ModifierExpression &expression,
|
||||
printers::Printer &printer);
|
||||
|
||||
// --- other
|
||||
|
||||
void print_name_expression(const nodes::NameExpression &expression,
|
||||
printers::Printer &printer);
|
||||
|
||||
void print_constructor(const nodes::Constructor &expression,
|
||||
printers::Printer &printer);
|
||||
|
||||
void print_lambda(const nodes::Lambda &expression, printers::Printer &printer);
|
||||
|
||||
} // namespace printers
|
||||
Loading…
Add table
Add a link
Reference in a new issue