sbip-sg / solang

Solidity Compiler for Solana, Substrate, and ewasm
https://solang.readthedocs.io/en/latest/
Apache License 2.0
0 stars 1 forks source link

Modify solang-parser to support Solidity 0.4 #2

Open taquangtrung opened 2 years ago

taquangtrung commented 2 years ago

We can start to implement the support for Solidity 0.4 into this crate: https://github.com/sbip-sg/solang/tree/solang-sbip/solang-parser-v0.4

thanhtoantnt commented 2 years ago

Note: solang uses the lalrpop parser (https://github.com/lalrpop/lalrpop).

thanhtoantnt commented 2 years ago

@taquangtrung, I try to change some features in 0.4.x to work with the current solang. However, I run into the abstract contracts. Currently, it is required to add the keyword abstract to specify an abstract contract. Hence, it is really hard to differentiate these abstract contracts in 0.4.x and handle them.