A domain specific language for creating layout using Windows Forms. The snippet implements combinators for creating controls and simple automatic arrangement of them.
43 people like thisPosted: 13 years ago by Tomas Petricek
Parts of a little DSL to create WPF DataTemplate's in F#. Don't even want to think about the length of a corresponding C#. The F# code corresponds 1-to-1 to the visual tree constructed for the template.
8 people like thisPosted: 13 years ago by Cetin Sert
Turtle graphics library implemented as an internal DSL, providing a very similar syntax to Logo, it is runnable inside TryFSharp.org.
10 people like thisPosted: 13 years ago by Phillip Trelford
A light domain specific language for declaring xml in F# as code.
9 people like thisPosted: 12 years ago by Huw Simpson
Domain model for the Tesco checkout implemented in F# using discriminated unions (in 20 lines of code) and console-based user interface for scanning products and calculating the total price.
5 people like thisPosted: 12 years ago by Tomas Petricek
You can use numeric literals, constant expressions and operator overloading to make your own arithmetics. Useful in DSL languages. With NumericLiterals, you can use any of Q, R, Z, I, N, G. Basic syntax: [Number][Letter] will forward the call to the type NumericLiteral[Letter] to FromInt32 [Number] (or FromInt64 or FromString...)
9 people like thisPosted: 12 years ago by Tuomas Hietanen
Domain-specific language for detecting patterns in stock prices. Run using try F#.
5 people like thisPosted: 12 years ago by Tomas Petricek
A small DSL for graph building by combining paths. It's just a set of edges under the hood, so no need to worry about duplication causing problems. This is part of a larger project I'm calling edgy.
9 people like thisPosted: 12 years ago by Rick Minerich
A simple domain specific langauge (DSL) that can be used to specify and recognize patterrns in 2D arrays. A pattern is defined by composing primitive checks, rotating and translating patterns. See also: http://t.co/6Poty4FL
3 people like thisPosted: 12 years ago by Tomas Petricek
Just another DSL for creating HTML in F#. This DSL attempts to have nice syntax using curly brackets (F# computation expression blocks) for nesting. It does not use other keywords like `yield` (to keep the syntax as non-intrusive as possible), but that means the implementation relies on mutation. I think there could be nicer implementation using automatic quoting in F# 3.0.
17 people like thisPosted: 11 years ago by Tomas Petricek
Minimal Logo implementation using FParsec with support for procedures.
8 people like thisPosted: 10 years ago by Phillip Trelford
An abstract remoting server API and an abstract web reactive client to call it
0 people like thisPosted: 4 years ago by giuliohome
This snippet how we can use F# constructs like discrimated unions, functions and symbolic identifiers to represent proper language statements (albeit limited) using valid F# code.
24 people like thisPosted: 13 years ago by Horacio Nuñez
State machine example, from Martin Fowler's Domain-Specific Languages book, implemented as an External DSL parser in F#. A set of mutually recursive functions are used to parse the string tokens and build the State Machine as an F# record type.
12 people like thisPosted: 13 years ago by Phillip Trelford
Simple DSL for describing cups of Starbucks coffee and computing prices (in dollars).
15 people like thisPosted: 12 years ago by Phillip Trelford
Simple domain-specific language (DSL) for describing financial contracts in F#. A contract is represented using a discriminated union. Evaluating a contract gives the orders that may happen at a given date.
8 people like thisPosted: 12 years ago by Tomas Petricek
The sample shows two different reprezentations of Tesco checkout. The first one stores scanned items - as a list of either purchase or cancel items - and the second stores final bill with product and total quantity. The snippet implements transformation that corresponds to finalizing the purchase.
3 people like thisPosted: 12 years ago by Tomas Petricek
Simple domain-specific language for modeling of financial contracts.
8 people like thisPosted: 12 years ago by Tomas Petricek
Examples that use domain-specific langauge for detecting price patterns. To run the sample, load the previous snippet in TryF#. It opens the sample automatically.
2 people like thisPosted: 12 years ago by Tomas Petricek
A small DSL for graph building by combining weighted paths. It's just a map of edges to weights under the hood, so no need to worry about duplication causing problems. This is part of a larger project I'm calling edgy.
2 people like thisPosted: 12 years ago by Rick Minerich
F# to CSS compiler (CSS EDSL in F#) <+> inspired by Clay and FAKE - https://github.com/Cynede/Failess
7 people like thisPosted: 11 years ago by Heather
Small Basic abstract syntax tree, interpreter and embedded DSL. Supports Small Basic's keywords and arithmetic, logical and comparison operators.
11 people like thisPosted: 10 years ago by Phillip Trelford
Multi-currency report (generated as HTML) based on example given at the start of chapter one of Kent Beck's Test-Driven Development by Example book.
4 people like thisPosted: 9 years ago by Phillip Trelford