mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-27 19:05:52 +00:00
Added support for here documents
This commit is contained in:
parent
3f4e3ca8ad
commit
267c615640
3 changed files with 63 additions and 18 deletions
|
@ -38,7 +38,7 @@ extern const char *yosys_version_str;
|
|||
extern RTLIL::Design *yosys_get_design();
|
||||
extern std::string proc_self_dirname();
|
||||
extern std::string proc_share_dirname();
|
||||
const char *create_prompt(RTLIL::Design *design, int recursion_counter);
|
||||
extern const char *create_prompt(RTLIL::Design *design, int recursion_counter);
|
||||
|
||||
// from passes/cmds/design.cc
|
||||
extern std::map<std::string, RTLIL::Design*> saved_designs;
|
||||
|
@ -76,6 +76,10 @@ struct Pass
|
|||
|
||||
struct Frontend : Pass
|
||||
{
|
||||
// for reading of here documents
|
||||
static FILE *current_script_file;
|
||||
static std::string last_here_document;
|
||||
|
||||
std::string frontend_name;
|
||||
Frontend(std::string name, std::string short_help = "** document me **");
|
||||
virtual void run_register();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue