You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see comments after preprocessing, but I get weird behaviour after a macro expansion: Input:
`define IMPORT(__pkg) \
import __pkg::*;
modulelala;
// pragma translate_off// Test run
`IMPORT(body2_import_pkg) // this is a macro
always_comb begin
a <= b;
end// pragma translate_onendmodule
Expected:
modulelala;
// pragma translate_off// Test run
import body2_import_pkg::*; // this is a macro
always_comb begin
a <= b;
end// pragma translate_onendmodule
Observed:
modulelala;
// pragma translate_off// Test run
import body2_import_pkg::*; // this is a macroalways_comb begin
a <= b;
end// pragma translate_onendmodule
Even without comments, the indentation becomes strange after macro expansion but it never triggers any illegal behavior, only when line comments (//) are enabled this becomes problematic.
The text was updated successfully, but these errors were encountered:
Thanks for this really nice parser. I know that a complete SV parser is a huge undertaking.
I would be interested in similar behavior to #4. I can see that the preprocessor strips comments so they don't appear in the AST later.
When adding (
preprocessor.rs:258
):I see comments after preprocessing, but I get weird behaviour after a macro expansion:
Input:
Expected:
Observed:
Even without comments, the indentation becomes strange after macro expansion but it never triggers any illegal behavior, only when line comments (
//
) are enabled this becomes problematic.The text was updated successfully, but these errors were encountered: