Exemplo n.º 1
0
 public override Result VisitType_uint([NotNull] STGrammerParser.Type_uintContext context)
 {
     if (context.normal_value() != null)
     {
         return(new Result(true, "TOU(#" + context.normal_value().GetText() + ")"));
     }
     if (context.disp_define() != null)
     {
         string str = Visit(context.disp_define()).Info as string;
         return(new Result(true, "TOU(" + str + ")"));
     }
     return(DefaultResult);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Visit a parse tree produced by the <c>type_uint</c>
 /// labeled alternative in <see cref="STGrammerParser.type_define"/>.
 /// <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 VisitType_uint([NotNull] STGrammerParser.Type_uintContext context)
 {
     return(VisitChildren(context));
 }