public static string Simple(PlSqlParser.IdContext context) { if (context == null) return null; return InputString.AsNotQuoted(context.GetText()); }
public static int? Integer(PlSqlParser.NumericContext context) { if (context == null) return null; var text = context.GetText(); int value; if (!Int32.TryParse(text, out value)) throw new ParseCanceledException(String.Format("Numeric '{0}' is not an integer.", text)); return value; }
public static string AsNotQuoted(PlSqlParser.Quoted_stringContext context) { return AsNotQuoted(context.GetText()); }
public static string Variable(PlSqlParser.Bind_variableContext context) { var text = context.GetText(); if (String.IsNullOrEmpty(text)) return text; if (text[0] == ':') text = text.Substring(1); return text; }
public static string Simple(PlSqlParser.Regular_idContext context) { if (context == null) return null; return context.GetText(); }