Lexical, sintactical and semantic xhtml compiler