public override string VisitPrintQuotedString(BasicParser.PrintQuotedStringContext context) { var quotedString = context.QUOTED_STRING().GetText(); quotedString = quotedString.Substring(1, quotedString.Length - 2); var printArgument = PrintArgument.FromText(quotedString); Arguments.Add(printArgument); return(base.VisitPrintQuotedString(context)); }
public override string VisitArgSeparator(BasicParser.ArgSeparatorContext context) { string separator = null; switch (context.GetText()) { case ",": separator = " "; break; case ";": separator = ""; break; } var printArgument = PrintArgument.FromText(separator); Arguments.Add(printArgument); return(base.VisitArgSeparator(context)); }