From e4723166a24f28cb949e9022fe346148592a0635 Mon Sep 17 00:00:00 2001 From: Abdelrahman Date: Sun, 29 Jun 2025 02:18:25 +0100 Subject: [PATCH] Rename printer and interpreter to ast_printer and ast_interpreter --- cclox_src/parser.cc | 4 ++-- cclox_src/parser.hh | 4 ++-- cclox_src/parser/{interpreter.cc => ast_interpreter.cc} | 2 +- cclox_src/parser/{interpreter.hh => ast_interpreter.hh} | 0 cclox_src/parser/{printer.cc => ast_printer.cc} | 2 +- cclox_src/parser/{printer.hh => ast_printer.hh} | 0 6 files changed, 6 insertions(+), 6 deletions(-) rename cclox_src/parser/{interpreter.cc => ast_interpreter.cc} (99%) rename cclox_src/parser/{interpreter.hh => ast_interpreter.hh} (100%) rename cclox_src/parser/{printer.cc => ast_printer.cc} (97%) rename cclox_src/parser/{printer.hh => ast_printer.hh} (100%) diff --git a/cclox_src/parser.cc b/cclox_src/parser.cc index eaf1c70..f6e9581 100644 --- a/cclox_src/parser.cc +++ b/cclox_src/parser.cc @@ -2,8 +2,8 @@ #define PARSER_CC #include "parser/expr.cc" -#include "parser/printer.cc" #include "parser/parser.cc" -#include "parser/interpreter.cc" +#include "parser/ast_printer.cc" +#include "parser/ast_interpreter.cc" #endif diff --git a/cclox_src/parser.hh b/cclox_src/parser.hh index 1ef374d..b77c468 100644 --- a/cclox_src/parser.hh +++ b/cclox_src/parser.hh @@ -2,8 +2,8 @@ #define MAIN_PARSER_HH #include "parser/expr.hh" -#include "parser/printer.hh" #include "parser/parser.hh" -#include "parser/interpreter.hh" +#include "parser/ast_printer.hh" +#include "parser/ast_interpreter.hh" #endif diff --git a/cclox_src/parser/interpreter.cc b/cclox_src/parser/ast_interpreter.cc similarity index 99% rename from cclox_src/parser/interpreter.cc rename to cclox_src/parser/ast_interpreter.cc index 696e601..2925759 100644 --- a/cclox_src/parser/interpreter.cc +++ b/cclox_src/parser/ast_interpreter.cc @@ -1,4 +1,4 @@ -#include "interpreter.hh" +#include "ast_interpreter.hh" #include "expr.hh" #include "../error_handler.hh" #include "../tokenizer.hh" diff --git a/cclox_src/parser/interpreter.hh b/cclox_src/parser/ast_interpreter.hh similarity index 100% rename from cclox_src/parser/interpreter.hh rename to cclox_src/parser/ast_interpreter.hh diff --git a/cclox_src/parser/printer.cc b/cclox_src/parser/ast_printer.cc similarity index 97% rename from cclox_src/parser/printer.cc rename to cclox_src/parser/ast_printer.cc index 2376cf2..5680938 100644 --- a/cclox_src/parser/printer.cc +++ b/cclox_src/parser/ast_printer.cc @@ -1,4 +1,4 @@ -#include "printer.hh" +#include "ast_printer.hh" #include "expr.hh" #include #include diff --git a/cclox_src/parser/printer.hh b/cclox_src/parser/ast_printer.hh similarity index 100% rename from cclox_src/parser/printer.hh rename to cclox_src/parser/ast_printer.hh