-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9dbcb78
commit 40277f7
Showing
9 changed files
with
150 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.table { | ||
display: block; | ||
overflow-x: auto; | ||
white-space: nowrap; | ||
} | ||
|
||
.docutils .csv-table { | ||
table-layout: auto; /* Let the table resize based on its content */ | ||
width: 100%; /* Ensure the table takes the full width */ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
==================== | ||
Grammars and Parsing | ||
==================== | ||
|
||
In order to process arbitrarily formated textual information, we resort to EBNF grammars and parsing. To achieve that, | ||
we depend on `Lark <https://lark-parser.readthedocs.io/en/latest/>`_. The structure of the ``grammar`` directory is the | ||
following. Each ``*.lark`` file nests a Lark-compliant grammar. We differentiate between two types of grammars. | ||
|
||
1. Grammars related to segments of the textual fault report (rpt) of zoix, which are prefixed with ``frpt_`` | ||
2. Grammars related to traces, which are prefixed with ``trace_`` | ||
|
||
Each grammar must have its corresponding ``Transformer`` to traverse the AST and generate data structures. Specifically for the trace | ||
related grammars, what is expected from the transformer is to transform the AST into a CSV-ready format as a list of strings. | ||
|
||
Whenever a new grammar is added with its corresponding transformer in the ``transformers.py`` the corresponding factories mush be updated | ||
accordingly. | ||
|
||
.. automodule:: grammars.transformers | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,7 @@ Version 0.5.0 | |
|
||
asm | ||
zoix | ||
grammar | ||
a0 | ||
utils | ||
config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters