What role do regular expressions typically play in language
What role do regular expressions typically play in language compilers and interpreters?
Solution
Answer:
Regular expressions are mathematical symbolism which represent the set of strings of a particular language in a compiler design. First of all comes the SYMBOLS : Symbols can be any character a , b, ,c , d ...z , any numeric 1 , 2 , 3 , 4... or any special symbol * , + , . In regular language \"phi\" represents empty set. + between the symbols represents the closure properties like if we have (a+b) , it means strings of a\'s and b\'s . If (a+b)* , means in the star(*) , we can assign its value ranging from 1 to any number. Thus we can say that regular expressions plays a very important role as it gives the symbols and strings of language a pattern.
