10 likes | 131 Views
ReL Components. CodeCompiler.java. Python.g. AST. Visitor. The Tuple entry in CodeCompiler was modified to deal with putting SIM, SQL, Prolog, and ASP information and expressions on the runtime stack and to assure that a new instance of PyTuple is created after the expressions are evaluated.
E N D
ReL Components CodeCompiler.java Python.g AST Visitor The Tuple entry in CodeCompiler was modified to deal with putting SIM, SQL, Prolog, and ASP information and expressions on the runtime stack and to assure that a new instance of PyTuple is created after the expressions are evaluated. The Python grammar was changed to include SIM, SQL, Prolog, and ASP statements. Interpreter Runtime Stack PyTuple.java ------------ parseSIM() jSIMParser jSQLParser There is no jSIMParser to parse SIM statements like jSQLParser for SQL but I hope one will be built as a project. jSQLParser parses SQL statements from PyTuple and produces an AST that can be visited. parseSIM parses SIM statements from PyTuple and produces and passes AS information to SIMHelper. SQLVisitor.java SIMHelper.java SIMHelper produces appropriate SPARQL statements for the SIM statements which are sent to SPARQLDoer. SPARQLDoer.java SQLVisitor visits the jSQLParser AST and produces appropriate SPARQL statements for the SQL statements which are sent to SPARQLDoer. Oracle DBMS