Skip to content

Instantly share code, notes, and snippets.

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; } },