Пример #1
0
 public KurumiToken(IterableString s, KurumiTokenType type)
 {
     this.data          = s.substring();
     this.type          = type;
     this.indent        = s.get_indent();
     this.line          = s.line;
     this.line_position = s.line_position - this.data.Length;
 }
Пример #2
0
    parse(string string_data)
    {
        try {
            expression         = new KurumiValueList();
            goto_storage       = new KurumiGotoStarage();
            value_i            = 0;
            if_statement_count = 0;
            storage            = new KurumiStorage();
            IterableString s = new IterableString(string_data);
            list = s.tokenize();
            generate_code();

            return(new KurumiScript(storage, expression));
        } catch (Exception e) {
            Console.WriteLine("{0}", e.Message);
            return(null);
        }
    }