/// <summary>
 /// Generates the code for a Declaration node.
 /// </summary>
 /// <param name="d">The Declaration node.</param>
 /// <returns>String containing C# code for Declaration d.</returns>
 private string GenerateDeclaration(Declaration d)
 {
     return Generate(String.Format("{0} {1}", d.Datatype, CheckName(d.Id)), d);
 }
 public  GlobalVariableDeclaration (Parser yyp, Declaration  d ):base(((LSLSyntax
)yyp)){ kids . Add ( d );
}
 public  Statement (Parser yyp, Declaration  d ):base(((LSLSyntax
)yyp)){ kids . Add ( d );
}
 public  ArgumentDeclarationList (Parser yyp, ArgumentDeclarationList  adl , Declaration  d ):base(((LSLSyntax
)yyp)){ while (0< adl . kids . Count ) kids . Add ( adl . kids . Pop ());
 kids . Add ( d );
}
 public  ArgumentDeclarationList (Parser yyp, Declaration  d ):base(((LSLSyntax
)yyp)){ kids . Add ( d );
}
Exemple #6
0
 public  KeyIntIntArgumentDeclarationList (Parser yyp, Declaration  d1 , Declaration  d2 , Declaration  d3 ):base(((LSLSyntax
)yyp), d1 , d2 , d3 ){}