Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix parsing arrays | René Kijewski | 2023-07-31 | 2 | -5/+90 |
| | | | | | | | | | | | | | | | | This change * allows using empty arrays `[]` in expessions, * adds a cut when the leading `[` was encountered, and * fixes the interaction between arrays and boolean OR. IMO the restriction that you couldn't use empty arrays is not needed. The missing cut made error messages slictly worse if you forget to add the closing `]`. Filter expressions must not have white spaces before the pipe `|`. The white space is used to tell a filter expressions, and `std::ops::Or` apart. | ||||
* | Fix parsing calls | René Kijewski | 2023-07-31 | 2 | -4/+31 |
| | | | | | | | This change: * adds a cut when the leading `(` was encountered, and * fixed the interaction between call expressions and boolean OR. | ||||
* | parser: rename block to nodes | Dirkjan Ochtman | 2023-07-31 | 1 | -12/+13 |
| | |||||
* | parser: reorder items in node module | Dirkjan Ochtman | 2023-07-31 | 1 | -50/+50 |
| | |||||
* | parser: move Expr parser helpers into callers | Dirkjan Ochtman | 2023-07-31 | 1 | -53/+54 |
| | |||||
* | parser: move single expr parsers into Expr impl | Dirkjan Ochtman | 2023-07-31 | 1 | -63/+63 |
| | |||||
* | parser: move binary operator parsers into Expr impl | Dirkjan Ochtman | 2023-07-31 | 1 | -71/+71 |
| | |||||
* | parser: flatten top-level Expr interface | Dirkjan Ochtman | 2023-07-31 | 2 | -36/+28 |
| | |||||
* | parser: move suffix parsers into impl block | Dirkjan Ochtman | 2023-07-31 | 1 | -53/+61 |
| | |||||
* | parser: move cond parsers into type impls | Dirkjan Ochtman | 2023-07-31 | 1 | -39/+43 |
| | |||||
* | parser: move parser helpers into callers | Dirkjan Ochtman | 2023-07-31 | 1 | -35/+35 |
| | |||||
* | parser: move when parsers into impl block | Dirkjan Ochtman | 2023-07-31 | 1 | -47/+50 |
| | |||||
* | parser: define a struct for Match | Dirkjan Ochtman | 2023-07-31 | 1 | -3/+22 |
| | |||||
* | parser: define a struct for Cond | Dirkjan Ochtman | 2023-07-31 | 1 | -3/+19 |
| | |||||
* | parser: move node parsers into impl block | Dirkjan Ochtman | 2023-07-31 | 2 | -410/+406 |
| | |||||
* | parser: move Whitespace parser into method | Dirkjan Ochtman | 2023-07-31 | 1 | -144/+142 |
| | |||||
* | parser: move impl blocks closer to type definitions | Dirkjan Ochtman | 2023-07-31 | 1 | -12/+12 |
| | |||||
* | parser: simplify top-level parser match | Dirkjan Ochtman | 2023-07-31 | 1 | -29/+24 |
| | |||||
* | parser: add top-level Ast type | Dirkjan Ochtman | 2023-07-31 | 2 | -115/+148 |
| | |||||
* | parser: move nested_parenthesis() helper into node module | Dirkjan Ochtman | 2023-07-31 | 2 | -51/+49 |
| | |||||
* | parser: move helper functions into State impl | Dirkjan Ochtman | 2023-07-31 | 2 | -93/+92 |
| | |||||
* | parser: move trait impl closer to type definition | Dirkjan Ochtman | 2023-07-31 | 2 | -11/+11 |
| | |||||
* | parser: move single-use functions into caller | Dirkjan Ochtman | 2023-07-31 | 1 | -13/+13 |
| | |||||
* | Extract askama_parser crate | Dirkjan Ochtman | 2023-07-31 | 5 | -0/+2072 |