Skip to content

Commit

Permalink
Moved source file implementations to zhivo subfolder.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Oct 12, 2024
1 parent aa65acc commit f681ec6
Show file tree
Hide file tree
Showing 47 changed files with 135 additions and 135 deletions.
2 changes: 1 addition & 1 deletion src/Zhivo.cpp → src/zhivo/Zhivo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* along with Zhivo. If not, see <https://www.gnu.org/licenses/>.
*/

#include <Zhivo.hpp>
#include <zhivo/Zhivo.hpp>

#include <iostream>
#include <stdexcept>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* along with Zhivo. If not, see <https://www.gnu.org/licenses/>.
*/

#include <ast/TerminativeSignal.hpp>
#include <zhivo/ast/TerminativeSignal.hpp>

Token TerminativeBreakSignal::getAddress() const {
return this->origin;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
* along with Zhivo. If not, see <https://www.gnu.org/licenses/>.
*/

#include <ast/ASTNodeException.hpp>
#include <ast/expression/ArrayAccessExpression.hpp>
#include <parser/Token.hpp>
#include <zhivo/ast/ASTNodeException.hpp>
#include <zhivo/ast/expression/ArrayAccessExpression.hpp>
#include <zhivo/parser/Token.hpp>

#include <memory>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* along with Zhivo. If not, see <https://www.gnu.org/licenses/>.
*/

#include <ast/expression/ArrayExpression.hpp>
#include <zhivo/ast/expression/ArrayExpression.hpp>
#include <memory>

DynamicObject ArrayExpression::visit(SymbolTable& symbols) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
* along with Zhivo. If not, see <https://www.gnu.org/licenses/>.
*/

#include <ast/ASTNodeException.hpp>
#include <ast/expression/ArrayAccessExpression.hpp>
#include <ast/expression/BinaryExpression.hpp>
#include <ast/expression/VariableAccessExpression.hpp>
#include <parser/Token.hpp>
#include <util/VectorMath.hpp>
#include <zhivo/ast/ASTNodeException.hpp>
#include <zhivo/ast/expression/ArrayAccessExpression.hpp>
#include <zhivo/ast/expression/BinaryExpression.hpp>
#include <zhivo/ast/expression/VariableAccessExpression.hpp>
#include <zhivo/parser/Token.hpp>
#include <zhivo/util/VectorMath.hpp>

#include <limits>
#include <memory>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
* along with Zhivo. If not, see <https://www.gnu.org/licenses/>.
*/

#include <ast/expression/BlockExpression.hpp>
#include <core/SymbolTable.hpp>
#include <zhivo/ast/expression/BlockExpression.hpp>
#include <zhivo/core/SymbolTable.hpp>
#include <memory>

DynamicObject BlockExpression::visit(SymbolTable& symbols) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
* along with Zhivo. If not, see <https://www.gnu.org/licenses/>.
*/

#include <ast/expression/BooleanLiteralExpression.hpp>
#include <core/DynamicObject.hpp>
#include <core/SymbolTable.hpp>
#include <zhivo/ast/expression/BooleanLiteralExpression.hpp>
#include <zhivo/core/DynamicObject.hpp>
#include <zhivo/core/SymbolTable.hpp>

DynamicObject BooleanLiteralExpression::visit(
SymbolTable& symbols
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
* along with Zhivo. If not, see <https://www.gnu.org/licenses/>.
*/

#include <ast/expression/CatchHandleExpression.hpp>
#include <ast/ASTNodeException.hpp>
#include <core/SymbolTable.hpp>
#include <parser/Token.hpp>
#include <zhivo/ast/expression/CatchHandleExpression.hpp>
#include <zhivo/ast/ASTNodeException.hpp>
#include <zhivo/core/SymbolTable.hpp>
#include <zhivo/parser/Token.hpp>

DynamicObject CatchHandleExpression::visit(SymbolTable& symbols) {
DynamicObject object = {};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
* along with Zhivo. If not, see <https://www.gnu.org/licenses/>.
*/

#include <ast/ASTNodeException.hpp>
#include <ast/expression/FunctionCallExpression.hpp>
#include <parser/Parser.hpp>
#include <zhivo/ast/ASTNodeException.hpp>
#include <zhivo/ast/expression/FunctionCallExpression.hpp>
#include <zhivo/parser/Parser.hpp>

DynamicObject FunctionCallExpression::visit(SymbolTable& symbols) {
auto func = this->callable->visit(symbols);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
* along with Zhivo. If not, see <https://www.gnu.org/licenses/>.
*/

#include <ast/ASTNodeException.hpp>
#include <ast/expression/FunctionDeclarationExpression.hpp>
#include <core/SymbolTable.hpp>
#include <parser/Token.hpp>
#include <zhivo/ast/ASTNodeException.hpp>
#include <zhivo/ast/expression/FunctionDeclarationExpression.hpp>
#include <zhivo/core/SymbolTable.hpp>
#include <zhivo/parser/Token.hpp>

FunctionDeclarationExpression& FunctionDeclarationExpression::operator=(
FunctionDeclarationExpression&& other
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* along with Zhivo. If not, see <https://www.gnu.org/licenses/>.
*/

#include <ast/expression/GroupedExpression.hpp>
#include <zhivo/ast/expression/GroupedExpression.hpp>
#include <memory>

DynamicObject GroupedExpression::visit(SymbolTable& symbols) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* along with Zhivo. If not, see <https://www.gnu.org/licenses/>.
*/

#include <ast/expression/IfElseExpression.hpp>
#include <zhivo/ast/expression/IfElseExpression.hpp>

DynamicObject IfElseExpression::visit(SymbolTable& symbols) {
DynamicObject condValue = this->condition->visit(symbols);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* along with Zhivo. If not, see <https://www.gnu.org/licenses/>.
*/

#include <ast/expression/LoopExpression.hpp>
#include <zhivo/ast/expression/LoopExpression.hpp>

DynamicObject LoopExpression::visit(SymbolTable& symbols) {
DynamicObject value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
* along with Zhivo. If not, see <https://www.gnu.org/licenses/>.
*/

#include <ast/expression/MaybeExpression.hpp>
#include <core/DynamicObject.hpp>
#include <core/SymbolTable.hpp>
#include <zhivo/ast/expression/MaybeExpression.hpp>
#include <zhivo/core/DynamicObject.hpp>
#include <zhivo/core/SymbolTable.hpp>

DynamicObject MaybeExpression::visit(
SymbolTable& symbols
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* along with Zhivo. If not, see <https://www.gnu.org/licenses/>.
*/

#include <ast/expression/NilCoalescingExpression.hpp>
#include <zhivo/ast/expression/NilCoalescingExpression.hpp>

DynamicObject NilCoalescingExpression::visit(SymbolTable& symbols) {
DynamicObject leftValue = this->left->visit(symbols);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* along with Zhivo. If not, see <https://www.gnu.org/licenses/>.
*/

#include <ast/expression/NilLiteralExpression.hpp>
#include <zhivo/ast/expression/NilLiteralExpression.hpp>

DynamicObject NilLiteralExpression::visit(
SymbolTable& symbols
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* along with Zhivo. If not, see <https://www.gnu.org/licenses/>.
*/

#include <ast/expression/NumberLiteralExpression.hpp>
#include <zhivo/ast/expression/NumberLiteralExpression.hpp>

DynamicObject NumberLiteralExpression::visit(
SymbolTable& symbols
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
* along with Zhivo. If not, see <https://www.gnu.org/licenses/>.
*/

#include <ast/ASTNodeException.hpp>
#include <ast/TerminativeSignal.hpp>
#include <ast/expression/ParallelExpression.hpp>
#include <core/Runtime.hpp>
#include <core/SymbolTable.hpp>
#include <parser/LexicalAnalysisException.hpp>
#include <parser/ParserException.hpp>
#include <util/ThreadId.hpp>
#include <zhivo/ast/ASTNodeException.hpp>
#include <zhivo/ast/TerminativeSignal.hpp>
#include <zhivo/ast/expression/ParallelExpression.hpp>
#include <zhivo/core/Runtime.hpp>
#include <zhivo/core/SymbolTable.hpp>
#include <zhivo/parser/LexicalAnalysisException.hpp>
#include <zhivo/parser/ParserException.hpp>
#include <zhivo/util/ThreadId.hpp>

#include <exception>
#include <functional>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
* along with Zhivo. If not, see <https://www.gnu.org/licenses/>.
*/

#include <ast/expression/RandomExpression.hpp>
#include <util/RandomBool.hpp>
#include <zhivo/ast/expression/RandomExpression.hpp>
#include <zhivo/util/RandomBool.hpp>

DynamicObject RandomExpression::visit(SymbolTable& symbols) {
if(ZhivoUtil::randomBoolValue())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* along with Zhivo. If not, see <https://www.gnu.org/licenses/>.
*/

#include <ast/expression/RegexExpression.hpp>
#include <zhivo/ast/expression/RegexExpression.hpp>

DynamicObject RegexExpression::visit(
SymbolTable& symbols
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
* along with Zhivo. If not, see <https://www.gnu.org/licenses/>.
*/

#include <ast/expression/FunctionDeclarationExpression.hpp>
#include <ast/expression/RenderExpression.hpp>
#include <zhivo/ast/expression/FunctionDeclarationExpression.hpp>
#include <zhivo/ast/expression/RenderExpression.hpp>
#include <iostream>

DynamicObject RenderExpression::visit(SymbolTable& symbols) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* along with Zhivo. If not, see <https://www.gnu.org/licenses/>.
*/

#include <ast/expression/StringLiteralExpression.hpp>
#include <zhivo/ast/expression/StringLiteralExpression.hpp>

DynamicObject StringLiteralExpression::visit(
SymbolTable& symbols
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
* along with Zhivo. If not, see <https://www.gnu.org/licenses/>.
*/

#include <ast/ASTNodeException.hpp>
#include <ast/expression/TypeExpression.hpp>
#include <zhivo/ast/ASTNodeException.hpp>
#include <zhivo/ast/expression/TypeExpression.hpp>

#include <parser/Token.hpp>
#include <zhivo/parser/Token.hpp>

DynamicObject TypeExpression::visit(SymbolTable& symbols) {
DynamicObject value = this->expression->visit(symbols);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
* along with Zhivo. If not, see <https://www.gnu.org/licenses/>.
*/

#include <ast/ASTNodeException.hpp>
#include <ast/expression/UnaryExpression.hpp>
#include <parser/Token.hpp>
#include <zhivo/ast/ASTNodeException.hpp>
#include <zhivo/ast/expression/UnaryExpression.hpp>
#include <zhivo/parser/Token.hpp>

#include <algorithm>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* along with Zhivo. If not, see <https://www.gnu.org/licenses/>.
*/

#include <ast/expression/UnlessExpression.hpp>
#include <zhivo/ast/expression/UnlessExpression.hpp>

DynamicObject UnlessExpression::visit(SymbolTable& symbols) {
DynamicObject condValue = this->condition->visit(symbols);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* along with Zhivo. If not, see <https://www.gnu.org/licenses/>.
*/

#include <ast/expression/VariableAccessExpression.hpp>
#include <zhivo/ast/expression/VariableAccessExpression.hpp>

Token VariableAccessExpression::getName() const {
return *this->name;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* along with Zhivo. If not, see <https://www.gnu.org/licenses/>.
*/

#include <ast/expression/WhenExpression.hpp>
#include <zhivo/ast/expression/WhenExpression.hpp>

DynamicObject WhenExpression::visit(SymbolTable& symbols) {
DynamicObject expr = this->expression->visit(symbols);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* along with Zhivo. If not, see <https://www.gnu.org/licenses/>.
*/

#include <ast/expression/WhileExpression.hpp>
#include <zhivo/ast/expression/WhileExpression.hpp>

DynamicObject WhileExpression::visit(SymbolTable& symbols) {
DynamicObject value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* along with Zhivo. If not, see <https://www.gnu.org/licenses/>.
*/

#include <ast/statement/BreakStatement.hpp>
#include <zhivo/ast/statement/BreakStatement.hpp>

DynamicObject BreakStatement::visit(
SymbolTable& symbols
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* along with Zhivo. If not, see <https://www.gnu.org/licenses/>.
*/

#include <ast/statement/ContinueStatement.hpp>
#include <zhivo/ast/statement/ContinueStatement.hpp>

DynamicObject ContinueStatement::visit(
SymbolTable& symbols
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* along with Zhivo. If not, see <https://www.gnu.org/licenses/>.
*/

#include <ast/statement/ExpressionStatement.hpp>
#include <zhivo/ast/statement/ExpressionStatement.hpp>

DynamicObject ExpressionStatement::visit(SymbolTable& symbols) {
return this->expression->visit(symbols);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* along with Zhivo. If not, see <https://www.gnu.org/licenses/>.
*/

#include <ast/statement/ReturnStatement.hpp>
#include <zhivo/ast/statement/ReturnStatement.hpp>

DynamicObject ReturnStatement::visit(SymbolTable& symbols) {
throw TerminativeReturnSignal(this->expression->visit(symbols));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
* along with Zhivo. If not, see <https://www.gnu.org/licenses/>.
*/

#include <ast/statement/TestStatement.hpp>
#include <core/DynamicObject.hpp>
#include <core/SymbolTable.hpp>
#include <zhivo/ast/statement/TestStatement.hpp>
#include <zhivo/core/DynamicObject.hpp>
#include <zhivo/core/SymbolTable.hpp>

#include <iostream>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* along with Zhivo. If not, see <https://www.gnu.org/licenses/>.
*/

#include <ast/statement/ThrowStatement.hpp>
#include <zhivo/ast/statement/ThrowStatement.hpp>

DynamicObject ThrowStatement::visit(SymbolTable& symbols) {
#ifdef _MSC_VER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
* along with Zhivo. If not, see <https://www.gnu.org/licenses/>.
*/

#include <ast/ASTNodeException.hpp>
#include <ast/statement/VariableDeclarationStatement.hpp>
#include <core/Runtime.hpp>
#include <core/SymbolTable.hpp>
#include <zhivo/ast/ASTNodeException.hpp>
#include <zhivo/ast/statement/VariableDeclarationStatement.hpp>
#include <zhivo/core/Runtime.hpp>
#include <zhivo/core/SymbolTable.hpp>

#if defined(__unix__) || defined(__linux__) || defined(__APPLE__)
# include <dlfcn.h>
Expand Down
Loading

0 comments on commit f681ec6

Please sign in to comment.