Skip to content

Assortment of small programs such as a regex implementation

Notifications You must be signed in to change notification settings

jt1796/small-programs

Repository files navigation

Small Programs

regex.gvy

Regex implementation. Has matching groups and backreferences. These features are not possible with a typical simple DFA implementation.

textgen.gvy

Simple sentence generator. Reads text from file, and generates similar-ish text. Can sometimes give humorous sentences.

poker.gvy

Computes distribution of hands (straight flush etc).

json.gvy

Handwritten json parser. Builds tree representation of json.

deriv.gvy

Function that computes derivatives of functions. Produces a plot of original function and deriv, printed to stdout. Zoom out terminal to get a good plot.

diff.gvy

Takes two strings A and B and returns a "patch" that can transform A into B.

rpn.gvy

Postifx notation calculator. Example: 2 2 + 2 * == 8

du.gvy

Somewhat of a du replacement. Outputs how much disk usage is occupied by a given depth of subdirectories

About

Assortment of small programs such as a regex implementation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages