Skip to content
A minimalistic implementation of Chomsky's generative grammar
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Examples
MB.TinyGrammar.ConsoleApplication
MB.TinyGrammar.Core.Test
MB.TinyGrammar.Core
.gitattributes
.gitignore
LICENSE
MB.TinyGrammar.sln
README.md

README.md

TinyGrammar

TinyGrammar is a minimalistic implementation of Chomsky's generative grammar.

The generator creates random sentences starting from a grammar definition; it can be used as a library or via command line.

Grammar rules can be added programmaticaly or stored on a text file in a very intuitive format - here's an example.

Live examples

I used TinyGrammar for two generators, you can try them on my site:

Both grammar definitions are included in the Examples folder.

Environment

  • .NET Framework / C#
  • XUnit
  • No external dependencies

License

GNU GENERAL PUBLIC LICENSE V 3

Copyright (C) Massimo Barbieri

You can’t perform that action at this time.