Close

Language Design

A project log for CDL - Circuit Description Language

An improved hardware description language.

reed-fosterReed Foster 01/05/2018 at 04:400 Comments

Once I got the lexer and parser working for my logical expression grammar, I decided to work on designing the grammar for my own language. Before I wrote a formal specification in Backus-Naur Form of my language, I sketched out some source code in the form of example design units in order to get a feel for what I wanted in terms of syntax and code structure. I then began to write the BNF grammar using the sample source code for reference.

Discussions