refactor(ChartFormat): use Antlr as parser backend#90
Open
freeze-dolphin wants to merge 25 commits intoArcthesia:trunkfrom
Open
refactor(ChartFormat): use Antlr as parser backend#90freeze-dolphin wants to merge 25 commits intoArcthesia:trunkfrom
freeze-dolphin wants to merge 25 commits intoArcthesia:trunkfrom
Conversation
Fix several bugs with the new test units Allow spaces in `Word`(grammar)
Rebase on latest branch
Fix several bugs with the new test units Allow spaces in `Word`(grammar)
# Conflicts: # Assets/Scripts/ChartFormat/Types/RawTimingGroup.cs
…parser Fix several minor bugs
fix parser to cut off the space on `Word` tails
This reverts commit a7ca10a
…cNote on Compose
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
by utilizing antlr, we can achieve for example:
add a dictionary after the
arc()body like:timing groups can be read regardless of the indention of sub-events:
other cool things...
Because the chart is firstly parsed into an AST, you can easily extend the functionality of the format by processing the syntax tree (without directly manipulate the text things)
Todo
designantimpl in GameplayImplemented
import chart files with other format in Compose
2026-03-07.19-19-23.mp4
designant: allow custom trace color, without breaking project trace color settingsthe chart format belike:
arcresolution: add a standalone resolution param for arc