Exemplo n.º 1
0
 public FuzzyString(byte[] raw, Encoding encoding)
 {
     this.raw       = raw;
     this.encoding  = encoding;
     this.setByRaw  = true;
     this.ClassName = FuzzySymbol.GetSymbol("String");
 }
Exemplo n.º 2
0
 protected FuzzyModule(string s)
 {
     this.name      = s;
     this.symbol    = FuzzySymbol.GetSymbol(s);
     this.ClassName = FuzzySymbol.GetSymbol("Module");
     modules.Add(s, this);
 }
Exemplo n.º 3
0
 public FuzzyString(byte[] raw)
 {
     this.raw       = raw;
     this.encoding  = Encoding.Default;
     this.setByRaw  = true;
     this.ClassName = FuzzySymbol.GetSymbol("String");
 }
Exemplo n.º 4
0
 protected FuzzyClass(string s)
 {
     this.name      = s;
     this.symbol    = FuzzySymbol.GetSymbol(s);
     this.ClassName = FuzzySymbol.GetSymbol("Class");
     classes.Add(s, this);
 }
Exemplo n.º 5
0
 public FuzzyString(string unicodeText)
 {
     this.encoding  = Encoding.Unicode;
     this.str       = unicodeText;
     this.setByText = true;
     this.ClassName = FuzzySymbol.GetSymbol("String");
     this.Encoding  = Encoding.UTF8;
 }
Exemplo n.º 6
0
 public FuzzyTable(int x_size, int y_size, int z_size)
 {
     value          = new short[x_size, y_size, z_size];
     this.x_size    = x_size;
     this.y_size    = y_size;
     this.z_size    = z_size;
     this.dimension = 3;
     this.ClassName = FuzzySymbol.GetSymbol("Table");
 }
Exemplo n.º 7
0
 public object this[string str]
 {
     get
     {
         FuzzySymbol sym = FuzzySymbol.GetSymbol(str);
         return(this[sym]);
     }
     set
     {
         FuzzySymbol sym = FuzzySymbol.GetSymbol(str);
         this[sym] = value;
     }
 }
Exemplo n.º 8
0
 private FuzzyNil()
 {
     this.ClassName = FuzzySymbol.GetSymbol("NilClass");
 }
Exemplo n.º 9
0
 public FuzzyRegexp(FuzzyString Pattern, FuzzyRegexpOptions Options)
 {
     this.Pattern   = Pattern;
     this.Options   = Options;
     this.ClassName = FuzzySymbol.GetSymbol("Regexp");
 }
Exemplo n.º 10
0
 public FuzzyArray(int capacity)
 {
     list           = new List <object>(capacity);
     this.ClassName = FuzzySymbol.GetSymbol("Array");
 }
Exemplo n.º 11
0
 public FuzzyArray(IEnumerable <object> collection)
 {
     list           = new List <object>(collection);
     this.ClassName = FuzzySymbol.GetSymbol("Array");
 }
Exemplo n.º 12
0
 public FuzzyArray()
 {
     list           = new List <object>();
     this.ClassName = FuzzySymbol.GetSymbol("Array");
 }
Exemplo n.º 13
0
 private FuzzyBool(bool t)
 {
     value = t; this.ClassName = FuzzySymbol.GetSymbol("Bool");
 }
Exemplo n.º 14
0
 public FuzzyFixnum(int value)
 {
     this.value     = value;
     this.ClassName = FuzzySymbol.GetSymbol("Fixnum");
 }
Exemplo n.º 15
0
 public FuzzyFloat(float value)
 {
     this.value     = value;
     this.ClassName = FuzzySymbol.GetSymbol("Float");
 }
Exemplo n.º 16
0
 public FuzzyHash(object DefaultValue)
     : base()
 {
     this.defaultValue = DefaultValue;
     this.ClassName    = FuzzySymbol.GetSymbol("Hash");
 }
Exemplo n.º 17
0
 public FuzzyStruct()
     : base()
 {
     this.ClassName = FuzzySymbol.GetSymbol("Struct");
 }
Exemplo n.º 18
0
 public object this[FuzzyString key]
 {
     get { return(this[FuzzySymbol.GetSymbol(key)]); }
     set { this[FuzzySymbol.GetSymbol(key)] = value; }
 }