Skip to content

Instantly share code, notes, and snippets.

@tucaz
Created December 20, 2010 15:00
Show Gist options
  • Select an option

  • Save tucaz/748465 to your computer and use it in GitHub Desktop.

Select an option

Save tucaz/748465 to your computer and use it in GitHub Desktop.
#light
namespace NParser
open System
open Lexer
type NomosParser() =
static member Parse(stringToParse:string) =
let definitions = state {
do! addDefinition "String" "[a-zA-Z]+"
}
let tokens = Lexer.tokenize definitions stringToParse
stringToParse
type ParsedEntry = { When : DateTime; Where : string; HowMuch : decimal }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment