Skip to content

RV College of Engineering, Bengaluru Compiler Design(18CS63) Lab Programs (CIE and SEE)

Notifications You must be signed in to change notification settings

not-rm-rf/RVCE-6th-Sem-CSE-lab-programs-CD

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RVCE 6th Sem Compiler Design Programs

RV College of Engineering, Bengaluru

Compiler Design(18CS63)

Lab Programs (CIE and SEE)


  1. Program 1: 
    1. Write a LEX program to count number of words, lines, characters and whitespaces in a given paragraph
    2. Write a YACC program to recognize strings of the form anbn+mcm, n,m>=0.
  2. Program 2:
    1. Write a LEX program to count number of Positive and Negative integers and Positive & Negative fractions.
    2. Write a YACC program to validate and evaluate a simple expression involving operators +,- , * and /.
  3. Program 3:
    1. Write a LEX program to count the number of comment lines in a C Program. Also eliminate them and copy that program into a separate file.
    2. Write a YACC program to recognize a nested (minimum3levels)FOR loop statement for C language
  4. Program 4:
    1. Write a LEX program to recognize and count the number of identifiers, operators and keywords in a given input file.
    2. Write a YACC program to recognize nested IF control statements (C language) and display the number of levels of nesting.
  5. Program 5: Write a C program to implement a ShiftReduce parser for a given grammar and generate the parsing table by parsing the given string.
  6. Program 6: YACC program that reads the C statements for an input file and converts them in quadruple three address intermediate code.
  7. Program 7: Write a YACC program that identifies the Function Definition of C language
  8. Program 8: Write a YACC program that generates Assembly language (Target) Code for valid Arithmetic Expression.

About

RV College of Engineering, Bengaluru Compiler Design(18CS63) Lab Programs (CIE and SEE)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Yacc 49.7%
  • Lex 30.3%
  • C 20.0%