Skip to content

Generate dummy grammar include in release mode too.#321

Merged
bors[bot] merged 1 commit intopest-parser:masterfrom
birkenfeld:master
Oct 31, 2018
Merged

Generate dummy grammar include in release mode too.#321
bors[bot] merged 1 commit intopest-parser:masterfrom
birkenfeld:master

Conversation

@birkenfeld
Copy link
Contributor

The conditional was probably added because it was in the original
hint to do this manually in the documentation. There doesn't seem
to be a downside since the constant will be thrown away in any
case, being unused.

Fixes #320.

Copy link
Contributor

@dragostis dragostis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! @CAD97, any thoughts on this?

Copy link
Contributor

@CAD97 CAD97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. We already rely on optimizing out much more complicated structures to toss out the unused unicode tables.

You'll just need to fix generator::tests::generate_complete to not expect the cfg.

The conditional was probably added because it was in the original
hint to do this manually in the documentation.  There doesn't seem
to be a downside since the constant will be thrown away in any
case, being unused.

Fixes #320.
@birkenfeld
Copy link
Contributor Author

Done.

@dragostis
Copy link
Contributor

bors r+

bors bot added a commit that referenced this pull request Oct 31, 2018
321: Generate dummy grammar include in release mode too. r=dragostis a=birkenfeld

The conditional was probably added because it was in the original
hint to do this manually in the documentation.  There doesn't seem
to be a downside since the constant will be thrown away in any
case, being unused.

Fixes #320.

Co-authored-by: Georg Brandl <georg@python.org>
@bors
Copy link
Contributor

bors bot commented Oct 31, 2018

Build succeeded

@bors bors bot merged commit 552f6d8 into pest-parser:master Oct 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants