Snippets tagged parsing

  • Parsing string expressions, the lazy way

    Sometimes you'd be surprised at what functionality you can find inside the .Net framework. Apparently the DataTable object can compute string expressions. Nice for testing your own parser implementation, and/or for lazy coders like me. Note that the DataTable is created only once and reused with each function call.

    34 people like this

    Posted: 6 years ago by Arjen Kopinga

  • Uri Parser

    A Uri parser using the Cashel library [1]. This implementation is using ArraySegment as the underlying state, as I'm using it within a server, but it would be trivial to switch it to using a list. Also, note that I am not parsing the Uri into any specific structure, though that, too, would be trivial. For my current purposes, I just needed to validate the Uri. [1] https://github.com/panesofglass/cashel

    26 people like this

    Posted: 6 years ago by Ryan Riley

  • sscanf - parsing with format strings

    A more complete version of sscanf, as proposed on stackoverflow by kvb: http://stackoverflow.com/questions/2415705/read-from-console-in-f Fixed bug in previous version to work with visual studio '13

    17 people like this

    Posted: 6 years ago by Wolfgang Meyer

  • Loading .fs files

    This script facilitates to load all the .fs files in the specified F# project in correct compilation order.

    4 people like this

    Posted: 5 years ago by nagat01

  • Speech Stackoverflow article automatically

    This snippet automatically speeches text of question,answers and comments in a Stackoverflow article. It requires HtmlAgilityPack(available from Nuget package manager).(Attention: You need reset F# interactive to stop the speech)

    5 people like this

    Posted: 5 years ago by nagat01

  • Extract script blocks from html page

    This module extracts all the blocks out of an html page's header. This can be useful if you are writing tools to merge all the js for future minifaction, or for otherwise manipulating the files.

    4 people like this

    Posted: 3 years ago by devshorts

  • Log file parsing

    File parsing, based on multiple lines, using recursive pattern matching with many :: (cons) operator

    2 people like this

    Posted: 3 years ago by Tuomas Hietanen

  • Log file parser for log4Net files

    Log file parser for log4Net files

    3 people like this

    Posted: 3 years ago by Tuomas Hietanen

  • Small Basic Parser

    Small Basic abstract syntax tree, parser and interpreter. Supports Small Basic's keywords and arithmetic, logical and comparison operators.

    9 people like this

    Posted: 3 years ago by Phillip Trelford

  • A Simple Parser

    This is a basic parser that I wrote which takes heavily from the examples in Dom Syme's Expert F# book and http://fsharpforfunandprofit.com/posts/pattern-matching-command-line/

    3 people like this

    Posted: 2 years ago by Joe C

  • Simple AST parser

    Parsers a minimal expression tree allowing for functions of the form "func(arg1,arg2,...)->{body}"

    2 people like this

    Posted: 3 months ago by devshorts