scrabsha / expandable

What if we could check declarative macros before using them?
MIT License
45 stars 4 forks source link

feat: generate a possible invalid expansion when an error is found #49

Closed scrabsha closed 5 months ago

scrabsha commented 5 months ago

This change affects only expandable-impl (ie: the backend). The frontend will be updated once I have a clear idea of how to leverage this.

While this is not documented, the algorithm favors shorter traces, with as little repetition as possible. This may change in the future.

scrabsha commented 5 months ago

The output is not deterministic because we are iterating over hashmaps, which is not deterministic.

This was not an issue before because we did not care about what repetitions happened before finding the syntax error.

scrabsha commented 5 months ago

The deterministic issues will be fixed by #50.