DEV Community

Discussion on: Creating a new programming language

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀

Hey, I notice the code snippet has inconsistent spacing between : and assignments and types, it's harder to follow the syntax. I think you are in need of a style guide at this point. On the bright side I can see the mistakes having never seen this language beforehand, that's a good sign. Congratulations, I am also on the same quest. How did you handle grammer?

Collapse
 
mcsh profile image
Sajjad Heydari

The code is all on the github. The grammar is defined in bison syntax in parser.y! You can look at it there