예제 #1
0
        public static object VisitLiteral(NyaParser.StringLiteralContext context)
        {
            string rawString = context.GetText();

            rawString = rawString.Substring(1, rawString.Length - 2);
            string unescaped = StringHelper.StringFromCSharpLiteral(rawString);

            return(unescaped);
        }
예제 #2
0
 public override object VisitStringLiteral([NotNull] NyaParser.StringLiteralContext context)
 {
     return(LiteralHelper.VisitLiteral(context));
 }