0% found this document useful (0 votes)
6 views1 page

Lexical Analyser Design in C

The document outlines a practical task to design a lexical analyser for a specified programming language. The analyser should effectively ignore redundant spaces, tabs, new lines, and comments while processing identifiers with a reasonable length restriction. The implementation is to be done using the C programming language.

Uploaded by

neelvermakumar
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views1 page

Lexical Analyser Design in C

The document outlines a practical task to design a lexical analyser for a specified programming language. The analyser should effectively ignore redundant spaces, tabs, new lines, and comments while processing identifiers with a reasonable length restriction. The implementation is to be done using the C programming language.

Uploaded by

neelvermakumar
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Practical 1

Objective: Design a lexical analyser for given language and the lexical analyser
should ignore redundant spaces, tabs and new lines. It should also ignore
comments. Although the syntax specification states that identifiers can be
arbitrarily long, you may restrict the length to some reasonable value. Stimulate
the same in C language.
Description:
Code:
Output:

You might also like