summaryrefslogtreecommitdiff
path: root/src/symbol.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/symbol.cc')
-rw-r--r--src/symbol.cc32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/symbol.cc b/src/symbol.cc
new file mode 100644
index 0000000000..907f1d7282
--- /dev/null
+++ b/src/symbol.cc
@@ -0,0 +1,32 @@
+#include "symbol.hh"
+
+Symbol::Symbol()
+ : dim(Interval(0,0),Interval(0,0))
+{
+ tex = "\\unknown";
+}
+Symbol::Symbol(String s, Box b)
+ : dim(b)
+{
+ tex = s;
+}
+
+/****************************************************************/
+
+Symbol
+Parametric_symbol::eval(String args1)const
+{
+ svec<String> a;
+ a.add(args1);
+ return eval(a);
+}
+
+Symbol
+Parametric_symbol::eval(String args1,String arg2)const
+{
+ svec<String> a;
+ a.add(args1);
+ a.add(arg2);
+ return eval(a);
+}
+