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 thisPosted: 13 years ago by Arjen Kopinga
A Uri parser using the Cashel library [1]. This implementation is using ArraySegment
Posted: 13 years ago by Ryan Riley
The snippet shows a parser for command-line arguments supporting value lists for single commands. Calling with the following arguments: "Arg 1" "Arg 2" -test "Case 1" "Case 2" -show -skip "tag" produces the following map: map [("", seq ["Arg 1"; "Arg 2"]); ("show", seq []); ("skip", seq ["tag"]);("test", seq ["Case 1"; "Case 2"])] which can be used to find what data have been sent along with different commands. Calling with the following: "Arg 1" "Arg 2" /test="Case 1" "Case 2" --show /skip:tag produces the same result.
6 people like thisPosted: 13 years ago by Gennady Loskutov
JSON parsing with monads. See also "Expression parsing with monads" (http://fssnip.net/bi). Author URL: http://www.zbray.com
8 people like thisPosted: 12 years ago by Zach Bray
This uses fparsec to parse locale files of hte form Id = text {arg:type} = newline = newlne For use with localization.
1 people like thisPosted: 11 years ago by devshorts
File parsing, based on multiple lines, using recursive pattern matching with many :: (cons) operator
2 people like thisPosted: 11 years ago by Tuomas Hietanen
Log file parser for log4Net files
3 people like thisPosted: 11 years ago by Tuomas Hietanen
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 thisPosted: 10 years ago by Joe C
Parsers a minimal expression tree allowing for functions of the form "func(arg1,arg2,...)->{body}"
5 people like thisPosted: 7 years ago by devshorts
Small Basic abstract syntax tree, parser and interpreter. Supports Small Basic's keywords and arithmetic, logical and comparison operators.
8 people like thisPosted: 6 years ago by Phillip Trelford
Like FParsec's pint32, but accepts only optionally-signed base-10 input
1 people like thisPosted: 5 years ago by Mark Laws
Exemplary convenience wrappers for some of the System.
Posted: 5 years ago by Novox
Inspired by https://10print.org, this is a small incomplete BASIC interpreter that can generate a maze.
5 people like thisPosted: 4 years ago by Tomas Petricek
Find binding-redirects with linq-to-xml from a .config file. This might be useful for then parsing config-changes e.g. by System.Linq.Enumerable.Except
4 people like thisPosted: 1 year ago by Tuomas Hietanen
Splits strings lazily, instead of splitting entire string into an array like System.String.Split. Especially useful for very large strings.
7 people like thisPosted: 13 years ago by Daniel Robinson
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
21 people like thisPosted: 13 years ago by Wolfgang Meyer
This script facilitates to load all the .fs files in the specified F# project in correct compilation order.
5 people like thisPosted: 12 years ago by nagat01
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)
6 people like thisPosted: 12 years ago by nagat01
A bit more functional version of this: http://fssnip.net/iR
2 people like thisPosted: 11 years ago by @kot_2010
A minimalist XML Parser
11 people like thisPosted: 11 years ago by Fabio Galuppo
See: http://codingdojo.org/cgi-bin/wiki.pl?KataBankOCR Prog. F# 2013 - London
2 people like thisPosted: 11 years ago by Zach Bray
This is a simple four function calculator using FParsec. It would be easy to replace the FParsec combinators with simple parsing combinators to produce the same results, but without the nice error messages produced by FParsec.
2 people like thisPosted: 9 years ago by Vesa Karvonen
Converts the string representation of a number in-place to an Int32. A return value of None indicates the conversion failed.
4 people like thisPosted: 7 years ago by Phillip Trelford
Identify user's browser, Os and device by the browser's UserAgent string.
3 people like thisPosted: 5 years ago by Tuomas Hietanen
Calculate triangle numbers in the most inefficient way possible!
4 people like thisPosted: 5 years ago by Brian Berns
Simple prototype C# AST and parser using the FParsec parser combinator library. Parses a subset of C# 1.1 constructs.
8 people like thisPosted: 4 years ago by Phillip Trelford
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.
0 people like thisPosted: 3 years ago by devshorts
High-performance JSON parsing with System.Text.Json and F#
1 people like thisPosted: 11 months ago by Tuomas Hietanen