diff options
| author | Nam Cao <namcao@linutronix.de> | 2026-06-19 07:52:05 +0200 |
|---|---|---|
| committer | Gabriele Monaco <gmonaco@redhat.com> | 2026-07-20 13:54:26 +0200 |
| commit | eb46aecc1269ccc7e3a50129bde179a9d244c67f (patch) | |
| tree | 5fe0e57510ac508d788675a34b3166d794a13abc /tools/perf/scripts/python | |
| parent | ae2e47b177478b794e29db389fce262cbf3ab9c6 (diff) | |
verification/rvgen: Introduce a parse tree for automata using Lark
The DOT parsing scripts directly parse the raw text and they are quite
fragile. If the input dot files' formats are slightly changed (for
instance, by breaking long some lines which is allowed by the DOT language
defined by graphviz), the scripts would fail.
To make the scripts robust, the parser should be implemented based on the
dot language specification, not based on how the existing dot files look.
As a first step, use Lark to implement a Parser based on the graphviz dot
language specification. The resulting parse tree is not used yet, but the
existing scripts will be converted one by one to use this new parse tree in
the follow-up commits.
Reviewed-by: Gabriele Monaco <gmonaco@redhat.com>
Signed-off-by: Nam Cao <namcao@linutronix.de>
Link: https://lore.kernel.org/r/f816bce4cc7c48d0b6b6a28a7029459df69d6a71.1781847583.git.namcao@linutronix.de
Signed-off-by: Gabriele Monaco <gmonaco@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
