Tiny Parser Generator

  • 5 Replies
  • 4062 Views
*

Freddy

  • Administrator
  • **********************
  • Colossus
  • *
  • 6832
  • Mostly Harmless
Tiny Parser Generator
« 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

*

ivan.moony

  • Trusty Member
  • ************
  • Bishop
  • *
  • 1604
    • contrast-zone
Re: Tiny Parser Generator
« Reply #1 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:
There exist some rules interwoven within this world. As much as it is a blessing, so much it is a curse.

*

ivan.moony

  • Trusty Member
  • ************
  • Bishop
  • *
  • 1604
    • contrast-zone
Re: Tiny Parser Generator
« Reply #2 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/

It is free, no hidden catch, no strings attached :)
There exist some rules interwoven within this world. As much as it is a blessing, so much it is a curse.

*

Freddy

  • Administrator
  • **********************
  • Colossus
  • *
  • 6832
  • Mostly Harmless
Re: Tiny Parser Generator
« Reply #3 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.

*

Data

  • Trusty Member
  • ***********
  • Eve
  • *
  • 1279
  • Overclocked // Undervolted
    • Datahopa - Share your thoughts ideas and creations
Re: Tiny Parser Generator
« Reply #4 on: April 09, 2015, 12:29:37 pm »
Nice idea.  O0

You can do this Freddy, best of luck  :)

*

Freddy

  • Administrator
  • **********************
  • Colossus
  • *
  • 6832
  • Mostly Harmless
Re: Tiny Parser Generator
« Reply #5 on: April 09, 2015, 12:36:15 pm »
Thank you  :)