summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/nl_parser.h
diff options
context:
space:
mode:
author couriersud <couriersud@gmx.org>2020-01-29 19:00:10 +0100
committer couriersud <couriersud@gmx.org>2020-01-29 19:00:10 +0100
commitfceee50c8bd6d930fc1f152ede4185ce7dc44c40 (patch)
tree71a0f8d6d43ddbe1fc98a078d3baddecd6e5d953 /src/lib/netlist/nl_parser.h
parentd7fd89afe1a384e268cb8a9fbd0f6c4c994e195d (diff)
netlist: Parameters evaluated when netlist is created. [Couriersud]
Parameters are now passed to the netlist core as strings. During netlist creation they are evaluated as functions. This opens the path to parameters on subdevice level. Examples: PARAM(device.XY, (1+2*0.005)) RES(R1, 2.05*RES_K(1)+1) In addition the commit contains dead code removal.
Diffstat (limited to 'src/lib/netlist/nl_parser.h')
-rw-r--r--src/lib/netlist/nl_parser.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/netlist/nl_parser.h b/src/lib/netlist/nl_parser.h
index 46ce30b0370..524f2cfeed8 100644
--- a/src/lib/netlist/nl_parser.h
+++ b/src/lib/netlist/nl_parser.h
@@ -43,9 +43,7 @@ namespace netlist
void verror(const pstring &msg) override;
private:
-
- nl_fptype eval_param(token_t &tok);
-
+ pstring stringify_expression(token_t &tok);
token_id_t m_tok_paren_left;
token_id_t m_tok_paren_right;
token_id_t m_tok_comma;