Snippets tagged dsl

  • WinForms layout combinators

    A domain specific language for creating layout using Windows Forms. The snippet implements combinators for creating controls and simple automatic arrangement of them.

    42 people like this

    Posted: 13 years ago by Tomas Petricek

  • A fun-ny WPF DataTemplate DSL

    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 this

    Posted: 12 years ago by Cetin Sert

  • Turtle

    Turtle graphics library implemented as an internal DSL, providing a very similar syntax to Logo, it is runnable inside TryFSharp.org.

    10 people like this

    Posted: 12 years ago by Phillip Trelford

  • Light XML DSL

    A light domain specific language for declaring xml in F# as code.

    9 people like this

    Posted: 12 years ago by Huw Simpson

  • Tesco in 70 lines of code

    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 this

    Posted: 11 years ago by Tomas Petricek

  • Simple NumericLiteral example

    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 this

    Posted: 11 years ago by Tuomas Hietanen

  • DSL for Price Patterns (Setup)

    Domain-specific language for detecting patterns in stock prices. Run using try F#.

    5 people like this

    Posted: 11 years ago by Tomas Petricek

  • A Small DSL for Building Graphs

    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 this

    Posted: 11 years ago by Rick Minerich

  • DSL for detecting patterns in 2D

    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 this

    Posted: 11 years ago by Tomas Petricek

  • DSL for constructing HTML

    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 this

    Posted: 11 years ago by Tomas Petricek

  • Turtle procedures

    Minimal Logo implementation using FParsec with support for procedures.

    8 people like this

    Posted: 9 years ago by Phillip Trelford

  • Abstraction for Web Client Server

    An abstract remoting server API and an abstract web reactive client to call it

    0 people like this

    Posted: 4 years ago by giuliohome