Ai Dreams Forum

Software & Hardware => General Software Talk => Topic started by: Freddy on April 08, 2015, 10:10:42 pm

Title: Tiny Parser Generator
Post by: Freddy on April 08, 2015, 10:10:42 pm
I'm working on a simple new scripting language and this is a tool I found useful. Thought I would drop this in here for future reference.

Quote
@TinyPG stands for "a Tiny Parser Generator". This particular generator is an LL(1) recursive descent parser generator. This means that instead of generating a state machine out of a grammar like most compiler compilers, it will generate source code directly; basically generating a method for each non-terminal in the grammar. Terminals are expressed using .NET's powerful Regular Expressions. To help the programmer create .NET Regular Expressions, a Regular Expression (Regex) tool is embedded in TinyPG. Grammars can be written using the extended BNF notation.

TinyGP v1.2 now allows you to generate a scanner, parser, and parsetree file in either C# or VB code(!). These can be compiled directly into your own projects. Additionally, now it is possible to generate code for your own text highlighter which you can use directly in your own text editor project.

http://www.codeproject.com/Articles/28294/a-Tiny-Parser-Generator-v (http://www.codeproject.com/Articles/28294/a-Tiny-Parser-Generator-v)
Title: Re: Tiny Parser Generator
Post by: ivan.moony on April 08, 2015, 10:42:18 pm
Finally :)

I was waiting for any of You, chatbot gurus to start developing your own AI language. I knew that that day will come.

Good luck. :clue: :emot-sissies: :weee:
Title: Re: Tiny Parser Generator
Post by: ivan.moony on April 08, 2015, 10:45:30 pm
P.S.

If anyone want to try developing a language for web, you are welcome to use: http://parser.moonyweb.com/ (http://parser.moonyweb.com/)

It is free, no hidden catch, no strings attached :)
Title: Re: Tiny Parser Generator
Post by: Freddy on April 08, 2015, 10:50:49 pm
Haha, yes it's about time I did. I keep getting ideas of what to include. I'm just roughing it out at the moment.

I'm still getting to grips with this parser, so much to learn.
Title: Re: Tiny Parser Generator
Post by: Data on April 09, 2015, 12:29:37 pm
Nice idea.  O0

You can do this Freddy, best of luck  :)
Title: Re: Tiny Parser Generator
Post by: Freddy on April 09, 2015, 12:36:15 pm
Thank you  :)