Solidity Docu:
Source:
- Grammar (Parser) @ https://github.com/ethereum/solidity/blob/develop/docs/grammar/SolidityParser.g4
- Grammar (Lexer) @ https://github.com/ethereum/solidity/blob/develop/docs/grammar/SolidityLexer.g4
SolGrep - A scriptable semantic grep utility for solidity
- Source @ https://github.com/tintinweb/solgrep
- Package @ https://www.npmjs.com/package/solgrep
Solidity Parser for JavaScript - A Solidity parser for JS built on top of a robust ANTLR4 grammar
- Source @ https://github.com/solidity-parser/parser
- Package @ https://www.npmjs.com/package/@solidity-parser/parser
Solidity Language Grammar - The ANTLR (ANother Tool for Language Recognition) grammar for Solidity
- Source @ https://github.com/solidity-parser/antlr
- Grammar @ https://github.com/solidity-parser/antlr/blob/master/Solidity.g4
example on lexer with stringscanner see https://blog.appsignal.com/2019/07/02/ruby-magic-brewing-our-own-template-lexer-in-ruby.html
https://github.com/veox/pygments-lexer-solidity/blob/mistress/pygments_lexer_solidity/lexer.py https://github.com/veox/pygments-lexer-solidity/blob/mistress/example.sol https://github.com/veox/pygments-lexer-solidity/blob/mistress/example.yul
https://github.com/frangio/solidity-lexer https://github.com/frangio/solidity-lexer/blob/master/regex/normal