Skip to content

Tag Archives: Lex program

Problem: Write a Lex program to recognize valid arithmetic expression and identify the identifiers and operators. Explanation: Flex (Fast lexical Analyzer Generator) is a tool/computer… Read More
Problem: Write a YACC program which accept strings that starts and ends with Zero or One Explanation: YACC (Yet another Compiler-Compiler) is the standard parser… Read More
Problem: Write a Lex program to check if a date is valid or not. Explanation: Flex (Fast lexical Analyzer Generator) is a tool/computer program for… Read More
Problem: Write a Lex program for checking a valid URL. Explanation: Lex is a computer utility that generates some lexical analyzers. Lex reads a stream… Read More
Problem: Write a Lex program for Decimal to Binary conversion. Explanation: FLEX (Fast Lexical Analyzer Generator) is a tool/computer program for generating lexical analyzers (scanners… Read More
Problem: Write a Lex Program to check whether a number is Prime or Not. Explanation: Lex is a computer program that generates lexical analyzers and… Read More
Problem : Write a Lex program to count the positive numbers, negative numbers and fractions Explanation : FLEX (Fast Lexical Analyzer Generator) is a tool/computer… Read More
Problem: Write a Lex program to check whether given string is Palindrome or Not. Explanation: Lex is a computer program that generates lexical analyzers and… Read More
Problem: Write a Lex program to check whether an year is a leap year or not. Explanation: Lex is a computer program that generates lexical… Read More
Problem: Write a Lex program for Decimal to Hexadecimal conversion. Explanation: Lex reads an input stream specifying the lexical analyzer and outputs source code implementing… Read More
Problem: Write a Lex program to find the Length of a String Explanation: FLEX (Fast Lexical Analyzer Generator) is a computer program that generates lexical… Read More
Lex is a computer program that generates lexical analyzers and was written by Mike Lesk and Eric Schmidt. Lex reads an input stream specifying the… Read More
Given a text file as input, the task is to replace a given word with another word in the file. Lex is a computer program… Read More
Problem: Write a Lex program to search a word in a file. Explanation: FLEX (Fast Lexical Analyzer Generator) is a tool/computer program for generating lexical… Read More
Lex is a computer program that generates lexical analyzers. Lex reads an input stream specifying the lexical analyzer and outputs source code implementing the lexer… Read More