Replace pretty printer by generation of AST, followed by a scan of the AST.
commitbac93ecefc7ad313d2aa2d5cc33dda56eaef471f
authorSven Verdoolaege <skimo@kotnet.org>
Wed, 1 Feb 2006 17:18:36 +0000 (1 18:18 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Wed, 1 Feb 2006 17:27:39 +0000 (1 18:27 +0100)
tree030d39364029fc4cc9bff7f4089c4e63550768b4
parent086af4630e03c8a09e2dc25395736398a1889b8b
Replace pretty printer by generation of AST, followed by a scan of the AST.

This allows external users to perform their own pretty printing
or AST generation, without duplicating most of the code in pprint.c.
They simply need to first call

    root = cloog_clast_create(program->loop, equal, infos);

then scan the resulting struct clast_stmt and finally release the
clast_stmt:

    cloog_clast_free(root);

The clast tree structure is described in clast.h;
an example of scanning this structure can be found in pprint.c.
autoconf/makefile.in
include/cloog/clast.h [new file with mode: 0644]
include/cloog/cloog.h.in
include/cloog/pprint.h
source/clast.c [new file with mode: 0644]
source/pprint.c
source/program.c