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

Split and modularize the parser #88

Closed
netvl opened this issue Apr 11, 2015 · 0 comments
Closed

Split and modularize the parser #88

netvl opened this issue Apr 11, 2015 · 0 comments

Comments

@netvl
Copy link
Owner

netvl commented Apr 11, 2015

Currently the parser occupies a single module file. It is really inconvenient since it is has more than thousand lines of code and hence is very unwieldy for navigation and modification. It was written before I knew how to split large implementations across different modules. This has to be refactored.

Basically, I want to split parser implementation into several submodules, each responsible for different part of XML grammar. Each module should provide a method or a couple of methods to parse the corresponding grammar part, and these methods should then be called from the parent module - essentially the same thing I did in md.rs.

This has to be done ASAP as this prevents easy modifications in the parser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant