Tiny Parser Generator

  • 5 Replies
  • 4721 Views
*

Freddy

  • Administrator
  • **********************
  • Colossus
  • *
  • 6855
  • 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
  • *
  • 1723
    • mind-child
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:

*

ivan.moony

  • Trusty Member
  • ************
  • Bishop
  • *
  • 1723
    • mind-child
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 :)

*

Freddy

  • Administrator
  • **********************
  • Colossus
  • *
  • 6855
  • 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
  • *
  • 6855
  • Mostly Harmless
Re: Tiny Parser Generator
« Reply #5 on: April 09, 2015, 12:36:15 pm »
Thank you  :)

 


OpenAI Speech-to-Speech Reasoning Demo
by ivan.moony (AI News )
Today at 01:31:53 pm
Say good-bye to GPUs...
by MikeB (AI News )
March 23, 2024, 09:23:52 am
Google Bard report
by ivan.moony (AI News )
February 14, 2024, 04:42:23 pm
Elon Musk's xAI Grok Chatbot
by MikeB (AI News )
December 11, 2023, 06:26:33 am
Nvidia Hype
by 8pla.net (AI News )
December 06, 2023, 10:04:52 pm
How will the OpenAI CEO being Fired affect ChatGPT?
by 8pla.net (AI News )
December 06, 2023, 09:54:25 pm
Independent AI sovereignties
by WriterOfMinds (AI News )
November 08, 2023, 04:51:21 am
LLaMA2 Meta's chatbot released
by 8pla.net (AI News )
October 18, 2023, 11:41:21 pm

Users Online

275 Guests, 0 Users

Most Online Today: 346. Most Online Ever: 2369 (November 21, 2020, 04:08:13 pm)

Articles