Skip to content

Commit

Permalink
derive: refactor parser
Browse files Browse the repository at this point in the history
`parser.rs` was a single file containing almost 2000 lines.

This PR split the file into multiple, smaller files. `Expr`, `Node`, and
`Target` each get an own file. Each struct gets a `parse()` method that
return `Result<Self>`, and every other detail is private to the file.

This PR should make this essential part of Askama more easy to
understand, and make future modifications easier.
  • Loading branch information
Kijewski authored and djc committed Jan 30, 2023
1 parent 63b98ec commit 7b6f1df
Show file tree
Hide file tree
Showing 5 changed files with 1,999 additions and 1,940 deletions.
Loading

0 comments on commit 7b6f1df

Please sign in to comment.