Compiler Design GTU Practicals

Compiler Design

  • Practical 1:

    Design a lexical analyzer for given language and the lexical analyzer should ignore redundant spaces, tabs and new lines. It should also ignore comments. Although the syntax specification states that identifiers can be arbitrarily long, you may restrict the length to some reasonable value. Simulate the same in C language.

    View
  • Practical 2:

    Write a C program to identify whether a given line is a comment or not.

    View
  • Practical 3:

    Write a C program to test whether a given identifier is valid or not.

    View
  • Practical 4:

    Write a C program to simulate lexical analyzer for validating operators.

    View
  • Practical 5:

    Create a Lexer to take input from text file and count no of characters, no. of lines & no.

    View
  • Practical 6:

    Write a Lex program to count number of vowels and consonants in a given input string.

    View
  • Practical 7:

    Write a Lex program to print out all numbers from the given file.

    View
  • Practical 8:

    Write a Lex program to printout all HTML tags in file.

    View
  • Practical 9:

    Write a Lex program which adds line numbers to the given file and display the same onto the standard output.

    View
  • Practical 10:

    Write a Lex program to count the number of comment lines in a given C program. Also eliminate them and copy that program into separate file.

    View
  • Practical 11:

    Write a C program for implementing the functionalities of predictive parser for the mini language.

    View
  • Practical 12:

    Write a C program for constructing of LL (1) parsing.

    View
  • Practical 13:

    Write a C program for constructing recursive descent parsing.

    View
  • Practical 14

    Write a C program to implement LALR parsing.

    View
  • Practical 15:

    Write a C program to implement operator precedence parsing.

    View

Post a Comment

0 Comments