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

Move to ANTLR 4 with Java 11 lang features and localization. #5

Merged
merged 12 commits into from Oct 6, 2019

Conversation

sampottinger
Copy link
Owner

Introduces ANTLR4 and Java 8 language feature support within IDE while also adding additional hooks for localization of syntax error messages, addressing processing/processing#3054 and processing/processing#3055.

The PR is broadly a continuation of processing/processing#3055, bringing it up to speed with the latest Processing master plus the changes introduced at processing/processing#5753. Requires processing/processing#5753 as pre-requisite. This introduces a number of edits beyond processing/processing#3055 beyond compatibility with current Processing master and processing/processing#5753 including:

  • Update to the grammar itself
  • Change ANTLR listeners to emit TextTransform.Edit to unify JDT-based PreprocessingService and JavaBuild, removing code with duplicate purpose.
  • Introduction of syntax error rewriting with support for localization.
  • Addition of complete localized strings set for English and Spanish.
  • Addition of partial localized strings set for other languages.
  • Refactor of ANTLR-related code for testability and readability
  • Expansion of tests including full parse tests for new Java features (type inference, lambdas).

Introduces ANTLR4 and Java 8 language feature support within IDE while also adding additional hooks for localization of syntax error messages, addressing processing/processing#3054 and processing/processing#3055.

The PR is broadly a continuation of processing/processing#3055, bringing it up to speed with the latest Processing master plus the changes introduced at processing/processing#5753. **Requires processing/processing#5753 as pre-requisite.** This introduces a number of edits beyond processing/processing#3055 beyond compatibility with current Processing master and processing/processing#5753 including:

 - Update to the grammar itself
 - Change ANTLR listeners to emit `TextTransform.Edit` to unify JDT-based `PreprocessingService` and `JavaBuild`, removing code with duplicate purpose.
 - Introduction of syntax error rewriting with support for localization.
 - Addition of complete localized strings set for English and Spanish.
 - Addition of partial localized strings set for other languages.
 - Refactor of ANTLR-related code for testability and readability
 - Expansion of tests including full parse tests for new Java features (type inference, lambdas).
@sampottinger
Copy link
Owner Author

Ugh sorry for the travis noise.

@sampottinger sampottinger merged commit ee299ef into master Oct 6, 2019
sampottinger pushed a commit that referenced this pull request Oct 11, 2019
Update ant / javac language targets
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
1 participant