Skip to content

Any tutorials on this project? #31

Description

@rchlin

There is no wiki either.

Activity

  1. rchlin commented on Nov 12, 2015

    @rchlin
    Author

    And the Preprocessor seemed to keep comments by default, and can not be disabled!

  2. shevek commented on Nov 16, 2015

    @shevek
    Owner

    CppReader behaves as a Java Reader. Preprocessor has its own lexer-like API if you want to use it directly. Keeping comments can be enabled or disabled using Feature.KEEPCOMMENTS or Feature.KEEPALLCOMMENTS. Overall documentation is available here: https://shevek.github.io/jcpp/docs/javadoc/

  3. rchlin commented on Nov 16, 2015

    @rchlin
    Author

    If I use Preprocessor directly, Feature.KEEPCOMMENTS or Feature.KEEPALLCOMMENTS will not take effect and pp.token() willl always keep comments. In order to disable comments, I have to use LexerSource or CppReader.

  4. ooxi commented on Nov 16, 2015

    @ooxi

    Please don't reuse issues for new questions. A minimal code sample would be great so reproduce your bug report.

  5. shevek commented on Nov 18, 2015

    @shevek
    Owner

    Re: KEEPCOMMENTS: I didn't check again, but that's probably true, but it's fairly easy to filter the returned token stream by type yourself. Filtering comments within the API is only really important if you don't have access to the token stream (and hence types), as in CppReader. I don't think LexerSource has anything to do with comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions