Created
December 20, 2010 15:00
-
-
Save tucaz/748465 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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