Skip to content

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

Merged
sampottinger merged 12 commits into
masterfrom
antlr
Oct 6, 2019
Merged

Move to ANTLR 4 with Java 11 lang features and localization.#5
sampottinger merged 12 commits into
masterfrom
antlr

Conversation

@sampottinger

Copy link
Copy Markdown
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
Copy Markdown
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

Development

Successfully merging this pull request may close these issues.

1 participant