public override object VisitTypeValue(CryslGrammarParser.TypeValueContext context)
        {
            string             typeValueType     = context.TYPE().GetText();
            string             varName           = context.VARNAME().GetText();
            ObjectsDeclaration objectDeclaration = new ObjectsDeclaration();

            objectDeclaration.Object_type = typeValueType;
            objectDeclaration.Var_name    = varName;

            return(objectDeclaration);
        }
Exemple #2
0
 /// <summary>
 /// Visit a parse tree produced by the <c>TypeValue</c>
 /// labeled alternative in <see cref="CryslGrammarParser.objectlist"/>.
 /// <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 VisitTypeValue([NotNull] CryslGrammarParser.TypeValueContext context)
 {
     return(VisitChildren(context));
 }