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

Refactor idea: Define stages, unify the interfaces #11

Open
xiaomi7732 opened this issue Mar 7, 2022 · 0 comments
Open

Refactor idea: Define stages, unify the interfaces #11

xiaomi7732 opened this issue Mar 7, 2022 · 0 comments
Assignees

Comments

@xiaomi7732
Copy link
Owner

xiaomi7732 commented Mar 7, 2022

Shall we unify all PreFilter, Parser, Beautifiers and Filters into:

IFilter
{
    enum Stage { get; }    // PreFiltering, Parsing, Beautifying, Filtering...
    int Priority { get; }     // Priority within the stage;
}
  • The engine doesn't need to predefine the stages any more.
  • It picks up all the registered filters, sort them by Stage then by Priority, and runs them though totally.
@xiaomi7732 xiaomi7732 self-assigned this Mar 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant