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
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.