-
Design and implement a lexical analyzer using C language to recognize all valid tokens in the input program. The lexical analyzer should ignore redundant spaces, tabs and newlines. It should also ignore comments.
-
a) Write a lex program to display the number of lines, words and characters in an input text. b) Write a LEX Program to convert the substring abc to ABC from the given input string. c) Write a lex program to find out total number of vowels and consonants from the given input sting.
-
a) Generate a YACC specification to recognize a valid arithmetic expression that uses operators +, – , *,/ and parenthesis. b) Generate a YACC specification to recognize a valid identifier which starts with a letter followed by any number of letters or digits.
-
Implementation of Calculator using LEX and YACC
-
Write a program to convert NFA to DFA.
-
Write a program to find First of any given grammar.
-
Design and implement a recursive descent parser for a given grammar.
-
Construct a Shift Reduce Parser for a given language.
-
Write a program to perform constant propagation.
-
Implement Intermediate code generation for simple expressions.
-
Implement the back end of the compiler which takes the three address code and produces the 8086 assembly language instructions. The target assembly instructions can be simple move, add, sub, jump etc.
-
Notifications
You must be signed in to change notification settings - Fork 2
man-yadul/S7-CSL411-COMPILER-LAB
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description or website provided.
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published