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

Update Python frontend to 3.6 #34

Merged
merged 1 commit into from
Jun 12, 2017
Merged

Update Python frontend to 3.6 #34

merged 1 commit into from
Jun 12, 2017

Conversation

waynetee
Copy link
Contributor

@waynetee waynetee commented May 30, 2017

This update is inspired by @alexthornton1 #33

This includes the latest grammar specification (3.6) found here: https://docs.python.org/3/reference/grammar.html

For future reference, in order to update the Python frontend, follow these steps:

  1. Copy the Python grammar specification from the above link to the Parser rules section of Python3.g4
  2. Add a semi-colon to the end of every rule
  3. Replace '[' with '(' and ']' with ')?'
  4. Replace 'ENDMARKER' with 'EOF'
  5. Update JplagPython3Listener.java

The frontend has been tested against the Python Standard Library (https://hg.python.org/cpython/file/3.6/Lib)

@lama0206
Copy link
Contributor

Thanks for your work! Even though your update is inspired by @alexthornton1 #33 - as far as i can tell, it completely includes/replaces/overrides #33. Am I right? If so, I'd merge #34 and close #33.

@waynetee
Copy link
Contributor Author

waynetee commented Jun 11, 2017 via email

@lama0206 lama0206 merged commit 54c31f3 into jplag:master Jun 12, 2017
@lama0206
Copy link
Contributor

:) Thanks!

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.

None yet

2 participants