diff options
Diffstat (limited to 'src/lib/netlist/nl_parser.cpp')
-rw-r--r-- | src/lib/netlist/nl_parser.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/lib/netlist/nl_parser.cpp b/src/lib/netlist/nl_parser.cpp index 32a5c542a16..3e7ff32e804 100644 --- a/src/lib/netlist/nl_parser.cpp +++ b/src/lib/netlist/nl_parser.cpp @@ -561,4 +561,26 @@ pstring parser_t::stringify_expression(token_t &tok) return ret; } +// ---------------------------------------------------------------------------------------- +// source_token_t +// ---------------------------------------------------------------------------------------- + +bool source_token_t::parse(nlparse_t &setup, const pstring &name) +{ + if (name == m_name) + { + auto ret = setup.parse_tokens(m_store, name); + return ret; + } + + return false; +} + +plib::istream_uptr source_token_t::stream(const pstring &name) +{ + plib::unused_var(name); + return plib::istream_uptr(); +} + + } // namespace netlist |