Ejemplo n.º 1
0
 /**
  * <summary>Called when adding a child to a parse tree
  * node.</summary>
  *
  * <param name='node'>the parent node</param>
  * <param name='child'>the child node, or null</param>
  *
  * <exception cref='ParseException'>if the node analysis
  * discovered errors</exception>
  */
 public virtual void ChildFunctionCallExpression(Production node, Node child) {
     node.AddChild(child);
 }
Ejemplo n.º 2
0
 /**
  * <summary>Called when adding a child to a parse tree
  * node.</summary>
  *
  * <param name='node'>the parent node</param>
  * <param name='child'>the child node, or null</param>
  *
  * <exception cref='ParseException'>if the node analysis
  * discovered errors</exception>
  */
 public virtual void ChildBooleanLiteralExpression(Production node, Node child) {
     node.AddChild(child);
 }
Ejemplo n.º 3
0
 /**
  * <summary>Called when adding a child to a parse tree
  * node.</summary>
  *
  * <param name='node'>the parent node</param>
  * <param name='child'>the child node, or null</param>
  *
  * <exception cref='ParseException'>if the node analysis
  * discovered errors</exception>
  */
 public virtual void ChildFieldPropertyExpression(Production node, Node child) {
     node.AddChild(child);
 }
Ejemplo n.º 4
0
 /**
  * <summary>Called when adding a child to a parse tree
  * node.</summary>
  *
  * <param name='node'>the parent node</param>
  * <param name='child'>the child node, or null</param>
  *
  * <exception cref='ParseException'>if the node analysis
  * discovered errors</exception>
  */
 public virtual void ChildCastTypeExpression(Production node, Node child) {
     node.AddChild(child);
 }
Ejemplo n.º 5
0
 /**
  * <summary>Called when adding a child to a parse tree
  * node.</summary>
  *
  * <param name='node'>the parent node</param>
  * <param name='child'>the child node, or null</param>
  *
  * <exception cref='ParseException'>if the node analysis
  * discovered errors</exception>
  */
 public virtual void ChildIrfDocument(Production node, Node child)
 {
     node.AddChild(child);
 }
Ejemplo n.º 6
0
 /**
  * <summary>Called when adding a child to a parse tree
  * node.</summary>
  *
  * <param name='node'>the parent node</param>
  * <param name='child'>the child node, or null</param>
  *
  * <exception cref='ParseException'>if the node analysis
  * discovered errors</exception>
  */
 public virtual void ChildMultiplicativeExpression(Production node, Node child) {
     node.AddChild(child);
 }
Ejemplo n.º 7
0
 /**
  * <summary>Called when adding a child to a parse tree
  * node.</summary>
  *
  * <param name='node'>the parent node</param>
  * <param name='child'>the child node, or null</param>
  *
  * <exception cref='ParseException'>if the node analysis
  * discovered errors</exception>
  */
 public virtual void ChildMoveArgs(Production node, Node child)
 {
     node.AddChild(child);
 }
Ejemplo n.º 8
0
 /**
  * <summary>Called when adding a child to a parse tree
  * node.</summary>
  *
  * <param name='node'>the parent node</param>
  * <param name='child'>the child node, or null</param>
  *
  * <exception cref='ParseException'>if the node analysis
  * discovered errors</exception>
  */
 public virtual void ChildUserNode(Production node, Node child)
 {
     node.AddChild(child);
 }
Ejemplo n.º 9
0
 /**
  * <summary>Called when adding a child to a parse tree
  * node.</summary>
  *
  * <param name='node'>the parent node</param>
  * <param name='child'>the child node, or null</param>
  *
  * <exception cref='ParseException'>if the node analysis
  * discovered errors</exception>
  */
 public virtual void ChildBranch(Production node, Node child)
 {
     node.AddChild(child);
 }
Ejemplo n.º 10
0
 /**
  * <summary>Called when adding a child to a parse tree
  * node.</summary>
  *
  * <param name='node'>the parent node</param>
  * <param name='child'>the child node, or null</param>
  *
  * <exception cref='ParseException'>if the node analysis
  * discovered errors</exception>
  */
 public virtual void ChildInteger(Production node, Node child)
 {
     node.AddChild(child);
 }
Ejemplo n.º 11
0
 /**
  * <summary>Called when adding a child to a parse tree
  * node.</summary>
  *
  * <param name='node'>the parent node</param>
  * <param name='child'>the child node, or null</param>
  *
  * <exception cref='ParseException'>if the node analysis
  * discovered errors</exception>
  */
 public virtual void ChildArithmeticArgs(Production node, Node child)
 {
     node.AddChild(child);
 }
Ejemplo n.º 12
0
 /**
  * <summary>Called when adding a child to a parse tree
  * node.</summary>
  *
  * <param name='node'>the parent node</param>
  * <param name='child'>the child node, or null</param>
  *
  * <exception cref='ParseException'>if the node analysis
  * discovered errors</exception>
  */
 public virtual void ChildArg1234(Production node, Node child)
 {
     node.AddChild(child);
 }
Ejemplo n.º 13
0
 /**
  * Handles the parser adding a child node to a production. This
  * method calls the appropriate analyzer callback. Note that this
  * method will not call any callback if an error requiring
  * recovery has ocurred.
  *
  * @param node           the parent parse tree node
  * @param child          the child parse tree node, or null
  */
 internal void AddNode(Production node, Node child) {
     if (errorRecovery >= 0) {
         // Do nothing
     } else if (node.IsHidden()) {
         node.AddChild(child);
     } else if (child != null && child.IsHidden()) {
         for (int i = 0; i < child.Count; i++) {
             AddNode(node, child[i]);
         }
     } else {
         try {
             analyzer.Child(node, child);
         } catch (ParseException e) {
             AddError(e, false);
         }
     }
 }
Ejemplo n.º 14
0
 /**
  * <summary>Called when adding a child to a parse tree
  * node.</summary>
  *
  * <param name='node'>the parent node</param>
  * <param name='child'>the child node, or null</param>
  *
  * <exception cref='ParseException'>if the node analysis
  * discovered errors</exception>
  */
 public virtual void ChildWhitespace(Production node, Node child)
 {
     node.AddChild(child);
 }
Ejemplo n.º 15
0
 /**
  * <summary>Called when adding a child to a parse tree
  * node.</summary>
  *
  * <param name='node'>the parent node</param>
  * <param name='child'>the child node, or null</param>
  *
  * <exception cref='ParseException'>if the node analysis
  * discovered errors</exception>
  */
 public virtual void ChildOrigin(Production node, Node child)
 {
     node.AddChild(child);
 }
Ejemplo n.º 16
0
 /**
  * <summary>Called when adding a child to a parse tree
  * node.</summary>
  *
  * <param name='node'>the parent node</param>
  * <param name='child'>the child node, or null</param>
  *
  * <exception cref='ParseException'>if the node analysis
  * discovered errors</exception>
  */
 public virtual void ChildTimestampAttribute(Production node, Node child)
 {
     node.AddChild(child);
 }
Ejemplo n.º 17
0
 /**
  * <summary>Called when adding a child to a parse tree
  * node.</summary>
  *
  * <param name='node'>the parent node</param>
  * <param name='child'>the child node, or null</param>
  *
  * <exception cref='ParseException'>if the node analysis
  * discovered errors</exception>
  */
 public virtual void ChildProgram(Production node, Node child)
 {
     node.AddChild(child);
 }
Ejemplo n.º 18
0
 /**
  * <summary>Called when adding a child to a parse tree
  * node.</summary>
  *
  * <param name='node'>the parent node</param>
  * <param name='child'>the child node, or null</param>
  *
  * <exception cref='ParseException'>if the node analysis
  * discovered errors</exception>
  */
 public virtual void ChildClassificationAttribute(Production node, Node child)
 {
     node.AddChild(child);
 }
Ejemplo n.º 19
0
 /**
  * <summary>Called when adding a child to a parse tree
  * node.</summary>
  *
  * <param name='node'>the parent node</param>
  * <param name='child'>the child node, or null</param>
  *
  * <exception cref='ParseException'>if the node analysis
  * discovered errors</exception>
  */
 public virtual void ChildReturn(Production node, Node child)
 {
     node.AddChild(child);
 }
Ejemplo n.º 20
0
 /**
  * <summary>Called when adding a child to a parse tree
  * node.</summary>
  *
  * <param name='node'>the parent node</param>
  * <param name='child'>the child node, or null</param>
  *
  * <exception cref='ParseException'>if the node analysis
  * discovered errors</exception>
  */
 public virtual void ChildInListTargetExpression(Production node, Node child) {
     node.AddChild(child);
 }
Ejemplo n.º 21
0
 /**
  * <summary>Called when adding a child to a parse tree
  * node.</summary>
  *
  * <param name='node'>the parent node</param>
  * <param name='child'>the child node, or null</param>
  *
  * <exception cref='ParseException'>if the node analysis
  * discovered errors</exception>
  */
 public virtual void ChildSeparator(Production node, Node child)
 {
     node.AddChild(child);
 }
Ejemplo n.º 22
0
 /**
  * <summary>Called when adding a child to a parse tree
  * node.</summary>
  *
  * <param name='node'>the parent node</param>
  * <param name='child'>the child node, or null</param>
  *
  * <exception cref='ParseException'>if the node analysis
  * discovered errors</exception>
  */
 public virtual void ChildMemberAccessExpression(Production node, Node child) {
     node.AddChild(child);
 }
Ejemplo n.º 23
0
 /**
  * <summary>Called when adding a child to a parse tree
  * node.</summary>
  *
  * <param name='node'>the parent node</param>
  * <param name='child'>the child node, or null</param>
  *
  * <exception cref='ParseException'>if the node analysis
  * discovered errors</exception>
  */
 public virtual void ChildSymbols(Production node, Node child)
 {
     node.AddChild(child);
 }
Ejemplo n.º 24
0
 /**
  * <summary>Called when adding a child to a parse tree
  * node.</summary>
  *
  * <param name='node'>the parent node</param>
  * <param name='child'>the child node, or null</param>
  *
  * <exception cref='ParseException'>if the node analysis
  * discovered errors</exception>
  */
 public virtual void ChildSpecialFunctionExpression(Production node, Node child) {
     node.AddChild(child);
 }
Ejemplo n.º 25
0
 /**
  * <summary>Called when adding a child to a parse tree
  * node.</summary>
  *
  * <param name='node'>the parent node</param>
  * <param name='child'>the child node, or null</param>
  *
  * <exception cref='ParseException'>if the node analysis
  * discovered errors</exception>
  */
 public virtual void ChildText(Production node, Node child)
 {
     node.AddChild(child);
 }
Ejemplo n.º 26
0
 /**
  * <summary>Called when adding a child to a parse tree
  * node.</summary>
  *
  * <param name='node'>the parent node</param>
  * <param name='child'>the child node, or null</param>
  *
  * <exception cref='ParseException'>if the node analysis
  * discovered errors</exception>
  */
 public virtual void ChildIndexExpression(Production node, Node child) {
     node.AddChild(child);
 }
Ejemplo n.º 27
0
 /**
  * <summary>Called when adding a child to a parse tree
  * node.</summary>
  *
  * <param name='node'>the parent node</param>
  * <param name='child'>the child node, or null</param>
  *
  * <exception cref='ParseException'>if the node analysis
  * discovered errors</exception>
  */
 public virtual void ChildNoteTextAttribute(Production node, Node child)
 {
     node.AddChild(child);
 }
Ejemplo n.º 28
0
 /**
  * <summary>Called when adding a child to a parse tree
  * node.</summary>
  *
  * <param name='node'>the parent node</param>
  * <param name='child'>the child node, or null</param>
  *
  * <exception cref='ParseException'>if the node analysis
  * discovered errors</exception>
  */
 public virtual void ChildArgumentList(Production node, Node child) {
     node.AddChild(child);
 }
Ejemplo n.º 29
0
 /**
  * <summary>Called when adding a child to a parse tree
  * node.</summary>
  *
  * <param name='node'>the parent node</param>
  * <param name='child'>the child node, or null</param>
  *
  * <exception cref='ParseException'>if the node analysis
  * discovered errors</exception>
  */
 public virtual void ChildPlayerNameAttribute(Production node, Node child)
 {
     node.AddChild(child);
 }
Ejemplo n.º 30
0
 /**
  * <summary>Called when adding a child to a parse tree
  * node.</summary>
  *
  * <param name='node'>the parent node</param>
  * <param name='child'>the child node, or null</param>
  *
  * <exception cref='ParseException'>if the node analysis
  * discovered errors</exception>
  */
 public virtual void ChildExpressionGroup(Production node, Node child) {
     node.AddChild(child);
 }
Ejemplo n.º 31
0
 /// <summary>
 /// Called when adding a child to a parse tree node. By default
 /// this method adds the child to the production node. A subclass
 /// can override this method to handle each node separately. Note
 /// that the child node may be null if the corresponding exit()
 /// method returned null.
 /// </summary>
 /// <param name="node">The parent node</param>
 /// <param name="child">The child node, or null</param>
 /// <exception cref="ParseException">
 /// If errors occurred during node analysis
 /// </exception>
 public virtual void Child(Production node, Node child)
 {
     node.AddChild(child);
 }