CsitLabs
search
Ctrlk
  • CSIT Labs
  • 1st Semesterchevron-right
  • 2nd Semesterchevron-right
  • 3rd Semesterchevron-right
  • 4th Semesterchevron-right
  • 5th Semesterchevron-right
  • 6th Semesterchevron-right
    • Compiler Design and Construction
    • NET Centric Computingchevron-right
  • 7th Semesterchevron-right
  • docschevron-right
gitbookPowered by GitBook
block-quoteOn this pagechevron-down
  1. 6th Semester

Compiler Design and Construction

Lab 1:

  1. Write a program to check whether the input is digit or notarrow-up-right

  2. Write a program to identify tokensarrow-up-right

Lab 2:

  • Write a program in C to implement DFA that accepts string:

    • baabarrow-up-right

    • abbaarrow-up-right

Lab 3:

  1. Write a program to check valid identifierarrow-up-right

  2. Write a program to check valid comment or notarrow-up-right

Lab 4:

  • Write a program to count number of operators used in given inputarrow-up-right

    Input: a=b+c*d

Lab 5:

  1. Write a program to find the first of given grammararrow-up-right

    S->L+R
    S->R
    L->*R
    L->a
    R->L
  2. Write a program to find the follow of the given grammararrow-up-right

    R->aS
    R->(R)S
    S->+RS
    S->aRS
    s->as

Lab 6:

  • Write a program for constructing of LL(1) Parsingarrow-up-right

Lab 7:

  • Write a program to implement Shift Reduce Parsingarrow-up-right

    Input symbol: a+b+a

Lab 8:

  • Write a program to implement intermediate code generationarrow-up-right

    X=a+b-c*d/e

Lab 9:

  • Write a program to implement machine code generationarrow-up-right

Previous6th Semesterchevron-leftNextNET Centric Computingchevron-right

Last updated 1 year ago

Was this helpful?

Was this helpful?

E->E+E
E->E/E
E->E*E
E->a/b