solidity-railroad-grammar

Solidity Grammar Railroad diagrams from the ANTLR4

Usage no npm install needed!

<script type="module">
  import solidityRailroadGrammar from 'https://cdn.skypack.dev/solidity-railroad-grammar';
</script>

README

Solidity ANTLR4 RailRoad Diagrams (RRD)

Overview

This is the output generated from the antlr4-rrd tool available here: https://github.com/bkiers/rrd-antlr4

EBNF

Conversion from ANTLR4 to EBNF includes:

  • Direct recursion elimination
  • Inline single-string nonterminals
  • Keep references to epsilon-only nonterminals

Files

.ebnf is the raw grammar

.rrd.ebnf is slightly modified for better rendering

License

MIT/ISC

Solidity.g4 ANTRL4 Grammar is MIT