ADVERTISEMENT
ADVERTISEMENT

Home

Compiler Design Tutorial, Articles, Programs (Examples)

This section contains tutorials, articles and programs (examples) on compiler design (using LEX). Here, we will learn about Compiler Design, LEX using solved programs (examples).

Latest Articles, Tutorials, Examples on Compiler Design

Tutorials

  1. Compilers Introduction, Cousins and Phases
  2. Parsing in Compiler
  3. Classification of Top Down Parser
  4. Introduction to Bottom Up Parser
  5. Operator Precedence Parser

Programs

  1. LEX Code to identify and print valid Identifier of C/C++ in given Input pattern.
    In this article, we going to learn how to create LEX program to analysis whether a input is identifier or not?
  2. LEX Code to identify and print integer and float value in given Input pattern.
    In this article, we going to learn how to create LEX program to analysis whether a input number is integer number or decimal number?
  3. LEX Code for Tokenizing (Identify and print OPERATORS, SEPARATORS, KEYWORDS, IDENTIFIERS) for the given C fragment.
    In this article, we going to learn how to create LEX program to analysis among the given C program which are operators, separators, keywords, identifiers and print on the console?
  4. LEX Code to count and print the number of total characters, words, white spaces in given ‘Input.txt’ file.
    In this article, we going to learn how to create LEX program to analysis how many characters, white space (means \n \t “”), and words are present in given input file?
  5. LEX Code to replace white spaces of ‘Input.txt’ file by a single blank character into ‘Output.txt’ file.
    In this article, we going to learn how to create LEX program to extract multi whitespace and replace with single whitespace?
  6. LEX Code to remove the comments from any C-Program given at run-time and store into ‘out.c’ file.
    In this article, we going to learn how to create LEX program to extract comment (single line and multiline) from c program?
  7. LEX Code to extract all html tags in the given HTML file at run time and store into Text file given.
    In this article, we are going to learn how to create LEX program to extract all HTML tag from HTML file?
  8. LEX code to replace all the ‘if’ keyword to capital ‘if’ from the given C/C++ file.
    In this article, we going to learn how to create LEX program to replace the entire if keyword to capital IF from given C/C++ file?
  9. LEX Code to count the number of lines, space, tab-meta character and rest of characters in a given Input pattern.
    In this article, we going to learn how to create LEX program to analysis how many line, space, tab character and other character are present in given input file?



ADVERTISEMENT



Comments and Discussions


ADVERTISEMENT

ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT

Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing
» Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates

© https://www.includehelp.com some rights reserved.