An open API service indexing awesome lists of open source software.

https://github.com/evuez/godc

A dumb "dc" parser.
https://github.com/evuez/godc

Last synced: about 1 year ago
JSON representation

A dumb "dc" parser.

Awesome Lists containing this project

README

          

# godc

A "dc" parser.

I read [this nice article](https://eklitzke.org/summing-integer-ranges-with-dc) on summing integer ranges with [dc](https://en.wikipedia.org/wiki/Dc_(computer_program)) and thought it'd be fun to implement an interpreter for the language. Except, lazy as I am I didn't want to read the spec so my implementation is solely based on this article (and I didn't actually test if it'd work with anything else than `36[d1-d1