]> www.ginac.de Git - ginac.git/blobdiff - ginac/parser/default_reader.tpl
Fixed the parser such that it can read in user defined classes again.
[ginac.git] / ginac / parser / default_reader.tpl
index 244074fa17fb731ff49e6f448ff8f905fd114911..5f83cfee30402a13cb0a8d0e355972b023310f1d 100644 (file)
@@ -37,6 +37,11 @@ const prototype_table& get_default_reader()
        static bool initialized = false;
        static prototype_table reader;
        if (!initialized) {
+               [+ FOR function +]
+               reader[make_pair("[+ (get "name") +]", [+ 
+                       (if (exist? "args") (get "args") "1")
+                       +])] = [+ (get "name") +]_reader;[+
+               ENDFOR +]
                try {
                        for ( unsigned ser=0; ; ++ser ) {
                                GiNaC::function f(ser);