Exemple #1
0
 public void ADD(Statment s)
 {
     if (s != null)
     {
         Program.AddLast(s);
     }
 }
Exemple #2
0
        public Statment SS(ref Statments ss)
        {
            Statment s1 = S();

            if (s1 != null)
            {
                ss.ADD(s1);
                if (Expect(TokenKind.EOF))
                {
                    return(null);
                }
                else
                {
                    lex.UngetToken();
                }
                if (Expect(TokenKind.ENDFOR, TokenKind.ENDIF, TokenKind.ELSE))
                {
                    lex.UngetToken();
                    return(s1);
                }
                else
                {
                    lex.UngetToken();
                    return(SS(ref ss));
                }
            }
            return(null);
        }