Experiments with syntax and symbols. The code in syntax.hs
removes the symbols from various kinds of text.
For more explanation, see post.md
.
This is a WIP! As you can see, the Haskell code is very simple. I'd like to write a PDF parser for math later.
Usage:
./syntax [your filenames here, multiple allowed]
If you change syntax.hs
, recompile it with a Haskell compiler, e.g. ghc syntax.hs
. I use the Haskell platform for Mac OS X.
Credit for original text, in public domain or used under fair use:
- evolution.lisp, "Land of Lisp"
- frankenstein.txt, "Frankenstein" by Mary Shelley, Project Gutenberg
- whydoi.txt, "'Why do I love' You, Sir?" by Emily Dickinson, Hello Poetry
- final-p3.tex (not included), some math I LaTeXed
- First page of "Uncut" by Chelsey Minnis
Syntaxified files are preceded by syntax-
.