hai...hello....
hai...hello....
What is compiler?
hello and hai to geek community
compiler:
it is used to change the source code into machine code.
-machine understandable language
hai for our community
compiler produce an object file n then automatically links with the library functions to produce an executable file
what is the meaning of Token
well hello
compiler converts an any source code to machine code i.e the language which could be understood by machine
the one used to convert assembly language to machine code is called an assembler
Tokens are the heart of a parser. Each basic element of the language you want to parse is a token. Typical tokens are for matching a number, a keyword, an identifier, an operator, etc... Table () gives token definitions which might be used in a parsers for the C language.
Examples:
1.token ifkeyword <if> the literal if
2.token additionoperator <\+|\-> the plus (+) or minus (-) operator