September 11, 2026

Capitalizations Index – B ∞/21M

an Smart Contract Programming Language for Ethereum: Introduction

an Smart Contract Programming Language for Ethereum: Introduction

After writing gelex (generic lexer), geast (generic Abstract Syntax Tree) and gepars (generic parser), using JavaScript as implementation language, I started to use these projects to design and build a simple programming language compiler: selang. As usual, I’m using TDD (Test-Driven Development) as code workflow. It helps me to follow KISS (keep-it-simple-stuped), baby steps, and emergent design.

The target of compilation is the Ethereum Virtual Machine. The process of compilation is:

Current implementation is still incomplete, but a sample with code, compilation, deploy and invocation is here.

The code of the simple contract is

contract Counter 

public void increment()

public void add(uint value)
}

You can compile the code with

node compile

And you can compile, deploy to http://localhost:8545 (usually a ganache-cli node instance), and invoke it, executing:

node deploy

The only type supported is uint (unsigned 32 bytes integer). Next steps:

  • Support for other numeric types
  • Support for static and dynamic arrays (a bit challenging, memory management with bytecodes)
  • Support for strings (another challenge: using keccak256 hash functions to allocate dynamically the string in 32-bytes storage cells)
  • Constructor code (it’s code that is used only once, and should be compiled in different ways)
  • Inheritance

Related posts:

Angel “Java” Lopez
https://github.com/ajlopez
https://twitter.com/ajlopez

Published at Tue, 21 May 2019 15:21:17 +0000

Previous Article

Watch 10 Essential Talks from Ethereal Summit NY 2019

Next Article

Boeing Bounces After Kamikaze Bird Rumor Bolsters Key Dow Stock

You might be interested in …

The Tatiana Show – Cally Ulbricht, Nena Whitfield of Ladies of Liberty Alliance & Julie Borowski

Tatiana interviews Cally Ulbricht of Beautycounter, Nena Whitfield of Ladies of Liberty Alliance, and Julie Borowski!

Topics Include:

–“BeautyCounter Products and the Silk Road Case”

–“Ladies of Liberty”

–“Free Speech”

–“Concerns with Libertarians Going to the Alt-Right”

About the Guests:

-Cally Ulbricht is with Beautycounter. Beautycounter creates safer and effective skin care and cosmetics for women and families. They meticulously screen their ingredients for safety, and stand on transparency of their products. Cally is also the sister of Ross Ulbricht.

-The Ladies of Liberty Alliance is a network of independent, libertarian women leaders who, through their careers and/or personal endeavors, are dedicated to spreading the ideas of individual liberty and free markets. Participation in the Ladies of Liberty Alliance is open to any female who identifies with, or is wishing to explore, libertarian ideas.

-Julie Borowski is a political commentator living in the D.C. area. She is best known for her YouTube channel where she discusses current events in an entertaining way. Her videos have over 8 million views. She won CPAC’s Blogbash Video of the Year in 2014 for her video debunking ObamaCare. She was also rewarded Tea Party Blogger of the Year at CPAC 2013 after creating a viral video.

More Info:

https://www.TatianaMoroz.com

https://www.CryptoMediaHub.com

https://www.Vaultoro.com/?a=100068

http://www.LadiesOfLiberty.org

http://www.JulieBorowski.com

http://www.BeautyCounter.com/TatianaMoroz

Friends and Sponsors of the Show:

https://www.TheBitcoinCPA.com/

https://www.CryptoCompare.com/

https://www.FreeRoss.org

https://www.ThirdKey.Solutions/

http://www.SovrynTech.com

http://www.SexAndScienceHour.com

https://www.Netki.com

https://www.Vaultoro.com

http://www.CryptoMediaHub.com

https://www.LibertyCraze.com/

http://www.BeautyCounter.com/TatianaMoroz