3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-07 06:33:24 +00:00

Factor parse_vector_range out into its own function.

This also fixes the parsing a bit. It was consuming 1 fewer token than
required.
This commit is contained in:
Sean Luchen 2025-03-31 10:46:18 -07:00
parent 0a6d9f4dc9
commit ac1033ecd5
2 changed files with 44 additions and 37 deletions

View file

@ -106,6 +106,7 @@ namespace Yosys
int lexer(std::string &str);
void report_unexpected_token(int tok);
int parse_vector_range(int tok);
LibertyAst *parse();
void error() const;
void error(const std::string &str) const;