GTU System Programming (SP) Practical

--------------------------------------------------------------------------------------------------------------------------

SP Practicals

-------------------------------------------------------------------------------------------------------------------------

  1. Write a program to implement the lexical analyzer.

  2. Write a Lexical Analyzer (using lex utility for UNIX).

  3. Write a program to left factor the given grammar.

  4. Write a program to remove the Left Recursion from a given grammar.

  5. Write a program to find FIRST of given grammer.

  6. Write a program to find FOLLOW of given grammer.

  7. Implement Recursive Descendent Parsing for the given Grammar.
    E -> T + E / T
    T -> F * T / F
    F -> ( E ) / i

  8. Implement Predictive Parsing for the given Grammar.
    E -> T + E / T
    T -> F * T / F
    F -> ( E ) / i

  9. Use macro features for C language.

  10. Write a program to implement Pass – 2 of Assembler.

0 comments:

Post a Comment