WIP:preparser: adding 2 optional compiler directives delay_mode_path , delay_mode_distributed#110
WIP:preparser: adding 2 optional compiler directives delay_mode_path , delay_mode_distributed#110maor1993 wants to merge 4 commits intodalance:masterfrom
Conversation
…delay_mode_distributed
|
Thank you for your contribution! |
|
I'll try this tomorrow :)
|
|
Yup, cascading alts worked 🥳 I will mention this commit misses support for |
|
I've done some more testing and It seems I've implemented something slightly wrong here, when I have a file with one of these directives defined and a module defined afterwards it seems to break the syntax tree. |
These 2 compiler directives are defined in Annex E of the 1800-2017
I ran into this while attempting to parse some stdcell libraries.
I unfortunately can't seem to add all of the annex directives as the
nomcrate seems to have an issuedigging deeper when attempting to use the alt function in
sv-parser-parser/src/general/compiler_directives.rs:L9the nom alt function supports only up to 21 elements, placing all of them breaks this.
regardless, without these two directives I can't parse said Verilog.