Пример #1
0
 void Back_ExprRoot()
 {
     root = new NRoot(); NBase res;
     if (TokenExists(0, "="))
     {
         Back_Assign(out res);
         while (la.kind == 64)
         {
             Get();
         }
         root.Exprs.Add(res);
         while (TokenEquals(0, ";") && !TokenEquals(1, _EOF))
         {
             Back_Assign(out res);
             while (la.kind == 64)
             {
                 Get();
             }
             root.Exprs.Add(res);
         }
     }
     else if (StartOf(1))
     {
         Expr(out res);
         root.Exprs.Add(res);
     }
     else
     {
         SynErr(73);
     }
 }
Пример #2
0
 void Event_ExprRoot() {
  root = new NRoot(); NBase ident;
  Event_Ident(out ident);
  while (la.kind == 64) {
   Get();
  }
  root.Exprs.Add((NIdentBase)ident);
  while (TokenEquals(0, ";") && !TokenEquals(1, _EOF)) {
   Event_Ident(out ident);
   while (la.kind == 64) {
    Get();
   }
   root.Exprs.Add((NIdentBase)ident);
  }
 }
Пример #3
0
 void Assign_ExprRoot()
 {
     root = new NRoot(); NBase expr;
     Assign_Expr(out expr);
     while (la.kind == 5)
     {
         Get();
     }
     root.Exprs.Add(expr);
     while (TokenEquals(0, ";") && !TokenEquals(1, _EOF))
     {
         Assign_Expr(out expr);
         while (la.kind == 5)
         {
             Get();
         }
         root.Exprs.Add(expr);
     }
 }
Пример #4
0
 void ExprRoot()
 {
     root = new NRoot(); NBase res;
     Expr(out res);
     root.Exprs.Add(res);
 }