I want to design a compiler for which I want a lex and yacc tools. Can
you tell me how I get it? Is there any way to download these tools?
On any Unix they should be installed already. Or google for "flex" and
GNU "bison" (a yacc clone).
If you're not using C, you might google for your language and "parser
generator".