~ruther/gtkwave-tcl-generator

ref: 169593ee5568e3fe180e884b3070e8fd7c404a4d gtkwave-tcl-generator/src/file_parser.rs -rw-r--r-- 5.9 KiB
169593ee — Rutherther 2 years ago
Merge pull request #1 from Rutherther/feat/split-logic-respect-dry

Split file_parser logic
0a3ade86 — František Boháček 2 years ago
fix: parse entity and architecture only at beginning

The file parser treated entity and architecture keywords
at beginning and end of architecture equally, and expected
an identifier afterwards. This identifier is not required.

The change made the parser always go past the end of the entity
or architecture declaration.
8eaa1622 — František Boháček 2 years ago
chore: fix formatting using fmt
a2d2abb0 — František Boháček 2 years ago
feat: split logic of context and comment tokens

Respect DRY for file_parser. So far, the file parser did not
just parse the file, it also parsed custom comment "tokens"
and managed a context. This is not the responsibility of the
parser. The parser should just parse the file and return
the parsed parts.
0f5f43a5 — František Boháček 2 years ago
feat: Add parser and tcl generator