📄 arithmeticanalyzer.cs
字号:
* <exception cref='ParseException'>if the node analysis * discovered errors</exception> */ public void enterRightParen(Token node) { } /** * <summary>Called when exiting a parse tree node.</summary> * * <param name='node'>the node being exited</param> * * <returns>the node to add to the parse tree</returns> * * <exception cref='ParseException'>if the node analysis * discovered errors</exception> */ public Node exitRightParen(Token node) { return node; } /** * <summary>Called when entering a parse tree node.</summary> * * <param name='node'>the node being entered</param> * * <exception cref='ParseException'>if the node analysis * discovered errors</exception> */ public void enterNumber(Token node) { } /** * <summary>Called when exiting a parse tree node.</summary> * * <param name='node'>the node being exited</param> * * <returns>the node to add to the parse tree</returns> * * <exception cref='ParseException'>if the node analysis * discovered errors</exception> */ public Node exitNumber(Token node) { return node; } /** * <summary>Called when entering a parse tree node.</summary> * * <param name='node'>the node being entered</param> * * <exception cref='ParseException'>if the node analysis * discovered errors</exception> */ public void enterIdentifier(Token node) { } /** * <summary>Called when exiting a parse tree node.</summary> * * <param name='node'>the node being exited</param> * * <returns>the node to add to the parse tree</returns> * * <exception cref='ParseException'>if the node analysis * discovered errors</exception> */ public Node exitIdentifier(Token node) { return node; } /** * <summary>Called when entering a parse tree node.</summary> * * <param name='node'>the node being entered</param> * * <exception cref='ParseException'>if the node analysis * discovered errors</exception> */ public void enterExpression(Production node) { } /** * <summary>Called when exiting a parse tree node.</summary> * * <param name='node'>the node being exited</param> * * <returns>the node to add to the parse tree</returns> * * <exception cref='ParseException'>if the node analysis * discovered errors</exception> */ public Node exitExpression(Production node) { return node; } /** * <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 void childExpression(Production node, Node child) { node.AddChild(child); } /** * <summary>Called when entering a parse tree node.</summary> * * <param name='node'>the node being entered</param> * * <exception cref='ParseException'>if the node analysis * discovered errors</exception> */ public void enterExpressionRest(Production node) { } /** * <summary>Called when exiting a parse tree node.</summary> * * <param name='node'>the node being exited</param> * * <returns>the node to add to the parse tree</returns> * * <exception cref='ParseException'>if the node analysis * discovered errors</exception> */ public Node exitExpressionRest(Production node) { return node; } /** * <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 void childExpressionRest(Production node, Node child) { node.AddChild(child); } /** * <summary>Called when entering a parse tree node.</summary> * * <param name='node'>the node being entered</param> * * <exception cref='ParseException'>if the node analysis * discovered errors</exception> */ public void enterTerm(Production node) { } /** * <summary>Called when exiting a parse tree node.</summary> * * <param name='node'>the node being exited</param> * * <returns>the node to add to the parse tree</returns> * * <exception cref='ParseException'>if the node analysis * discovered errors</exception> */ public Node exitTerm(Production node) { return node; } /** * <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 void childTerm(Production node, Node child) { node.AddChild(child); } /** * <summary>Called when entering a parse tree node.</summary> * * <param name='node'>the node being entered</param> * * <exception cref='ParseException'>if the node analysis * discovered errors</exception> */ public void enterTermRest(Production node) { } /** * <summary>Called when exiting a parse tree node.</summary> * * <param name='node'>the node being exited</param> * * <returns>the node to add to the parse tree</returns> * * <exception cref='ParseException'>if the node analysis * discovered errors</exception> */ public Node exitTermRest(Production node) { return node; } /** * <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 void childTermRest(Production node, Node child) { node.AddChild(child); } /** * <summary>Called when entering a parse tree node.</summary> * * <param name='node'>the node being entered</param> * * <exception cref='ParseException'>if the node analysis * discovered errors</exception> */ public void enterFactor(Production node) { } /** * <summary>Called when exiting a parse tree node.</summary> * * <param name='node'>the node being exited</param> * * <returns>the node to add to the parse tree</returns> * * <exception cref='ParseException'>if the node analysis * discovered errors</exception> */ public Node exitFactor(Production node) { return node; } /** * <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 void childFactor(Production node, Node child) { node.AddChild(child); } /** * <summary>Called when entering a parse tree node.</summary> * * <param name='node'>the node being entered</param> * * <exception cref='ParseException'>if the node analysis * discovered errors</exception> */ public void enterAtom(Production node) { } /** * <summary>Called when exiting a parse tree node.</summary> * * <param name='node'>the node being exited</param> * * <returns>the node to add to the parse tree</returns> * * <exception cref='ParseException'>if the node analysis * discovered errors</exception> */ public Node exitAtom(Production node) { return node; } /** * <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 void childAtom(Production node, Node child) { node.AddChild(child); } }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -