示例#1
0
        public bool Bloc(Tree parent)
        {
            Pile.Save(Kind.Bloc);
            var T = new Tree(ref Pile, parent, Kind.Bloc);

            if (ESpace & !KeyWord(Ts, "{"))
            {
                return(Pile.Leave(false));
            }
            while (Instruction(T))
            {
            }
            return(T.Set(KeyWord(Ts, "}")));
        }
示例#2
0
 public bool Set(bool save = true, bool Mark = true)
 {
     if (save)
     {
         Start = Pile.PilePos[Pile.PilePos.Count - 1];
         End   = Pile.CurrentPos - 1;
         Parent.Children.Add(this);
     }
     return(Pile.Leave(save, Mark));
 }