Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output pure parser source for empty --export-var #143

Closed
wants to merge 2 commits into from

Conversation

curvedmark
Copy link

If the command line specifies pegjs --export-var '', it should only output pure parser source.

One use case is to write a template file

var parser = @CONTENT

and then replace @CONTENT with the generated parser source with another tool.

This mitigates #140

If the command line specifies `pegjs --export-var ''`, it should only output pure parser source.
To follow the author's coding style
@dmajda
Copy link
Contributor

dmajda commented Jan 14, 2013

Good idea. I did few stylistic changes and commited the change in 2dc39bb.

Thanks!

@dmajda dmajda closed this Jan 14, 2013
Sciumo pushed a commit to Sciumo/pegjs that referenced this pull request Jan 2, 2014
This will make embedding generated parsers into other files easier.

Based on a patch by Glen Huang:

  pegjs#143
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.

2 participants