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:
parent
0a6d9f4dc9
commit
ac1033ecd5
2 changed files with 44 additions and 37 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue