I wanted to share a project of mine here.
I was working on it as a part of compilers class exam.
It is a windows batch script to bash translator
you can see it here http://ea.github.com/batch2bash/
i know the project itself might be pointless , but since xkcd forums have wide range of users
with wide range of interests , it looked like a good idea to post it here
i had a great trouble finding something similar, there isn't anything
it's written in a combination of c and c++ , mostly c++
it's using bison and flex for parsing
the most valuable in this project could be the grammar of batch scripts , which i was unable to find anywhere , so i'm posting this topic so that anybody who needs it in the future could find it via google
of course , the grammar is incomplete, as is the translation, but it handles things pretty well
cheers , ea