]> www.ginac.de Git - ginac.git/blobdiff - ginac/parser/parse_context.h
Added get_builtin_reader() that parses only the builtin GiNaC functions
[ginac.git] / ginac / parser / parse_context.h
index 3516320981c1b82191c404361d6086e4a6cd96f6..1145a871cb4b2da67a95373d44ea0812ab2567a5 100644 (file)
@@ -82,15 +82,26 @@ typedef ex (*reader_func)(const exvector& args);
  *    number of arguments.
  * 3. User can extend the parser via custom prototype tables. It's possible
  *    to read user defined classes, create abbreviations, etc.
  *    number of arguments.
  * 3. User can extend the parser via custom prototype tables. It's possible
  *    to read user defined classes, create abbreviations, etc.
+ *
+ * NOTE: due to a hack that allows user defined functions to be parsed, the map
+ *       value of type reader_func is internally treated as an unsigned and not as a
+ *       function pointer!! The unsigned has to correspond to the serial number of
+ *       the defined GiNaC function.
  */
 typedef std::map<prototype, reader_func> prototype_table;
 
 /**
  * Default prototype table.
  *
  */
 typedef std::map<prototype, reader_func> prototype_table;
 
 /**
  * Default prototype table.
  *
- * It supports most of builtin GiNaC functions.
+ * It supports all defined GiNaC functions and "pow", "sqrt", and "power".
  */
 extern const prototype_table& get_default_reader();
  */
 extern const prototype_table& get_default_reader();
+/**
+ * Builtin prototype table.
+ *
+ * It supports only the builtin GiNaC functions and "pow", "sqrt", and "power".
+ */
+extern const prototype_table& get_builtin_reader();
 
 } // namespace GiNaC
 
 
 } // namespace GiNaC