C-Tree Version .04

flisakow@fontina.cs.wisc.edu (Shaun Flisakowski)
13 Jul 1997 11:44:29 -0400

          From comp.compilers

Related articles
C-Tree Version .04 flisakow@fontina.cs.wisc.edu (1997-07-13)
| List of all articles for this month |
From: flisakow@fontina.cs.wisc.edu (Shaun Flisakowski)
Newsgroups: comp.compilers
Date: 13 Jul 1997 11:44:29 -0400
Organization: U of Wisconsin CS Dept
Keywords: C, tools, available

        Announcing C-Tree version .04


        Version .04 now compiles on DOS boxes using DJGPP as well as
        all flavors of unix.


        ctree is a free package, it takes the name of a file to parse as
        input, and returns a pointer to the parse tree generated; or
        NULL if there are errors, printing the errors to stderr.
        It is written using flex and bison.


        Notable features:


                No leaking memory - Even if the parse fails through an error
                        all memory allocated is freed. (Checked via Purify (tm))


                All tokens remaining in the parse tree (some are eliminated)
                are marked with the line# and col# they originated at.


                Includes a symbol table, and is basically ready-to-run
                (I include a small example that parses its input and
                _attempts_ to print it back out in a sensible way)


                Seperate table for storing types (with the pointers to there
                trees)


                The input is normally passed through /lib/cpp, but the flex
                lexer understands continuation lines and #line directives
                as well.


                Lexer understands C++ style comments, gives a warning for
                '//*' and parses as ANSI C requires.


        Current sites are:
                ftp.kagi.com:/flisakow/ctree_04.tar.gz
                ftp.kagi.com:/flisakow/ctree_04.zip
                ftp.cs.wisc.edu:/coral/tmp/spf/ctree_04.tar.gz


        or find it on my web page.


--
    Shaun Flisakowski
    http://www.cs.wisc.edu/~flisakow/
    http://www.kagi.com/flisakow/
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.