« Return to Thread: [janino-dev] [jira] Created: (JANINO-91) Add support for returning tokens of whitespace

[janino-dev] [jira] Commented: (JANINO-91) Add support for returning tokens of whitespace

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View in Thread


    [ http://jira.codehaus.org/browse/JANINO-91?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=146050#action_146050 ]

Adam Heath commented on JANINO-91:
----------------------------------

Well, I don't this feature anymore.  I've rewritten my code, so that I extend SimpleCompiler, and peek/parse out the stuff I need, adding it to a CompilationUnit as nescessary.

> Add support for returning tokens of whitespace
> ----------------------------------------------
>
>                 Key: JANINO-91
>                 URL: http://jira.codehaus.org/browse/JANINO-91
>             Project: Janino
>          Issue Type: New Feature
>            Reporter: Adam Heath
>            Assignee: Arno Unkrig
>            Priority: Minor
>         Attachments: feature_swallowable_whitespace_comment_tokens.patch
>
>
> I have code that filters package/import stmts from source files, then wraps the remaining code in a class definition.  To keep line numbers identical after adding the class definition, I need to have comments and whitespace parsed an return to my application.  The attached patch does this.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


 « Return to Thread: [janino-dev] [jira] Created: (JANINO-91) Add support for returning tokens of whitespace