Exemplo n.º 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);
 }
Exemplo n.º 2
0
 public ArgumentDeclarationList(Parser yyp, Declaration d)
     : base(((LSLSyntax
         )yyp))
 {
     kids.Add(d);
 }
Exemplo n.º 3
0
 public GlobalVariableDeclaration(Parser yyp, Declaration d)
     : base(((LSLSyntax
         )yyp))
 {
     kids.Add(d);
 }
Exemplo n.º 4
0
 public Statement(Parser yyp, Declaration d)
     : base(((LSLSyntax
         )yyp))
 {
     kids.Add(d);
 }
Exemplo n.º 5
0
 /// <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);
 }