Skip to content

A minimalistic implementation of Chomsky's generative grammar

License

Notifications You must be signed in to change notification settings

mmontesi/Tiny-Grammar

 
 

Repository files navigation

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

About

A minimalistic implementation of Chomsky's generative grammar

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%