示例#1
0
        public override CSNode VisitStringAtomExp(CSScriptParser.StringAtomExpContext context)
        {
            CSStringNode node = new CSStringNode(context.Start.Line, context.Start.Column);
            string       str  = context.STRING().GetText();

            node._val = str.Substring(1, str.Length - 2);
            return(node);
        }
 /// <summary>
 /// Visit a parse tree produced by <see cref="CSScriptParser.stringAtomExp"/>.
 /// <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 VisitStringAtomExp([NotNull] CSScriptParser.StringAtomExpContext context)
 {
     return(VisitChildren(context));
 }