diff options
author | 2015-06-07 02:08:30 +0200 | |
---|---|---|
committer | 2015-06-07 02:16:54 +0200 | |
commit | 5107c16ca6a4a05e8755c935d9b0ba23f5f4499a (patch) | |
tree | f9b0d118953fc9ac975c14b3e53afff37386db3e /src/emu/netlist/plib/pparser.c | |
parent | 887742e3085d1d55d1ed75a12843c0fd0efc8715 (diff) |
Fixed a number of bugs and some additions:
- fixed bugs in the spice(Kicad) conversion
- fixes submodel difference between inline and parsed netlist
- added truthtable 7404 and 7486 models
- aligned input and output naming for truthtable and specialised 74xx
models.
Diffstat (limited to 'src/emu/netlist/plib/pparser.c')
-rw-r--r-- | src/emu/netlist/plib/pparser.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/emu/netlist/plib/pparser.c b/src/emu/netlist/plib/pparser.c index 6022eef1426..98b26a1b85f 100644 --- a/src/emu/netlist/plib/pparser.c +++ b/src/emu/netlist/plib/pparser.c @@ -97,6 +97,16 @@ pstring ptokenizer::get_identifier() return tok.str(); } +pstring ptokenizer::get_identifier_or_number() +{ + token_t tok = get_token(); + if (!(tok.is_type(IDENTIFIER) || tok.is_type(NUMBER))) + { + error("Error: expected an identifier, got <%s>\n", tok.str().cstr()); + } + return tok.str(); +} + double ptokenizer::get_number_double() { token_t tok = get_token(); |