Site icon i2tutorials

Compiler Design-Input Buffering

Input Buffering

 

The input buffering helps to find the correct lexeme; more than one character has to be seen beyond the next lexeme.

A two-buffer scheme is initiated to handle large lookaheads safely.

Techniques for speeding up the process of lexical analyzer such as the use of sentinels to mark the buffer-end have been adopted.

 

There are three approaches to implement the Lexical Analyzer.

 

 

 

 

The two buffer Schemes are:

 

Reference Link

Input Buffering

Exit mobile version