Repository navigation
feat(tdl): Add a super header to import all AST nodes and hide the implementation namespace. #202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| /** | ||
| * A super header that imports all AST nodes and hides the implementation namespaces. | ||
| */ | ||
| #ifndef SPIDER_TDL_PARSER_AST_NODES_HPP | ||
| #define SPIDER_TDL_PARSER_AST_NODES_HPP | ||
|
|
||
| #include <spider/tdl/parser/ast/node_impl/Function.hpp> | ||
| #include <spider/tdl/parser/ast/node_impl/Identifier.hpp> | ||
| #include <spider/tdl/parser/ast/node_impl/NamedVar.hpp> | ||
| #include <spider/tdl/parser/ast/node_impl/Namespace.hpp> | ||
| #include <spider/tdl/parser/ast/node_impl/StructSpec.hpp> | ||
| #include <spider/tdl/parser/ast/node_impl/Type.hpp> | ||
| #include <spider/tdl/parser/ast/node_impl/type_impl/Container.hpp> | ||
| #include <spider/tdl/parser/ast/node_impl/type_impl/container_impl/List.hpp> | ||
| #include <spider/tdl/parser/ast/node_impl/type_impl/container_impl/Map.hpp> | ||
| #include <spider/tdl/parser/ast/node_impl/type_impl/container_impl/Tuple.hpp> | ||
| #include <spider/tdl/parser/ast/node_impl/type_impl/Primitive.hpp> | ||
| #include <spider/tdl/parser/ast/node_impl/type_impl/primitive_impl/Bool.hpp> | ||
| #include <spider/tdl/parser/ast/node_impl/type_impl/primitive_impl/Float.hpp> | ||
| #include <spider/tdl/parser/ast/node_impl/type_impl/primitive_impl/Int.hpp> | ||
| #include <spider/tdl/parser/ast/node_impl/type_impl/Struct.hpp> | ||
|
|
||
| // IWYU pragma: begin_exports | ||
| #include <spider/tdl/parser/ast/FloatSpec.hpp> | ||
| #include <spider/tdl/parser/ast/IntSpec.hpp> | ||
| #include <spider/tdl/parser/ast/Node.hpp> | ||
|
|
||
| // IWYU pragma: end_exports | ||
|
|
||
| namespace spider::tdl::parser::ast { | ||
| using Function = node_impl::Function; | ||
| using Identifier = node_impl::Identifier; | ||
| using NamedVar = node_impl::NamedVar; | ||
| using Namespace = node_impl::Namespace; | ||
| using StructSpec = node_impl::StructSpec; | ||
| using Type = node_impl::Type; | ||
| using Container = node_impl::type_impl::Container; | ||
| using Primitive = node_impl::type_impl::Primitive; | ||
| using Struct = node_impl::type_impl::Struct; | ||
| using List = node_impl::type_impl::container_impl::List; | ||
| using Map = node_impl::type_impl::container_impl::Map; | ||
| using Tuple = node_impl::type_impl::container_impl::Tuple; | ||
| using Int = node_impl::type_impl::primitive_impl::Int; | ||
| using Float = node_impl::type_impl::primitive_impl::Float; | ||
| using Bool = node_impl::type_impl::primitive_impl::Bool; | ||
| } // namespace spider::tdl::parser::ast | ||
|
|
||
| #endif // SPIDER_TDL_PARSER_AST_NODES_HPP |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.