-
Notifications
You must be signed in to change notification settings - Fork 7
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
Initial support for xt::xtensor
in LC
#18
Conversation
Actually the scene with |
We have to use the header path information that is available, and use some heuristics to determine which header this is (C++ standard library, XTensor, user header etc.) and then decide whether to ignore or include. Once we have our own parser, and our own AST, we might decide to simplify this and use Clang AST plus our own heuristics to generate our own clean AST (that has nodes for header files) and then use AST->ASR for both paths (Clang and our own parser). However, our own AST might have some limitations (even if the full Clang AST is used to generate it), so let's postpone the decision here for later once we have more experience. For now let's do Clang AST directly to ASR and we just have to do our best. |
I will continue the work tomorrow and get it merged. We can improvise rest of the things later. |
Correct. Clang AST doesn't have something like our ASR's module. Everything comes under |
DEV: Initialise only when CXX constructor has at least 1 argument
DEV: Use 64 bit floating point for all float types
Merging. |
xtensor
arrays in LCxt::xtensor
in LC
#12
Test I am working on,