What is TinyPG and how does it work? I know its a "compiler-compiler" but how do I get started and create my own compiler in C#?
I've understood approximately how you use it, and here's a brief.
TinyPG is a complete compiler-compiler IDE, with a Windows GUI for RegExp, EBNF and C#/VB. The following outlines the procedure of developing your own "compiler" within TinyPG:
You define Terminals using Regular Expressions.
You define Non-terminals and parser rules in Extended BNF meta-syntax.
You define the compiler in Managed code.
TinyPG generates C# code for your new "compiler".
You develop the front-end of your compiler in C# or VB.NET.
To begin, you can open the "simple expression2.tpg" file within the provided Samples of TinyPG to see a demo of a calculator "compiler".
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.