Parser tweaks
Fixes #298 (closed).
#298 (closed) shows that element names that match constants or keywords lead to problems. Using c
(a constant), the parser converts this to the symbol for the speed of light so xaxis
throws an error because it expects a string, parameter or element. Using g
(a keyword) the parser leaves this as a string instead of resolving it to the element with name g
, and xaxis
didn't support default parameters (like using a variable by name, e.g. myvar
, and not myvar.value
).
Keywords were fixed in 085c0414. This MR fixes the constant problem by disallowing them. It also renames c
to c0
given that c
might be a common component name.