lcompilers / lc

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

Initial parser implementation #74

Closed certik closed 7 months ago

certik commented 7 months ago

The parser and AST was taken from LPython. In subsequent commits we will start modifying it to parse C++.

certik commented 7 months ago

TODO: get --show-ast working.

certik commented 7 months ago

@czgdp1807, @Shaikh-Ubaid I don't have time to completely finish it. Go ahead and take it from here, if this is good enough, you can merge it. We need to get --show-ast working and then start modifying the parser to parse C++ instead of Python. I would not bother with AST->ASR until we can parse enough of AST. So it's an orthogonal feature for now.