Implementing a shader parser/engine

I just read http://www-graphics.stanford.edu/projects/shading/ , and I would like to implement a basic shader parser in my engine. Have you ever done this ?
It would simplify everyone’s work here if we were able to write hardware-independant pixel shaders in scripts. What can be the best approach to this ?
Thanks.

Julien.