本文整理匯總了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);
}
}
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}