This file contains 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
public class Rison | |
{ | |
private string currentString; | |
private int index = 0; | |
private string next_id_rgx = @"[^-0123456789 '!:(),*@$][^ '!:(),*@$]*"; | |
private Dictionary<char, Func<object>> Table; | |
private Dictionary<char, Func<Rison, object>> Bands = new Dictionary<char, Func<Rison, object>>() | |
{ | |
{ 't', (x) => { return true; } }, | |
{ 'f', (x) => { return false; } }, |