lcompilers / lc

C++ compiler
MIT License
26 stars 7 forks source link

Sync ``libasr`` with LFortran/LPython #117

Closed czgdp1807 closed 5 months ago

czgdp1807 commented 5 months ago

@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