Solidity Parsing Using SmaCC: Challenges and Irregularities - Inria - Institut national de recherche en sciences et technologies du numérique Access content directly
Conference Papers Year :

Solidity Parsing Using SmaCC: Challenges and Irregularities


Solidity is a language used to implement smart contracts on a blockchain platform. Since its initial conception in 2014, Solidity has evolved into one of the major languages for the Ethereum platform as well as other blockchain technologies. Due to its popularity, there are many tools specifically designed to handle smart contracts written in Solidity. However , there is a lack of tools for Pharo to handle Solidity contracts. Therefore, we implemented a parser using SmaCC to serve as a base for further developing Solidity support in Pharo. In this paper we describe the parser creation, the irregularities we found in the Solidity grammar specification, and common practices on how to adapt the grammar to an LR type parser. Our experiences with parsing the Solidity language using SmaCC may help other developers trying to convert similar grammars.
Fichier principal
Vignette du fichier
Roch17a-IWST-SolidityParser.pdf (258.81 Ko) Télécharger le fichier
Origin : Files produced by the author(s)

Dates and versions

hal-01651858 , version 1 (29-11-2017)



Henrique S C Rocha, Stéphane Ducasse, Marcus Denker, Jason Lecerf. Solidity Parsing Using SmaCC: Challenges and Irregularities. Proceedings of the 12th Edition of the International Workshop on Smalltalk Technologies, Sep 2017, Maribor, Slovenia. pp.2:1--2:9, ⟨10.1145/3139903.3139906⟩. ⟨hal-01651858⟩
574 View
1293 Download



Gmail Facebook Twitter LinkedIn More