Example #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);
 }
Example #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);
 }
Example #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);
 }
Example #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);
 }
 /**
  * <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);
 }
Example #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);
 }
Example #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);
 }
 /**
  * <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);
 }
Example #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);
 }
Example #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);
 }
Example #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);
 }
Example #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);
 }
Example #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);
         }
     }
 }
Example #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);
 }
Example #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);
 }
 /**
  * <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);
 }
Example #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);
 }
 /**
  * <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);
 }
Example #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);
 }
Example #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);
 }
Example #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);
 }
Example #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);
 }
Example #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);
 }
Example #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);
 }
Example #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);
 }
Example #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);
 }
 /**
  * <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);
 }
Example #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);
 }
 /**
  * <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);
 }
Example #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);
 }
Example #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);
 }