17th August 06
Today we got a clear idea about the lex syntax.Sir gave another exaple code to detect the number of characters and words and lines in a file.Now sir started with the new topic - Parser which is also known as Syntax Analyzer . Sir talked about some techniques of error handling and we realized how difficult it is to parse a language.Panic mode worked as a tonic and we got some relief due to its simplicity.But there was some "panic" yet to come.The first panic was Phrase Level Recovery and we came to know that how missing a semicolon can make a big trouble.
"TI SI A OHT ADY".......what is this!!! may be German we thought !!! oh no no it is "IT IS A HOT DAY"....this is what is known as Global Recovery.Human brain is an expert to do this error handling.....but how difficult it is to make a computer do that!! Still lots of research going on............
No comments:
Post a Comment