what is parser and lexical analyser?(no wiki)
first i'll get with parser parser is a part of the compiler which parses...It means that it divides the given stream into smaller elements the lexical analyzer takes these source code divides it into tokens identifies which regexp it is suited to and then applies its conditions on to that variable and then passes it to the parser eg: int i=45; now,the lexical analyzer divides into tokens the first token is 'i','=','45' it takes the form of an identifier 'id' which can hold only numerical values of a certain range.and then to '=' and then to '45'. then it constructs a parse tree to validate that statement.
krace pls come on chat box
http://en.wikipedia.org/wiki/Compiler look into this you will get all information.
Join our real-time social learning platform and learn together with your friends!