Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | parser: limit target recursion | Dirkjan Ochtman | 2024-01-11 | 1 | -14/+25 |
| | |||||
* | Allow trailing comma in macro definition and call | Guillaume Gomez | 2023-12-07 | 1 | -1/+1 |
| | |||||
* | Added testing for reserved variable names | max | 2023-12-07 | 1 | -4/+20 |
| | | | | Signed-off-by: max <gmx.sht@gmail.com> | ||||
* | Allow to pass named arguments to macro calls | Guillaume Gomez | 2023-11-28 | 1 | -1/+1 |
| | |||||
* | Enhance match to include multiple targets (#911) | PizzasBear | 2023-11-22 | 1 | -0/+13 |
| | | | Signed-off-by: max <gmx.sht@gmail.com> | ||||
* | Derive Clone for Expr and Target | Andrew Dona-Couch | 2023-11-13 | 1 | -1/+1 |
| | |||||
* | Create a type alias for all `IResult` to simplify code reading | Guillaume Gomez | 2023-10-25 | 1 | -42/+33 |
| | |||||
* | Improve error for `elif` keyword | Guillaume Gomez | 2023-10-25 | 1 | -1/+9 |
| | |||||
* | Improve error for invalid name used in `endmacro` | Guillaume Gomez | 2023-10-25 | 1 | -1/+7 |
| | |||||
* | Improve error for invalid name used in `endblock` | Guillaume Gomez | 2023-10-25 | 1 | -1/+29 |
| | |||||
* | Create `ErrorContext` type | Guillaume Gomez | 2023-10-25 | 1 | -31/+45 |
| | |||||
* | Pass `Node` parsing level to expressions | René Kijewski | 2023-09-28 | 1 | -15/+15 |
| | |||||
* | Limit nesting in parser nodes, too | René Kijewski | 2023-09-28 | 1 | -4/+8 |
| | |||||
* | Require Expr::parse() callers to supply Level | Dirkjan Ochtman | 2023-09-28 | 1 | -6/+12 |
| | |||||
* | Move Level into the crate root | Dirkjan Ochtman | 2023-09-28 | 1 | -2/+1 |
| | |||||
* | Yield a parser error when defining a macro named 'super' | Dirkjan Ochtman | 2023-09-28 | 1 | -4/+5 |
| | |||||
* | Limit expression nesting level to avoid stack overflows | Dirkjan Ochtman | 2023-09-28 | 1 | -1/+2 |
| | |||||
* | Parse paths and identifiers only once | René Kijewski | 2023-08-03 | 1 | -3/+12 |
| | | | | | | | | | | | | | | In the old implementation each variable in an expression would be parsed up to three times: * Try to parse a path because it contains a leading double colon, or infix double colons. * Try to parse it as path again by scanning for an identifier that contains an upper case character. * Fall back to scanning for any identifier. This PR turns all three steps into one, without the need for backtracking. | ||||
* | parser: fix white space issues in macro parsing | René Kijewski | 2023-08-02 | 1 | -2/+2 |
| | |||||
* | parser: import `parser::{Expr, Node}` | René Kijewski | 2023-08-01 | 1 | -2/+2 |
| | |||||
* | parser: `node::Loop` is much bigger than the other variants | René Kijewski | 2023-08-01 | 1 | -2/+2 |
| | |||||
* | parser: move test for completeness | René Kijewski | 2023-08-01 | 1 | -6/+6 |
| | |||||
* | parser: add type for `Node::Comment` | René Kijewski | 2023-08-01 | 1 | -43/+57 |
| | |||||
* | parser: add `expr::Loop::parse()` | René Kijewski | 2023-08-01 | 1 | -68/+70 |
| | |||||
* | parser: remove re-exports `parser::{node,expr}::*` | René Kijewski | 2023-08-01 | 1 | -2/+2 |
| | |||||
* | parser: add type for `Node::Extends` | René Kijewski | 2023-08-01 | 1 | -7/+14 |
| | |||||
* | parser: add type for `Node::Include` | René Kijewski | 2023-08-01 | 1 | -12/+26 |
| | |||||
* | parser: rename `Node::Cond` into `If` and add type | René Kijewski | 2023-08-01 | 1 | -33/+47 |
| | |||||
* | parser: add type for `Node::Let` | René Kijewski | 2023-08-01 | 1 | -25/+33 |
| | |||||
* | parser: add type for `Node::Raw` | René Kijewski | 2023-08-01 | 1 | -28/+37 |
| | |||||
* | parser: add type for `Node::Lit` | René Kijewski | 2023-08-01 | 1 | -30/+47 |
| | |||||
* | parser: add type for `Node::BlockDef` | René Kijewski | 2023-08-01 | 1 | -29/+44 |
| | |||||
* | parser: add type for `Node::Match` | René Kijewski | 2023-08-01 | 1 | -35/+53 |
| | |||||
* | parser: add type for `Node::Call` | René Kijewski | 2023-08-01 | 1 | -19/+37 |
| | |||||
* | parser: add type for `Node::Import` | René Kijewski | 2023-08-01 | 1 | -16/+32 |
| | |||||
* | parser: let `Macro` know its name | René Kijewski | 2023-08-01 | 1 | -52/+53 |
| | |||||
* | parser: remove panicking `From<&str> for Whitespace` | René Kijewski | 2023-08-01 | 1 | -12/+5 |
| | |||||
* | 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: flatten top-level Expr interface | Dirkjan Ochtman | 2023-07-31 | 1 | -1/+1 |
| | |||||
* | 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 | 1 | -388/+404 |
| | |||||
* | 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: move helper functions into State impl | Dirkjan Ochtman | 2023-07-31 | 1 | -32/+31 |
| | |||||
* | parser: move trait impl closer to type definition | Dirkjan Ochtman | 2023-07-31 | 1 | -0/+11 |
| |