mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-13 04:28:18 +00:00
libparse: Adjust whitespace
This commit is contained in:
parent
4b9f452735
commit
78382eaa6f
|
@ -46,19 +46,18 @@ namespace Yosys
|
||||||
LibertyAst *ast;
|
LibertyAst *ast;
|
||||||
LibertyParser(std::istream &f) : f(f), line(1), ast(parse()) {}
|
LibertyParser(std::istream &f) : f(f), line(1), ast(parse()) {}
|
||||||
~LibertyParser() { if (ast) delete ast; }
|
~LibertyParser() { if (ast) delete ast; }
|
||||||
|
|
||||||
/* lexer return values:
|
/* lexer return values:
|
||||||
'v': identifier, string, array range [...] -> str holds the token string
|
'v': identifier, string, array range [...] -> str holds the token string
|
||||||
'n': newline
|
'n': newline
|
||||||
anything else is a single character.
|
anything else is a single character.
|
||||||
*/
|
*/
|
||||||
int lexer(std::string &str);
|
int lexer(std::string &str);
|
||||||
|
|
||||||
LibertyAst *parse();
|
LibertyAst *parse();
|
||||||
void error();
|
void error();
|
||||||
void error(const std::string &str);
|
void error(const std::string &str);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue