Skip to content

Instantly share code, notes, and snippets.

@rifatx
Last active October 20, 2021 10:34
Show Gist options
  • Save rifatx/d0dda0728e337a3ea6cda293a246ed7e to your computer and use it in GitHub Desktop.
Save rifatx/d0dda0728e337a3ea6cda293a246ed7e to your computer and use it in GitHub Desktop.
PlSqlParser utils
internal static class Utils
{
public static PlSqlParser CreatePlSqlParser(string spContent)
{
var s = CharStreams.fromString(spContent);
var upper = new CaseChangingCharStream(s, true);
var lexer = new PlSqlLexer(upper);
var tokens = new CommonTokenStream(lexer);
var parser = new PlSqlParser(tokens);
return parser;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment