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

More parse errors #21

Closed
drandreaskrueger opened this issue Jun 19, 2018 · 2 comments
Closed

More parse errors #21

drandreaskrueger opened this issue Jun 19, 2018 · 2 comments

Comments

@drandreaskrueger
Copy link

drandreaskrueger commented Jun 19, 2018

Hey!
Kudos again, a very useful tool.

I want to get an overview of this set of contracts.

From 10 *.sol files I could make nonempty PNG images, but ~ 7 are throwing Parse errors.

what to do?

how to replicate:

get all 20 contracts:

git clone https://github.com/energywebfoundation/bond.git
cd bond
git checkout ricmm-work-multicon-resin
git pull
cd bond/certificate_of_origin/contracts/

create a little helper, called solgrapher.sh:

solgraph $1 > $1.dot && dot -Tpng $1.dot > $1.dot.png && echo success: $1.dot.png
rm $1.dot

make executable

chmod 755 solgrapher.sh

call on all .sol files:

find . -name "*.sol" -exec ./solgrapher.sh {} \;
@raineorshine
Copy link
Owner

There are a lot of parse errors now because of the outdated solidity parser. This is being actively worked on. Let's check this again after that is fixed.

@raineorshine raineorshine changed the title some Parse errors Parse errors Jun 19, 2018
@raineorshine raineorshine changed the title Parse errors More parse errors Jun 24, 2018
@raineorshine
Copy link
Owner

The ricmm-work-multicon-resin branch does not exist on https://github.com/energywebfoundation/bond.git, but I assume the issues are fixed with the new parser! Please post a new issue with the specific parser error (or directly to solidity-parser) if an issue still exists. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants