You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Rick Hillegas (JIRA)" <ji...@apache.org> on 2009/10/19 21:33:59 UTC

[jira] Created: (DERBY-4415) Make it easy to plug custom AST printers into the compiler

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


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.


[jira] Updated: (DERBY-4415) Make it easy to plug custom AST printers into the compiler

Posted by "Rick Hillegas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-4415?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rick Hillegas updated DERBY-4415:
---------------------------------

    Attachment: XmlASTPrinter.java

Attaching a new version of the XML tree printer. This makes the following improvements:

1) Moves the phase marker (parse/bind/optimize) into an attribute so that, when a tree is collapsed, you can see at a glance what compilation phase it belongs to. This helps you quickly browse to the right tree.

2) Replace angle brackets in text strings with the corresponding xml entities so that the browser doesn't choke on these strings.

> 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, ASTInspector.java, derby-4415-01-aa-customASTprinters.diff, derby-4415-01-ab-customASTprinters.diff, XmlASTPrinter.java, XmlASTPrinter.java, 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.


[jira] Updated: (DERBY-4415) Make it easy to plug custom AST printers into the compiler

Posted by "Rick Hillegas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-4415?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rick Hillegas updated DERBY-4415:
---------------------------------

    Attachment: derby-4415-01-aa-customASTprinters.diff

Attaching derby-4415-01-aa-customASTprinters. This makes it possible to plug custom AST printers into the compiler. I am running regression tests now.

Touches the following files:

M      java/engine/org/apache/derby/iapi/sql/conn/LanguageConnectionContext.java
M      java/engine/org/apache/derby/impl/sql/conn/GenericLanguageConnectionContext.java

Add accessor methods for storing a custom AST printer in the session's compiler state.


M      java/engine/org/apache/derby/iapi/sql/compile/Visitor.java

Add methods to mark the beginning and end of a printing session.


M      java/engine/org/apache/derby/impl/sql/GenericStatement.java

If the custom AST printer is set, then use it after each transformation of the AST: 1) after parsing, 2) after binding, and 3) after optimization.


M      java/engine/org/apache/derby/impl/sql/compile/HasVariantValueNodeVisitor.java
M      java/engine/org/apache/derby/impl/sql/compile/VerifyAggregateExpressionsVisitor.java
M      java/engine/org/apache/derby/impl/sql/compile/ReplaceAggregatesWithCRVisitor.java
M      java/engine/org/apache/derby/impl/sql/compile/HasCorrelatedCRsVisitor.java
M      java/engine/org/apache/derby/impl/sql/compile/VTIDeferModPolicy.java
M      java/engine/org/apache/derby/impl/sql/compile/CollectNodesVisitor.java
M      java/engine/org/apache/derby/impl/sql/compile/SubstituteExpressionVisitor.java
M      java/engine/org/apache/derby/impl/sql/compile/HasNodeVisitor.java
M      java/engine/org/apache/derby/impl/sql/compile/BaseTableNumbersVisitor.java
M      java/engine/org/apache/derby/impl/sql/compile/ReferencedTablesVisitor.java
M      java/engine/org/apache/derby/impl/sql/compile/RemapCRsVisitor.java

Add vacuous implementations of the new begin() and end() brackets to our existing Visitors.


> 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: derby-4415-01-aa-customASTprinters.diff
>
>
> 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.


[jira] Updated: (DERBY-4415) Make it easy to plug custom AST printers into the compiler

Posted by "Rick Hillegas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-4415?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rick Hillegas updated DERBY-4415:
---------------------------------

    Attachment: XmlASTPrinter.java

Attaching a Visitor which prints the parsed, bound, and optimized trees as xml. This tree printer can be poked into the compiler using the previously attached database procedure.


> 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.


[jira] Commented: (DERBY-4415) Make it easy to plug custom AST printers into the compiler

Posted by "Rick Hillegas (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-4415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12767902#action_12767902 ] 

Rick Hillegas commented on DERBY-4415:
--------------------------------------

Thanks, Knut. Committed derby-4415-01-ab-customASTprinters.diff at subversion revision 827760.

> 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, ASTInspector.java, derby-4415-01-aa-customASTprinters.diff, derby-4415-01-ab-customASTprinters.diff, XmlASTPrinter.java, 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.


[jira] Commented: (DERBY-4415) Make it easy to plug custom AST printers into the compiler

Posted by "Knut Anders Hatlen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-4415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12767889#action_12767889 ] 

Knut Anders Hatlen commented on DERBY-4415:
-------------------------------------------

Thanks, Rick. The latest patch looks good to me (perhaps except some lines exceeding 80 chars), so +1 from me.

> 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, ASTInspector.java, derby-4415-01-aa-customASTprinters.diff, derby-4415-01-ab-customASTprinters.diff, XmlASTPrinter.java, 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.


[jira] Updated: (DERBY-4415) Make it easy to plug custom AST printers into the compiler

Posted by "Rick Hillegas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-4415?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rick Hillegas updated DERBY-4415:
---------------------------------

    Attachment: derby-4415-01-ab-customASTprinters.diff

Thanks for the quick feedback, Knut. I agree that a separate ASTVisitor interface is a great idea. Attaching a new, simpler version of this patch: derby-4415-01-ab-customASTprinters.diff.

Touches the following files:

A      java/engine/org/apache/derby/iapi/sql/compile/ASTVisitor.java

Interface for user-written node Visitors. Provides initialization and teardown methods.


M      java/engine/org/apache/derby/iapi/sql/conn/LanguageConnectionContext.java
M      java/engine/org/apache/derby/impl/sql/conn/GenericLanguageConnectionContext.java

Adds methods for poking a user-written node Visitor into the compiler's state variable.


M      java/engine/org/apache/derby/impl/sql/GenericStatement.java

Adds calls to the user-written node Visitor if one has been supplied. The Visitor is called for each processing phase: parse, bind, and optimize.


> 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, derby-4415-01-ab-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.


[jira] Updated: (DERBY-4415) Make it easy to plug custom AST printers into the compiler

Posted by "Rick Hillegas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-4415?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rick Hillegas updated DERBY-4415:
---------------------------------

    Attachment: XmlASTPrinter.java

Attaching a new version of XmlASTPrinter, which implements the visitChildrenFirst() method which was added to the Visitor interface recently.

> 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, ASTInspector.java, derby-4415-01-aa-customASTprinters.diff, derby-4415-01-ab-customASTprinters.diff, XmlASTPrinter.java, XmlASTPrinter.java, XmlASTPrinter.java, 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.


[jira] Commented: (DERBY-4415) Make it easy to plug custom AST printers into the compiler

Posted by "Rick Hillegas (JIRA)" <ji...@apache.org>.
    [ 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.


[jira] Updated: (DERBY-4415) Make it easy to plug custom AST printers into the compiler

Posted by "Rick Hillegas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-4415?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rick Hillegas updated DERBY-4415:
---------------------------------

    Attachment: ASTInspector.java

Attaching a database procedure which can poke a custom AST printer into the compiler after the patch is applied.

> 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
>
>
> 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.


[jira] Issue Comment Edited: (DERBY-4415) Make it easy to plug custom AST printers into the compiler

Posted by "Rick Hillegas (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-4415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12767494#action_12767494 ] 

Rick Hillegas edited comment on DERBY-4415 at 10/19/09 7:56 PM:
----------------------------------------------------------------

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;

The custom printer writes the parsed, bound, and optimized trees as xml into derbyAST.xml. You can then pull that printout into your favorite tool for browsing xml. I use Firefox for this. Firefox lets me collapse and expands elements in this printout. Since each node in an AST is printed as a separate element, this is very handy for revealing the structure of a plan and for hiding the details you are not interested in.

call setInspector( null );


      was (Author: rhillegas):
    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.


[jira] Updated: (DERBY-4415) Make it easy to plug custom AST printers into the compiler

Posted by "Kathey Marsden (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-4415?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kathey Marsden updated DERBY-4415:
----------------------------------

    Fix Version/s: 10.6.0.0
         Assignee: Rick Hillegas

> 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
>            Assignee: Rick Hillegas
>            Priority: Minor
>             Fix For: 10.6.0.0
>
>         Attachments: ASTInspector.java, ASTInspector.java, derby-4415-01-aa-customASTprinters.diff, derby-4415-01-ab-customASTprinters.diff, XmlASTPrinter.java, XmlASTPrinter.java, XmlASTPrinter.java, 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.


[jira] Commented: (DERBY-4415) Make it easy to plug custom AST printers into the compiler

Posted by "Knut Anders Hatlen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-4415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12767501#action_12767501 ] 

Knut Anders Hatlen commented on DERBY-4415:
-------------------------------------------

Hi Rick,

This looks like a useful addition. Just a thought, but would it be better to create a new interface (say ASTVisitor) that extended Visitor so that only those visitors that actually use the begin() and end() methods need to implement them?

> 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.


[jira] Closed: (DERBY-4415) Make it easy to plug custom AST printers into the compiler

Posted by "Rick Hillegas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-4415?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rick Hillegas closed DERBY-4415.
--------------------------------

    Resolution: Fixed

> 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, ASTInspector.java, derby-4415-01-aa-customASTprinters.diff, derby-4415-01-ab-customASTprinters.diff, XmlASTPrinter.java, 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.


[jira] Updated: (DERBY-4415) Make it easy to plug custom AST printers into the compiler

Posted by "Rick Hillegas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-4415?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rick Hillegas updated DERBY-4415:
---------------------------------

    Attachment: XmlASTPrinter.java

Attaching a new version of the example Visitor, which implements the changes in the patch: XmlASTPrinter

> 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, ASTInspector.java, derby-4415-01-aa-customASTprinters.diff, derby-4415-01-ab-customASTprinters.diff, XmlASTPrinter.java, 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.


[jira] Updated: (DERBY-4415) Make it easy to plug custom AST printers into the compiler

Posted by "Rick Hillegas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-4415?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rick Hillegas updated DERBY-4415:
---------------------------------

    Attachment: ASTInspector.java

Attaching a new version of the database procedure which pokes user-written Visitors into the compiler: ASTInspector

> 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, ASTInspector.java, derby-4415-01-aa-customASTprinters.diff, derby-4415-01-ab-customASTprinters.diff, XmlASTPrinter.java, 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.