Skip to content

a haskellified version of the classic sed unix tool

License

Notifications You must be signed in to change notification settings

tcdl-univ/parsed

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

parsed

Parsed (pronounced par-séd) is a suite of shell scripts to simplify parsing from the Unix shell. It improves the classic sed program by incorporating ideas from Haskell's popular parsec library. In particular, the Unix pipe operator | corresponds exactly to Haskell's Applicative bind *>. The resulting syntax is both intuitive and powerful. The original syntax used by sed can match only regular languages; but our improved syntax can match any context sensitive language.

For example, the following one liner creates a parser for matching balanced parenthesis.

$ parens() { choice "$1" "match '(' | parens \"$1\" | match ')'"; }

For more examples and a detailed tutorial, please see our SIGBOVIK2015 paper.

About

a haskellified version of the classic sed unix tool

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TeX 98.4%
  • Shell 1.6%