Example #1
0
 public void string_compile(Kind_word start, Type_value type, Item item)
 {
     for (; ; )
     {
         nex();
         if (now.kind == start)
         {
             return;
         }
         else if (now.kind == Kind_word.End || now.kind == Kind_word.Break)
         {
             return;
         }
         else if (now.kind == Kind_word.Yen)
         {
             now.type = type;
             now.item = item;
             nex();
         }
         now.type = type;
         now.item = item;
     }
 }
Example #2
0
 public String html_name_compile(Type_value type, Item item, Brush color)
 {
     String ret = "";
     if (now.kind == Kind_word.Letter || now.kind == Kind_word.Minus)
     {
         now.type = type;
         now.item = item;
         now.color = color;
         ret += now.str;
     loop:
         if (now.next.kind == Kind_word.Letter || now.next.kind == Kind_word.Minus)
         {
             nex();
             now.type = type;
             now.item = item;
             now.color = color;
             ret += now.str;
             goto loop;
         }
         return ret;
     }
     return null;
 }