Skip to content

solidity-parser/antlr

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solidity Language Grammar

The ANTLR (ANother Tool for Language Recognition) grammar for Solidity is maintained in Solidity.g4.

This is a fork of (@federicobond)'s original repo, with some extra features taken from Consensys Diligence's alternative fork.

Build

Run build.sh to download the ANTLR jar file and compile the Solidity.g4 file. The build will output the Java classes to the src folder and compiled Java classes to the target folder. The ANTLR tokens used by the Java parser are in the src folder.

Tests

Run run-tests.sh to parse test.sol.

Used By

License

MIT

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 58.3%
  • ANTLR 37.9%
  • Shell 3.8%