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

Standardize and unify MML parsing #16

Open
YuriSizov opened this issue May 24, 2024 · 0 comments
Open

Standardize and unify MML parsing #16

YuriSizov opened this issue May 24, 2024 · 0 comments
Labels
enhancement A new feature or feature improvement

Comments

@YuriSizov
Copy link
Owner

YuriSizov commented May 24, 2024

Currently there are many facilities in SiON's implementation for parsing MML strings. There is an obvious MMLParser (which, despite its name, is actually a very specific tool for the sequencer module). And there are bits in the TranslatorUtil as well.

Moreover, parsing is done using regular expressions, which is not the most efficient or versatile way to do this. I think an obvious improvement would be to have a dedicated, abstract, standard-following parser utility. It should be entirely possible to create one from scratch, but it's also likely there one already exists. Quick search yields this tinymml C library, for instance.

Should we still need to modify it or implement one ourselves, here's a good spec explanation:

@YuriSizov YuriSizov added the enhancement A new feature or feature improvement label May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A new feature or feature improvement
Projects
None yet
Development

No branches or pull requests

1 participant