Esempio n. 1
0
 /*
  * 获取expressionList的长度
  */
 private int getLen(CMMParser.ExpressionListContext expressionListContext)
 {
     if (expressionListContext.ChildCount == 1)
     {
         return(1);
     }
     else
     {
         return(getLen(expressionListContext.expressionList()) + 1);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Visit a parse tree produced by <see cref="CMMParser.expressionList"/>.
 /// <para>
 /// The default implementation returns the result of calling <see cref="AbstractParseTreeVisitor{Result}.VisitChildren(IRuleNode)"/>
 /// on <paramref name="context"/>.
 /// </para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 /// <return>The visitor result.</return>
 public virtual Result VisitExpressionList([NotNull] CMMParser.ExpressionListContext context)
 {
     return(VisitChildren(context));
 }
Esempio n. 3
0
 /// <summary>
 /// Exit a parse tree produced by <see cref="CMMParser.expressionList"/>.
 /// <para>The default implementation does nothing.</para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 public virtual void ExitExpressionList([NotNull] CMMParser.ExpressionListContext context)
 {
 }
Esempio n. 4
0
 public override object VisitExpressionList([NotNull] CMMParser.ExpressionListContext context)
 {
     return(base.VisitExpressionList(context));
 }