Snippets tagged parser

  • Spreadsheet

    Spreadsheet script runnable inside http://tryfsharp.org includes a custom DataGrid and a parser for simple formulas e.g.: =1+1 =SUM(A1,A2) Add your own functions to the evaluate function. For a more comprehensive implementation check out http://cellz.codeplex.com

    6 people like this

    Posted: 6 years ago by Phillip Trelford

  • Toml parser (untyped)

    Untyped version of toml parser. The lines of code was reduced 173 to 45. It's based on some implementations in other languages (https://github.com/mojombo/toml#implementations). I was surprised that even a parser written in Objctive-c was simpler than mine (http://fssnip.net/jd). Then I read some others code and found that removing types which describes toml values simplifies the implementation. The code may seem little crazy, but I'm fine :)

    0 people like this

    Posted: 3 years ago by nagat01

  • Finite State Machine Compiler

    Based on Uncle Bob's State Machine Compiler for Clean Code video series, parser implemented with FParsec, see https://github.com/unclebob/CC_SMC for Uncle Bob's Java implementation.

    6 people like this

    Posted: 2 years ago by Phillip Trelford

  • Csv Type Provider Schema Parser

    Parses the schema string format used by the CSV Type Provider from the FSharp.Data library ...because sometimes you need the metadata.

    4 people like this

    Posted: 1 years ago by Faisal Waris