當前位置: 首頁>>代碼示例>>C#>>正文


C# Production.AddChild方法代碼示例

本文整理匯總了C#中PerCederberg.Grammatica.Runtime.Production.AddChild方法的典型用法代碼示例。如果您正苦於以下問題:C# Production.AddChild方法的具體用法?C# Production.AddChild怎麽用?C# Production.AddChild使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在PerCederberg.Grammatica.Runtime.Production的用法示例。


在下文中一共展示了Production.AddChild方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: AddNode

 /**
  * 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);
         }
     }
 }
開發者ID:netgrim,項目名稱:FleeSharp,代碼行數:26,代碼來源:Parser.cs

示例2: ChildFunctionCallExpression

 /**
  * <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);
 }
開發者ID:netgrim,項目名稱:FleeSharp,代碼行數:13,代碼來源:ExpressionAnalyzer.cs

示例3: ChildBooleanLiteralExpression

 /**
  * <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);
 }
開發者ID:netgrim,項目名稱:FleeSharp,代碼行數:13,代碼來源:ExpressionAnalyzer.cs

示例4: ChildFieldPropertyExpression

 /**
  * <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);
 }
開發者ID:netgrim,項目名稱:FleeSharp,代碼行數:13,代碼來源:ExpressionAnalyzer.cs

示例5: ChildCastTypeExpression

 /**
  * <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);
 }
開發者ID:netgrim,項目名稱:FleeSharp,代碼行數:13,代碼來源:ExpressionAnalyzer.cs

示例6: ChildIrfDocument

 /**
  * <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);
 }
開發者ID:avandecreme,項目名稱:OngameNotesMerger,代碼行數:14,代碼來源:IrfAnalyzer.cs

示例7: ChildMultiplicativeExpression

 /**
  * <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);
 }
開發者ID:netgrim,項目名稱:FleeSharp,代碼行數:13,代碼來源:ExpressionAnalyzer.cs

示例8: ChildOrigin

 /**
  * <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);
 }
開發者ID:lazanet,項目名稱:messylab,代碼行數:14,代碼來源:PicoAnalyzer.cs

示例9: ChildProgram

 /**
  * <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);
 }
開發者ID:lazanet,項目名稱:messylab,代碼行數:14,代碼來源:PicoAnalyzer.cs

示例10: ChildInteger

 /**
  * <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);
 }
開發者ID:lazanet,項目名稱:messylab,代碼行數:14,代碼來源:PicoAnalyzer.cs

示例11: ChildMoveArgs

 /**
  * <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);
 }
開發者ID:lazanet,項目名稱:messylab,代碼行數:14,代碼來源:PicoAnalyzer.cs

示例12: ChildBranch

 /**
  * <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);
 }
開發者ID:lazanet,項目名稱:messylab,代碼行數:14,代碼來源:PicoAnalyzer.cs

示例13: ChildArithmeticArgs

 /**
  * <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);
 }
開發者ID:lazanet,項目名稱:messylab,代碼行數:14,代碼來源:PicoAnalyzer.cs

示例14: ChildArg1234

 /**
  * <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);
 }
開發者ID:lazanet,項目名稱:messylab,代碼行數:14,代碼來源:PicoAnalyzer.cs

示例15: ChildUserNode

 /**
  * <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);
 }
開發者ID:avandecreme,項目名稱:OngameNotesMerger,代碼行數:14,代碼來源:IrfAnalyzer.cs


注:本文中的PerCederberg.Grammatica.Runtime.Production.AddChild方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。