Skip to content
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

Sync libasr with LFortran/LPython #117

Merged
merged 8 commits into from
Mar 27, 2024
Merged

Conversation

czgdp1807
Copy link
Collaborator

@certik I am getting the following errors now,

(lc) 0:18:31:~/lc_project/lc % make
[  2%] Built target lc_runtime_static
[ 86%] Built target asr
[ 87%] Building CXX object src/lc/CMakeFiles/lc_lib.dir/parser/tokenizer.cpp.o
In file included from tokenizer.re:4:
In file included from /Users/czgdp1807/lc_project/lc/src/libasr/../lc/parser/tokenizer.h:6:
/Users/czgdp1807/lc_project/lc/src/libasr/../lc/parser/parser_stype.h:13:5: error: no member named 'AST' in namespace 'LCompilers::LC'; did you mean 'ASR'?
    LC::AST::expr_t* key;
    ^~~~~~~
    ASR
/Users/czgdp1807/lc_project/lc/src/libasr/../libasr/asr_scopes.h:11:11: note: 'ASR' declared here
namespace ASR {
          ^
In file included from tokenizer.re:4:
In file included from /Users/czgdp1807/lc_project/lc/src/libasr/../lc/parser/tokenizer.h:6:
/Users/czgdp1807/lc_project/lc/src/libasr/../lc/parser/parser_stype.h:13:5: error: no type named 'expr_t' in namespace 'LCompilers::ASR'; did you mean simply 'expr_t'?
    LC::AST::expr_t* key;
    ^~~~~~~~~~~~~~~
    expr_t
/Users/czgdp1807/lc_project/lc/src/libasr/../lc/ast.h:818:8: note: 'expr_t' declared here
struct expr_t // Sum
       ^
In file included from tokenizer.re:4:
In file included from /Users/czgdp1807/lc_project/lc/src/libasr/../lc/parser/tokenizer.h:6:
/Users/czgdp1807/lc_project/lc/src/libasr/../lc/parser/parser_stype.h:14:5: error: no member named 'AST' in namespace 'LCompilers::LC'; did you mean 'ASR'?
    LC::AST::expr_t* value;
    ^~~~~~~
    ASR
/Users/czgdp1807/lc_project/lc/src/libasr/../libasr/asr_scopes.h:11:11: note: 'ASR' declared here
namespace ASR {
          ^
In file included from tokenizer.re:4:
In file included from /Users/czgdp1807/lc_project/lc/src/libasr/../lc/parser/tokenizer.h:6:
/Users/czgdp1807/lc_project/lc/src/libasr/../lc/parser/parser_stype.h:14:5: error: no type named 'expr_t' in namespace 'LCompilers::ASR'; did you mean simply 'expr_t'?
    LC::AST::expr_t* value;
    ^~~~~~~~~~~~~~~
    expr_t
/Users/czgdp1807/lc_project/lc/src/libasr/../lc/ast.h:818:8: note: 'expr_t' declared here
struct expr_t // Sum
       ^
In file included from tokenizer.re:4:
In file included from /Users/czgdp1807/lc_project/lc/src/libasr/../lc/parser/tokenizer.h:6:
/Users/czgdp1807/lc_project/lc/src/libasr/../lc/parser/parser_stype.h:18:5: error: no member named 'AST' in namespace 'LCompilers::LC'; did you mean 'ASR'?
    LC::AST::arguments_t arguments;
    ^~~~~~~
    ASR
/Users/czgdp1807/lc_project/lc/src/libasr/../libasr/asr_scopes.h:11:11: note: 'ASR' declared here
namespace ASR {
          ^
In file included from tokenizer.re:4:
In file included from /Users/czgdp1807/lc_project/lc/src/libasr/../lc/parser/tokenizer.h:6:
/Users/czgdp1807/lc_project/lc/src/libasr/../lc/parser/parser_stype.h:18:5: error: no type named 'arguments_t' in namespace 'LCompilers::ASR'; did you mean simply 'arguments_t'?
    LC::AST::arguments_t arguments;
    ^~~~~~~~~~~~~~~~~~~~
    arguments_t
/Users/czgdp1807/lc_project/lc/src/libasr/../lc/ast.h:104:8: note: 'arguments_t' declared here
struct arguments_t // Product
       ^
In file included from tokenizer.re:4:
In file included from /Users/czgdp1807/lc_project/lc/src/libasr/../lc/parser/tokenizer.h:6:
/Users/czgdp1807/lc_project/lc/src/libasr/../lc/parser/parser_stype.h:23:5: error: no member named 'AST' in namespace 'LCompilers::LC'; did you mean 'ASR'?
    LC::AST::arg_t _arg;
    ^~~~~~~
    ASR
/Users/czgdp1807/lc_project/lc/src/libasr/../libasr/asr_scopes.h:11:11: note: 'ASR' declared here
namespace ASR {
          ^
In file included from tokenizer.re:4:
In file included from /Users/czgdp1807/lc_project/lc/src/libasr/../lc/parser/tokenizer.h:6:
/Users/czgdp1807/lc_project/lc/src/libasr/../lc/parser/parser_stype.h:23:5: error: no type named 'arg_t' in namespace 'LCompilers::ASR'; did you mean simply 'arg_t'?
    LC::AST::arg_t _arg;
    ^~~~~~~~~~~~~~
    arg_t
/Users/czgdp1807/lc_project/lc/src/libasr/../lc/ast.h:115:8: note: 'arg_t' declared here
struct arg_t // Product
       ^
In file included from tokenizer.re:4:
In file included from /Users/czgdp1807/lc_project/lc/src/libasr/../lc/parser/tokenizer.h:6:
/Users/czgdp1807/lc_project/lc/src/libasr/../lc/parser/parser_stype.h:24:5: error: no member named 'AST' in namespace 'LCompilers::LC'; did you mean 'ASR'?
    LC::AST::expr_t *defaults;
    ^~~~~~~
    ASR
/Users/czgdp1807/lc_project/lc/src/libasr/../libasr/asr_scopes.h:11:11: note: 'ASR' declared here
namespace ASR {
          ^
In file included from tokenizer.re:4:
In file included from /Users/czgdp1807/lc_project/lc/src/libasr/../lc/parser/tokenizer.h:6:
/Users/czgdp1807/lc_project/lc/src/libasr/../lc/parser/parser_stype.h:24:5: error: no type named 'expr_t' in namespace 'LCompilers::ASR'; did you mean simply 'expr_t'?
    LC::AST::expr_t *defaults;
    ^~~~~~~~~~~~~~~
    expr_t
/Users/czgdp1807/lc_project/lc/src/libasr/../lc/ast.h:818:8: note: 'expr_t' declared here
struct expr_t // Sum
       ^
In file included from tokenizer.re:4:
In file included from /Users/czgdp1807/lc_project/lc/src/libasr/../lc/parser/tokenizer.h:6:
/Users/czgdp1807/lc_project/lc/src/libasr/../lc/parser/parser_stype.h:46:5: error: no member named 'AST' in namespace 'LCompilers::LC'; did you mean 'ASR'?
    LC::AST::expr_t *star_arg;
    ^~~~~~~
    ASR
/Users/czgdp1807/lc_project/lc/src/libasr/../libasr/asr_scopes.h:11:11: note: 'ASR' declared here
namespace ASR {
          ^
In file included from tokenizer.re:4:
In file included from /Users/czgdp1807/lc_project/lc/src/libasr/../lc/parser/tokenizer.h:6:
/Users/czgdp1807/lc_project/lc/src/libasr/../lc/parser/parser_stype.h:46:5: error: no type named 'expr_t' in namespace 'LCompilers::ASR'; did you mean simply 'expr_t'?
    LC::AST::expr_t *star_arg;
    ^~~~~~~~~~~~~~~
    expr_t
/Users/czgdp1807/lc_project/lc/src/libasr/../lc/ast.h:818:8: note: 'expr_t' declared here
struct expr_t // Sum
       ^
In file included from tokenizer.re:4:
In file included from /Users/czgdp1807/lc_project/lc/src/libasr/../lc/parser/tokenizer.h:6:
/Users/czgdp1807/lc_project/lc/src/libasr/../lc/parser/parser_stype.h:47:5: error: no member named 'AST' in namespace 'LCompilers::LC'; did you mean 'ASR'?
    LC::AST::keyword_t *kw_arg;
    ^~~~~~~
    ASR
/Users/czgdp1807/lc_project/lc/src/libasr/../libasr/asr_scopes.h:11:11: note: 'ASR' declared here
namespace ASR {
          ^
In file included from tokenizer.re:4:
In file included from /Users/czgdp1807/lc_project/lc/src/libasr/../lc/parser/tokenizer.h:6:
/Users/czgdp1807/lc_project/lc/src/libasr/../lc/parser/parser_stype.h:47:5: error: no type named 'keyword_t' in namespace 'LCompilers::ASR'; did you mean simply 'keyword_t'?
    LC::AST::keyword_t *kw_arg;
    ^~~~~~~~~~~~~~~~~~
    keyword_t
/Users/czgdp1807/lc_project/lc/src/libasr/../lc/ast.h:122:8: note: 'keyword_t' declared here
struct keyword_t // Product
       ^
In file included from tokenizer.re:4:
In file included from /Users/czgdp1807/lc_project/lc/src/libasr/../lc/parser/tokenizer.h:6:
/Users/czgdp1807/lc_project/lc/src/libasr/../lc/parser/parser_stype.h:51:9: error: no member named 'AST' in namespace 'LCompilers::LC'; did you mean 'ASR'?
    Vec<LC::AST::expr_t*> expr;
        ^~~~~~~
        ASR
/Users/czgdp1807/lc_project/lc/src/libasr/../libasr/asr_scopes.h:11:11: note: 'ASR' declared here
namespace ASR {
          ^
In file included from tokenizer.re:4:
In file included from /Users/czgdp1807/lc_project/lc/src/libasr/../lc/parser/tokenizer.h:6:
/Users/czgdp1807/lc_project/lc/src/libasr/../lc/parser/parser_stype.h:51:25: error: expected expression
    Vec<LC::AST::expr_t*> expr;
                        ^
/Users/czgdp1807/lc_project/lc/src/libasr/../lc/parser/parser_stype.h:51:18: error: no member named 'expr_t' in namespace 'LCompilers::ASR'
    Vec<LC::AST::expr_t*> expr;
        ~~~~~~~~~^
/Users/czgdp1807/lc_project/lc/src/libasr/../lc/parser/parser_stype.h:52:9: error: no member named 'AST' in namespace 'LCompilers::LC'; did you mean 'ASR'?
    Vec<LC::AST::keyword_t> kw;
        ^~~~~~~
        ASR
/Users/czgdp1807/lc_project/lc/src/libasr/../libasr/asr_scopes.h:11:11: note: 'ASR' declared here
namespace ASR {
          ^
In file included from tokenizer.re:4:
In file included from /Users/czgdp1807/lc_project/lc/src/libasr/../lc/parser/tokenizer.h:6:
/Users/czgdp1807/lc_project/lc/src/libasr/../lc/parser/parser_stype.h:52:18: error: no member named 'keyword_t' in namespace 'LCompilers::ASR'
    Vec<LC::AST::keyword_t> kw;
        ~~~~~~~~~^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [src/lc/CMakeFiles/lc_lib.dir/build.make:76: src/lc/CMakeFiles/lc_lib.dir/parser/tokenizer.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:306: src/lc/CMakeFiles/lc_lib.dir/all] Error 2
make: *** [Makefile:146: all] Error 2

@czgdp1807 czgdp1807 force-pushed the sync_libasr branch 5 times, most recently from b60519e to bdaa4dd Compare March 27, 2024 15:33
@czgdp1807 czgdp1807 marked this pull request as ready for review March 27, 2024 17:56
@czgdp1807 czgdp1807 enabled auto-merge March 27, 2024 17:56
@czgdp1807 czgdp1807 merged commit 522277d into lcompilers:main Mar 27, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant