Skip to content

Conversation

xterao
Copy link
Collaborator

@xterao xterao commented Aug 7, 2025

To avoid forgetting to regenerate custom language source code after editing .flex or .bnf files—or when switching branches—this update adds a build dependency to ensure Grammar-Kit tasks are executed before compilation or build.

Implementation Summary

Add a task dependency so that Grammar-Kit runs automatically before compileJava or build-related tasks.

Ensures the latest lexer/parser classes are always generated based on the current grammar definitions.

Benefits

Prevents build failures or runtime errors due to stale generated code

Improves reliability when switching between branches with different grammar definitions

Reduces manual regeneration steps for developers

@xterao xterao self-assigned this Aug 7, 2025
@xterao xterao added the skip-changelog Fixes not included in the update log label Aug 7, 2025
@github-actions github-actions bot added the ci CI/CD fixes label Aug 7, 2025
@xterao xterao linked an issue Aug 7, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci CI/CD fixes skip-changelog Fixes not included in the update log
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Automate Grammar-Kit Execution
1 participant