// -*- C++ -*-
-#ifndef MATHMACROTABLE
-#define MATHMACROTABLE
+#ifndef MATH_MACROTABLE_H
+#define MATH_MACROTABLE_H
#include <map>
#include "LString.h"
+#include "math_atom.h"
#ifdef __GNUG__
#pragma interface
#endif
-
-class MathMacro;
-class MathMacroTemplate;
+class MathArray;
///
struct MathMacroTable {
public:
///
- static MathMacroTemplate & provideTemplate(string const &, int);
+ static void create(string const &, int, string const &);
///
- static MathMacroTemplate & provideTemplate(string const &);
+ static void create(string const &, int, MathArray const &);
///
- static bool hasTemplate(string const &);
+ static MathAtom & provide(string const &);
///
- static MathMacro * cloneTemplate(string const &);
-private:
+ static bool has(string const &);
///
static void builtinMacros();
+private:
///
- static bool built;
- ///
- typedef std::map<string, MathMacroTemplate *> table_type;
+ typedef std::map<string, MathAtom> table_type;
//
static table_type macro_table;
+public:
///
static void dump();
};