Last active
October 20, 2021 10:34
-
-
Save rifatx/d0dda0728e337a3ea6cda293a246ed7e to your computer and use it in GitHub Desktop.
PlSqlParser utils
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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