public override object VisitLongValue(CryslGrammarParser.LongValueContext context) { string longType = context.LONG().GetText(); string varName = context.VARNAME().GetText(); ObjectsDeclaration objectDeclaration = new ObjectsDeclaration(); objectDeclaration.Object_type = longType; objectDeclaration.Var_name = varName; return(objectDeclaration); }
/// <summary> /// Visit a parse tree produced by the <c>LongValue</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 VisitLongValue([NotNull] CryslGrammarParser.LongValueContext context) { return(VisitChildren(context)); }