Parse code using antlr.
Parse code using antlr.
Python
class HelloWorld():
owner = “”
target = “”
def sayHello(self, word):
print(word)
x = HelloWorld()
x.sayHello(“Hello”)
* parser test output
Class:HelloWorld
{
Field:owner
Field:target
Method:sayHello
}
~~~
The library SqlAnalyser.Core of DatabaseManager project uses the TSqlParser, MySqlParser, PlSqlParser and PostgreSqlParser to parse and translate view, function, procedure and table trigger between SqlServer, MySql, Oracle and Postgres.