Tool for easily generating HTML assembled from a template off of org mode files
The function `blorg-gen` takes a pattern that matches file names and apply a template to generate one HTML for each Org file yielded by the search.
// This is an extremely fun exercise and I could have probably | |
// used something way simpler than this. But I love parsing <3 | |
// For this lil calculator, I used a few mutually recursive | |
// functions aided by two very simple operations (or, star). It | |
// is an extremely simplified version of how Parsing Expression | |
// Grammars (PEG) work. | |
// Here's how it'd read in plain PEG | |
// Expr <- _ Term |
package main | |
import ( | |
"fmt" | |
"os" | |
"github.com/prometheus/prometheus/promql/parser" | |
) | |
func main() { |