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