Sunday, May 1, 2011

ANTLR parser and tree grammar for my simple language

Here is some work I've done recenly: it is ANTLR parser and tree grammar for simple imperative (C-Ada-Pascal-or-whatever)-like programming language. You can find grammars on stackoverflow in antlr-parser-and-tree-grammars-for-one-simple-language topic. 

Next, I am planning to add code generator for this, that will emit Common Intermediate Language. So the source code will compile to CIL.

The Common Intermediate Language (also known as Microsoft Intermediate Language, or MSIL) is an intermediate representation developed by Microsoft, to be the core language of .Net platform. All the .Net languages such as C#, VB.NET or VC++ are compiled to CIL which is the only language accepted by the Common Language Runtime (CLR) of .Net.

Feel free for any suggestions about grammars.

Vladimir

1 comment: