Hi All, There is already a way to print out the AST of an orchestra as XML using the new parser: http://www.nabble.com/Parser-Update-and-AST-utility-script-td13872848.html#a13872848 http://www.nabble.com/New-Parser%3A-If-elseif%21-td13931190.html#a13931190 The AST format has nodes that go left and right, but also a linked list of next pointers. So sometimes the tree is broken into left and right, sometimes left, right, and also next pointer, etc. The new parser is not complete however, but it's actually quite far along. It doesn't handle a few expression types and not all polymorphic opcode types, as well as macros and includes. steven On Sat, Mar 1, 2008 at 12:06 PM, matt ingalls wrote: > i've looking into something like this myself > -- and been bugging steven :) > > > > On Mar 1, 2008, at 4:37 AM, Michael Gogins wrote: > > > There is no syntax tree in the existing parser. I think that perhaps > > the new > > parser does have one. Perhaps Steven Yi could put into the Csound > > API a > > facility for obtaining or traversing the abstract syntax tree. > > > > Regards, > > Mike > > > > ----- Original Message ----- > > From: "Jonatan Liljedahl" > > To: "Developer discussions" > > Sent: Saturday, March 01, 2008 5:59 AM > > Subject: [Cs-dev] orchestra flow charts > > > > > >> I'm thinking about trying to make an app that automatically creates a > >> nice graphical diagram of a csound orchestra, much like those seen in > >> books and articles. But instead of re-implementing the orchestra > >> parser, > >> would it be possible to hook into the existing parser and get the > >> syntax > >> tree? There could be a commandline option to make csound output the > >> orchestra as an easy parsable syntax tree (xml or similar). Could > >> anyone > >> give a clue on where to start looking in the code? > >> > >> -- > >> /Jonatan [ http://kymatica.com ] > >> > >> ------------------------------------------------------------------------- > >> This SF.net email is sponsored by: Microsoft > >> Defy all challenges. Microsoft(R) Visual Studio 2008. > >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >> _______________________________________________ > >> Csound-devel mailing list > >> Csound-devel@lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/csound-devel > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Csound-devel mailing list > > Csound-devel@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/csound-devel > > matt ingalls > development@gvox.com > > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net