UpstandingHackers / hammer

Parser combinators for binary formats, in C. Yes, in C. What? Don't look at me like that.
GNU General Public License v2.0
430 stars 40 forks source link

Algebraic Generating Functions from parser #131

Closed michiexile closed 9 years ago

michiexile commented 9 years ago

So here's a sketch in an example-file for how to generate the Generating Functions Equations from a parser out of the parser internals. The resulting output should be easy to (re)format so that it fits into Maple, Singular or Sage for Gröbner basis solutions that then lead to explicit generating functions for the language of that parser.

These generating functions can then later be used to e.g. determine # valid strings of a certain length, or asymptotic growth of the language.