Exemplo n.º 1
0
 public void ValidateSemantic()
 {
     ValidateNodeSemantic();
     if (NextSentence != null)
     {
         NextSentence.ValidateSemantic();
     }
 }
Exemplo n.º 2
0
        public string TreeGenerateCode()
        {
            var fragment = GenerateCode();

            if (NextSentence != null && !(NextSentence is StructDeclarationNode))
            {
                var code = NextSentence.TreeGenerateCode();
                fragment += "\n" + code;
            }
            else if (NextSentence is StructDeclarationNode)
            {
                fragment += NextSentence.TreeGenerateCode();
            }
            return(fragment);
        }
Exemplo n.º 3
0
 public virtual bool Visit(NextSentence nextSentence)
 {
     return(true);
 }