Skip to content

A set of operators for FParsec (http://www.quanttec.com/fparsec/) intended to simplify chaining parsers together.

License

Notifications You must be signed in to change notification settings

rkosafo/FParsec-Pipes

 
 

Repository files navigation

FParsec-Pipes

This library is an extension to the FParsec library (http://www.quanttec.com/fparsec/).

Please see the project page or read the intro.

FParsec-Pipes does not define new parsers. Instead, its goal is to make it easier and more readable to define your own parsers.

Why should I care? Show me some code I can write with this.

let pdatetime =
    let digits (count : int) = %% +.(qty.[count] * digit) -|> (String >> Int32.Parse)
    %% +.digits 4 -- '-' -- +.digits 2 -- '-' -- +.digits 2 -- 'T'
    -- +.digits 2 -- ':' -- +.digits 2 -- ':' -- +.digits 2
    -|> fun yyyy mm dd h m s ->
        new DateTime(yyyy, mm, dd, h, m, s)

About

A set of operators for FParsec (http://www.quanttec.com/fparsec/) intended to simplify chaining parsers together.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • F# 60.5%
  • HTML 36.5%
  • CSS 2.4%
  • Other 0.6%