Part A:
Lex Programs:
1) Program to count the number of characters, words, spaces and lines in a given
input text file.
2) Program to count the numbers of comment lines in a given C program. Also
eliminate them and copy the resulting program into separate file.
3)Program to recognize whether a given sentence is simple or compound.
4)Program to recognize a valid arithmetic expression and to recognize the identifiers
and operators present. Print them separately.
5) Program to recognize and count the number of identifiers in a given C program
file.
Shell Programs:
1) Shell script that accepts two file names as arguments, checks if the permissions
for these files are identical and if the permissions are identical, outputs the
common permissions, otherwise outputs each file name followed by its
permissions.
2)Non-recursive shell script that accepts any number of arguments and prints
them in the Reverse order, ( For example, if the script is named rargs, then
executing rargs A B C should produce C B A on the standard output).
3)Shell function that takes a valid directory names as an argument and recursively
descends all the subdirectories, finds the maximum length of any file in that
hierarchy and writes this maximum value to the standard output.
4) Shell script that accepts path names and creates all the components in that
pathnames as directories. For example, if the script name is mpe, then the
command mpe a/b/c/d should create directories a, a/b, a/b/c, and a/b/c/d.
5)Shell script that accepts valid log-in names as arguments and prints their
corresponding home directories. If no arguments are specified, print a suitable
error message.
Part B:
Yacc Programs
1)Program to recognize a valid arithmetic expression that uses operators +, -, * and
/.
2)Program to recognize a valid variable, which starts with a letter, followed by any
number of letters or digits.3)Program to recognize strings ‘aaab’, ‘abbb’, ‘ab’ and ‘a’ using the grammar (a b ,
n>= 0).
n
4)Program to recognize the grammar (a b, n>= 10).
5)Program to evaluate an arithmetic expression involving operators +, -, * and /.
Kernel Module Programming
1)Linux Kernel Module Program to print "Hello,World!"
2)Linux Kernel Module Program to demonstrate module
documentation.(using MODULE_LICENSE,MODULE_AUTHOR,
MODULE_DESCRIPTION etc)
3)Linux Kernel Module Program to demonstrate command line argument
passing.
No comments:
Post a Comment