Skip to content

Commit

Permalink
Restructure source tree.
Browse files Browse the repository at this point in the history
  • Loading branch information
lhmouse committed Nov 21, 2018
1 parent f70acf5 commit 39ff916
Show file tree
Hide file tree
Showing 76 changed files with 284 additions and 277 deletions.
137 changes: 72 additions & 65 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -64,75 +64,82 @@ lib_librocket_la_SOURCES = \
asteria/src/rocket/cow_string.cpp

pkginclude_HEADERS = \
asteria/src/precompiled.hpp \
asteria/src/fwd.hpp \
asteria/src/utilities.hpp \
asteria/src/abstract_opaque.hpp \
asteria/src/shared_opaque_wrapper.hpp \
asteria/src/abstract_function.hpp \
asteria/src/shared_function_wrapper.hpp \
asteria/src/value.hpp \
asteria/src/reference_root.hpp \
asteria/src/reference_modifier.hpp \
asteria/src/reference.hpp \
asteria/src/variable.hpp \
asteria/src/variable_hashset.hpp \
asteria/src/abstract_variable_callback.hpp \
asteria/src/collector.hpp \
asteria/src/exception.hpp \
asteria/src/source_location.hpp \
asteria/src/function_header.hpp \
asteria/src/abstract_context.hpp \
asteria/src/analytic_context.hpp \
asteria/src/executive_context.hpp \
asteria/src/global_context.hpp \
asteria/src/global_collector.hpp \
asteria/src/variadic_arguer.hpp \
asteria/src/reference_stack.hpp \
asteria/src/reference_dictionary.hpp \
asteria/src/xpnode.hpp \
asteria/src/expression.hpp \
asteria/src/statement.hpp \
asteria/src/block.hpp \
asteria/src/instantiated_function.hpp \
asteria/src/parser_error.hpp \
asteria/src/token.hpp \
asteria/src/token_stream.hpp \
asteria/src/parser.hpp \
asteria/src/simple_source_file.hpp
asteria/src/utilities.hpp

pkginclude_runtimedir = ${pkgincludedir}/runtime
pkginclude_runtime_HEADERS = \
asteria/src/runtime/abstract_opaque.hpp \
asteria/src/runtime/shared_opaque_wrapper.hpp \
asteria/src/runtime/abstract_function.hpp \
asteria/src/runtime/shared_function_wrapper.hpp \
asteria/src/runtime/value.hpp \
asteria/src/runtime/reference_root.hpp \
asteria/src/runtime/reference_modifier.hpp \
asteria/src/runtime/reference.hpp \
asteria/src/runtime/variable.hpp \
asteria/src/runtime/variable_hashset.hpp \
asteria/src/runtime/abstract_variable_callback.hpp \
asteria/src/runtime/collector.hpp \
asteria/src/runtime/exception.hpp \
asteria/src/runtime/source_location.hpp \
asteria/src/runtime/function_header.hpp \
asteria/src/runtime/abstract_context.hpp \
asteria/src/runtime/analytic_context.hpp \
asteria/src/runtime/executive_context.hpp \
asteria/src/runtime/global_context.hpp \
asteria/src/runtime/global_collector.hpp \
asteria/src/runtime/variadic_arguer.hpp \
asteria/src/runtime/reference_stack.hpp \
asteria/src/runtime/reference_dictionary.hpp \
asteria/src/runtime/xpnode.hpp \
asteria/src/runtime/expression.hpp \
asteria/src/runtime/statement.hpp \
asteria/src/runtime/block.hpp \
asteria/src/runtime/instantiated_function.hpp

pkginclude_compilerdir = ${pkgincludedir}/compiler
pkginclude_compiler_HEADERS = \
asteria/src/compiler/parser_error.hpp \
asteria/src/compiler/token.hpp \
asteria/src/compiler/token_stream.hpp \
asteria/src/compiler/parser.hpp \
asteria/src/compiler/simple_source_file.hpp

lib_libasteria_la_SOURCES = \
asteria/src/utilities.cpp \
asteria/src/abstract_opaque.cpp \
asteria/src/abstract_function.cpp \
asteria/src/value.cpp \
asteria/src/reference_root.cpp \
asteria/src/reference_modifier.cpp \
asteria/src/reference.cpp \
asteria/src/variable.cpp \
asteria/src/variable_hashset.cpp \
asteria/src/abstract_variable_callback.cpp \
asteria/src/collector.cpp \
asteria/src/exception.cpp \
asteria/src/source_location.cpp \
asteria/src/function_header.cpp \
asteria/src/abstract_context.cpp \
asteria/src/analytic_context.cpp \
asteria/src/executive_context.cpp \
asteria/src/global_context.cpp \
asteria/src/global_collector.cpp \
asteria/src/variadic_arguer.cpp \
asteria/src/reference_stack.cpp \
asteria/src/reference_dictionary.cpp \
asteria/src/xpnode.cpp \
asteria/src/expression.cpp \
asteria/src/statement.cpp \
asteria/src/block.cpp \
asteria/src/instantiated_function.cpp \
asteria/src/parser_error.cpp \
asteria/src/token.cpp \
asteria/src/token_stream.cpp \
asteria/src/parser.cpp \
asteria/src/simple_source_file.cpp
asteria/src/runtime/abstract_opaque.cpp \
asteria/src/runtime/abstract_function.cpp \
asteria/src/runtime/value.cpp \
asteria/src/runtime/reference_root.cpp \
asteria/src/runtime/reference_modifier.cpp \
asteria/src/runtime/reference.cpp \
asteria/src/runtime/variable.cpp \
asteria/src/runtime/variable_hashset.cpp \
asteria/src/runtime/abstract_variable_callback.cpp \
asteria/src/runtime/collector.cpp \
asteria/src/runtime/exception.cpp \
asteria/src/runtime/source_location.cpp \
asteria/src/runtime/function_header.cpp \
asteria/src/runtime/abstract_context.cpp \
asteria/src/runtime/analytic_context.cpp \
asteria/src/runtime/executive_context.cpp \
asteria/src/runtime/global_context.cpp \
asteria/src/runtime/global_collector.cpp \
asteria/src/runtime/variadic_arguer.cpp \
asteria/src/runtime/reference_stack.cpp \
asteria/src/runtime/reference_dictionary.cpp \
asteria/src/runtime/xpnode.cpp \
asteria/src/runtime/expression.cpp \
asteria/src/runtime/statement.cpp \
asteria/src/runtime/block.cpp \
asteria/src/runtime/instantiated_function.cpp \
asteria/src/compiler/parser_error.cpp \
asteria/src/compiler/token.cpp \
asteria/src/compiler/token_stream.cpp \
asteria/src/compiler/parser.cpp \
asteria/src/compiler/simple_source_file.cpp

lib_libasteria_la_LIBADD = \
lib/librocket.la
Expand Down
12 changes: 6 additions & 6 deletions asteria/src/parser.cpp → asteria/src/compiler/parser.cpp
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
// This file is part of Asteria.
// Copyleft 2018, LH_Mouse. All wrongs reserved.

#include "precompiled.hpp"
#include "../precompiled.hpp"
#include "parser.hpp"
#include "token_stream.hpp"
#include "token.hpp"
#include "statement.hpp"
#include "block.hpp"
#include "xpnode.hpp"
#include "expression.hpp"
#include "utilities.hpp"
#include "../runtime/statement.hpp"
#include "../runtime/block.hpp"
#include "../runtime/xpnode.hpp"
#include "../runtime/expression.hpp"
#include "../utilities.hpp"

namespace Asteria {

Expand Down
10 changes: 5 additions & 5 deletions asteria/src/parser.hpp → asteria/src/compiler/parser.hpp
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// This file is part of Asteria.
// Copyleft 2018, LH_Mouse. All wrongs reserved.

#ifndef ASTERIA_PARSER_HPP_
#define ASTERIA_PARSER_HPP_
#ifndef ASTERIA_COMPILER_PARSER_HPP_
#define ASTERIA_COMPILER_PARSER_HPP_

#include "fwd.hpp"
#include "../fwd.hpp"
#include "parser_error.hpp"
#include "block.hpp"
#include "rocket/variant.hpp"
#include "../runtime/block.hpp"
#include "../rocket/variant.hpp"

namespace Asteria {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// This file is part of Asteria.
// Copyleft 2018, LH_Mouse. All wrongs reserved.

#include "precompiled.hpp"
#include "../precompiled.hpp"
#include "parser_error.hpp"
#include "utilities.hpp"
#include "../utilities.hpp"

namespace Asteria {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// This file is part of Asteria.
// Copyleft 2018, LH_Mouse. All wrongs reserved.

#ifndef ASTERIA_PARSER_ERROR_HPP_
#define ASTERIA_PARSER_ERROR_HPP_
#ifndef ASTERIA_COMPILER_PARSER_ERROR_HPP_
#define ASTERIA_COMPILER_PARSER_ERROR_HPP_

#include "fwd.hpp"
#include "../fwd.hpp"

namespace Asteria {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
// This file is part of Asteria.
// Copyleft 2018, LH_Mouse. All wrongs reserved.

#include "precompiled.hpp"
#include "../precompiled.hpp"
#include "simple_source_file.hpp"
#include "token_stream.hpp"
#include "parser.hpp"
#include "function_header.hpp"
#include "utilities.hpp"
#include "../runtime/function_header.hpp"
#include "../runtime/reference.hpp"
#include "../utilities.hpp"

namespace Asteria {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
// This file is part of Asteria.
// Copyleft 2018, LH_Mouse. All wrongs reserved.

#ifndef ASTERIA_SIMPLE_SOURCE_FILE_HPP_
#define ASTERIA_SIMPLE_SOURCE_FILE_HPP_
#ifndef ASTERIA_COMPILER_SIMPLE_SOURCE_FILE_HPP_
#define ASTERIA_COMPILER_SIMPLE_SOURCE_FILE_HPP_

#include "fwd.hpp"
#include "block.hpp"
#include "reference.hpp"
#include "../fwd.hpp"
#include "../runtime/block.hpp"

namespace Asteria {

Expand Down
4 changes: 2 additions & 2 deletions asteria/src/token.cpp → asteria/src/compiler/token.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// This file is part of Asteria.
// Copyleft 2018, LH_Mouse. All wrongs reserved.

#include "precompiled.hpp"
#include "../precompiled.hpp"
#include "token.hpp"
#include "utilities.hpp"
#include "../utilities.hpp"

namespace Asteria {

Expand Down
8 changes: 4 additions & 4 deletions asteria/src/token.hpp → asteria/src/compiler/token.hpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// This file is part of Asteria.
// Copyleft 2018, LH_Mouse. All wrongs reserved.

#ifndef ASTERIA_TOKEN_HPP_
#define ASTERIA_TOKEN_HPP_
#ifndef ASTERIA_COMPILER_TOKEN_HPP_
#define ASTERIA_COMPILER_TOKEN_HPP_

#include "fwd.hpp"
#include "../fwd.hpp"
#include "parser_error.hpp"
#include "rocket/variant.hpp"
#include "../rocket/variant.hpp"

namespace Asteria {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// This file is part of Asteria.
// Copyleft 2018, LH_Mouse. All wrongs reserved.

#include "precompiled.hpp"
#include "../precompiled.hpp"
#include "token_stream.hpp"
#include "token.hpp"
#include "parser_error.hpp"
#include "utilities.hpp"
#include "../utilities.hpp"

namespace Asteria {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// This file is part of Asteria.
// Copyleft 2018, LH_Mouse. All wrongs reserved.

#ifndef ASTERIA_TOKEN_STREAM_HPP_
#define ASTERIA_TOKEN_STREAM_HPP_
#ifndef ASTERIA_COMPILER_TOKEN_STREAM_HPP_
#define ASTERIA_COMPILER_TOKEN_STREAM_HPP_

#include "fwd.hpp"
#include "../fwd.hpp"
#include "parser_error.hpp"
#include "token.hpp"
#include "rocket/variant.hpp"
#include "../rocket/variant.hpp"

namespace Asteria {

Expand Down
4 changes: 2 additions & 2 deletions asteria/src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// This file is part of Asteria.
// Copyleft 2018, LH_Mouse. All wrongs reserved.

#include "simple_source_file.hpp"
#include "global_context.hpp"
#include "compiler/simple_source_file.hpp"
#include "runtime/global_context.hpp"
#include <iostream>
#include <sstream>
#include <chrono>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// This file is part of Asteria.
// Copyleft 2018, LH_Mouse. All wrongs reserved.

#include "precompiled.hpp"
#include "../precompiled.hpp"
#include "abstract_context.hpp"
#include "reference.hpp"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// This file is part of Asteria.
// Copyleft 2018, LH_Mouse. All wrongs reserved.

#ifndef ASTERIA_ABSTRACT_CONTEXT_HPP_
#define ASTERIA_ABSTRACT_CONTEXT_HPP_
#ifndef ASTERIA_RUNTIME_ABSTRACT_CONTEXT_HPP_
#define ASTERIA_RUNTIME_ABSTRACT_CONTEXT_HPP_

#include "fwd.hpp"
#include "../fwd.hpp"

namespace Asteria {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// This file is part of Asteria.
// Copyleft 2018, LH_Mouse. All wrongs reserved.

#include "precompiled.hpp"
#include "../precompiled.hpp"
#include "abstract_function.hpp"

namespace Asteria {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// This file is part of Asteria.
// Copyleft 2018, LH_Mouse. All wrongs reserved.

#ifndef ASTERIA_ABSTRACT_FUNCTION_HPP_
#define ASTERIA_ABSTRACT_FUNCTION_HPP_
#ifndef ASTERIA_RUNTIME_ABSTRACT_FUNCTION_HPP_
#define ASTERIA_RUNTIME_ABSTRACT_FUNCTION_HPP_

#include "fwd.hpp"
#include "rocket/refcounted_ptr.hpp"
#include "../fwd.hpp"
#include "../rocket/refcounted_ptr.hpp"

namespace Asteria {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// This file is part of Asteria.
// Copyleft 2018, LH_Mouse. All wrongs reserved.

#include "precompiled.hpp"
#include "../precompiled.hpp"
#include "abstract_opaque.hpp"

namespace Asteria {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// This file is part of Asteria.
// Copyleft 2018, LH_Mouse. All wrongs reserved.

#ifndef ASTERIA_ABSTRACT_OPAQUE_HPP_
#define ASTERIA_ABSTRACT_OPAQUE_HPP_
#ifndef ASTERIA_RUNTIME_ABSTRACT_OPAQUE_HPP_
#define ASTERIA_RUNTIME_ABSTRACT_OPAQUE_HPP_

#include "fwd.hpp"
#include "rocket/refcounted_ptr.hpp"
#include "../fwd.hpp"
#include "../rocket/refcounted_ptr.hpp"

namespace Asteria {

Expand Down
Loading

0 comments on commit 39ff916

Please sign in to comment.