Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lexer prints token to stdout when multi-line string is attempted to be used #4870

Open
widlarizer opened this issue Jan 28, 2025 · 1 comment
Labels

Comments

@widlarizer
Copy link
Collaborator

Version

0.48

On which OS did this happen?

Linux

Reproduction Steps

read_verilog on this

(* attr="longlonglonglong\
longlonglongString" *)
module alu();
endmodule

Expected Behavior

Legible error about unsupported multi-line strings

Actual Behavior

1. Executing Verilog-2005 frontend: tests/sat/alu.v
Parsing Verilog input from `tests/sat/alu.v' to AST representation.
longlonglonglong\
Generating RTLIL representation for module `\alu'.
Successfully finished Verilog frontend.

and the attribute is silently dropped

@widlarizer widlarizer added the bug label Jan 28, 2025
@widlarizer
Copy link
Collaborator Author

Generated verilog_lexer.cc contains

case 188:
YY_RULE_SETUP
#line 600 "frontends/verilog/verilog_lexer.l"
ECHO;
	YY_BREAK

ECHO is a macro to /* Copy whatever the last rule matched to the standard output. */

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant