Lex program to find the Length of a String
Problem: Write a Lex program to find the Length of a String
FLEX (Fast Lexical Analyzer Generator) is a computer program that generates lexical analyzers and was written by Mike Lesk and Eric Schmidt. Lex reads an input stream specifying the lexical analyzer and outputs source code implementing the lexer in the C programming language.
Input: geeksforgeeks Output: length of given string is : 13 Input: geeks Output: length of given string is : 5
Attention reader! Don’t stop learning now. Get hold of all the important CS Theory concepts for SDE interviews with the CS Theory Course at a student-friendly price and become industry ready.