Q#1
PROGRAMMING TASK:
Q: You have to develop a PROGRAM (in any programming language) that takes a TEXT file (.txt) and performs the following tasks:
1: Remove WHITE SPACES (more than one at any point - two or more).
2: Generate TOKENS for identifier, keywords, numbers and punctuations, and any others.
e.g.
<if, keyword>
OUTPUT: the program should generate a new TEXT file (.txt) containing tokens and the remaining text (e.g. output.txt)
The input file should contain at least 300 words.
Q#2
What's the meaning of GNU, GCC, POSIX in compiler? Explanation required with example?
Q#3
a) Explain what does this regular expression means?
(' ' + '\n' + '\t')+
b) Write a Regular Expression for acceptance of File names in Windows OS.
e.g.
AI Book.exe
new_file.jpg
Comments
Leave a comment