Skip to content

Replace rule list with "DSL" #7520

Open
@ekpyron

Description

@ekpyron

TBD

We can probably just use a triplet of Yul expressions, resp. expression patterns:

  • precondition: evaluates to non-zero, if the rule can be applied
  • match: pattern expression for matching the rule
  • replacement: pattern expression to replace the matched code snippet

The match expression can use symbolic pattern variables for matching variables and constants and (at a later stage when extending this from expressions to statements) arbitrary code blocks. Precondition and replacement expressions can use any pattern variables used in the match expression.

Metadata

Metadata

Assignees

No one assigned

    Labels

    high effortA lot to implement but still doable by a single person. The task is large or difficult.medium impactDefault level of impactmust have eventuallySomething we consider essential but not enough to prevent us from releasing Solidity 1.0 without it.optimizerrefactor

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions