argotorg / argotorg/solidity

Replace rule list with "DSL"

Open
#7,520 13 comments 0 reactions 0 assignees View on GitHub
high effort medium impact must have eventually optimizer refactor
Dominant language
C++
Stars
25.7k
Forks
6.2k
Avg merge
1d 11h
Merged PRs (30d)
21

Description

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.

Contributor guide

Open the contributing guide

Research direction

The issue names no files, tests, or entry points and begins with “TBD.” Start by locating the existing rule-list implementation and the Yul expression or pattern handling. The proposed direction mentions precondition, match, and replacement expressions, but the issue provides no acceptance criteria for what done means.

Written by the indexing model from the issue text.

Assessment

Tech stack
solidity
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.