예제 #1
0
 public override void Parse(AST_Directive input)
 {
     if (input.childNodes == null || input.childNodes.Count < 1)
     {
         throw new AST_BadFormatException("Input directive node has too few children", input.charIndex);
     }
     if (input.childNodes.Count > 1)
     {
         throw new AST_BadFormatException("Input directive node has too many children", input.charIndex);
     }
     input.childNodes.First.Value.Accept(this);
 }
예제 #2
0
 public abstract void Parse(AST_Directive input);