Ian Romanick wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Where is the tool to process the .syn files in src/mesa/shader?
See src/mesa/shader/slang/library/Makefile The syn_to_c program is built there. > Is there an easy way in this parser generator to change the grammar for > the TXP instruction? Basically, I want it to be invalid to use TXP with > the SHADOWARRAY2D target. Michael would have to answer that. Michael? > Alternately, is there a reason we're using this instead of lex & yacc? I think Michael just used what was familiar to him. > I used lex & yacc to write a unified parser for another project that > handles ARB_{vertex,fragment}_program (up to vp3 and fp2), the various > NV vertex and fragment programs, and ATI_text_fragment_shader. I could > probably adapt it to work with Mesa without too much trouble. > > Opinions? I guess I'd prefer using standard tools like lexx and yacc. Though, I'd do research to see if there's anything newer/nicer nowadays. -Brian ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Mesa3d-dev mailing list Mesa3d-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mesa3d-dev