Exemple #1
0
 public ArgumentDeclarationList(Parser yyp, ArgumentDeclarationList adl, Declaration d)
     : base(((LSLSyntax
         )yyp))
 {
     while (0 < adl.kids.Count) kids.Add(adl.kids.Pop());
     kids.Add(d);
 }
Exemple #2
0
 public ArgumentDeclarationList(Parser yyp, Declaration d)
     : base(((LSLSyntax
         )yyp))
 {
     kids.Add(d);
 }
Exemple #3
0
 public GlobalVariableDeclaration(Parser yyp, Declaration d)
     : base(((LSLSyntax
         )yyp))
 {
     kids.Add(d);
 }
Exemple #4
0
 public Statement(Parser yyp, Declaration d)
     : base(((LSLSyntax
         )yyp))
 {
     kids.Add(d);
 }
 /// <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);
 }