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.
- Host: GitHub
- URL: https://github.com/evuez/godc
- Owner: evuez
- License: mit
- Created: 2018-01-14T17:09:20.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2022-11-26T17:51:34.000Z (over 3 years ago)
- Last Synced: 2024-10-19T17:29:55.376Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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