db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rick Hillegas (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DERBY-4415) Make it easy to plug custom AST printers into the compiler
Date Mon, 19 Oct 2009 19:54:59 GMT

    [ https://issues.apache.org/jira/browse/DERBY-4415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12767494#action_12767494

Rick Hillegas commented on DERBY-4415:

Here's a sample script which pokes a custom AST printer into the compiler:

connect 'jdbc:derby:memory:dummy;create=true';

create table t( a int );

create procedure setInspector( visitorClassName varchar( 32672 ) )
language java
parameter style java
modifies sql data
external name 'ASTInspector.setInspector'

call setInspector( 'XmlASTPrinter' );

select * from t;

call setInspector( null );

> Make it easy to plug custom AST printers into the compiler
> ----------------------------------------------------------
>                 Key: DERBY-4415
>                 URL: https://issues.apache.org/jira/browse/DERBY-4415
>             Project: Derby
>          Issue Type: Improvement
>          Components: SQL
>            Reporter: Rick Hillegas
>            Priority: Minor
>         Attachments: ASTInspector.java, derby-4415-01-aa-customASTprinters.diff, XmlASTPrinter.java
> It would be nice to be able to tell the compiler to use user-written formatters for pretty-printing
Derby's abstract syntax trees. For instance, it would be nice to be able to plug in the AST
printers attached to DERBY-791, including the Eclipse-based tree grapher written by Kay Röpke.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message