Giter Site home page Giter Site logo

system-programming-and-compile-design-practicalr-'s Introduction

System-programming-and-Compile-Design-Practicalr-

Programs with lex and yacc.

  1. Write a Lex program to count the number of lines and characters in the input file.

  2. Write a Lex program that implements the Caesar cipher: it replaces every letter with the one three letters after in alphabetical order, wrapping around at Z. e.g. a is replaced by d, b by e, and so on z by c.

  3. Write a Lex program that finds the longest word (defined as a contiguous string of upper and lower case letters) in the input.

  4. Write a Lex program that distinguishes keywords, integers, floats, identifiers, operators, and comments in any simple programming language.

  5. Write a Lex program to count the number of identifiers in a C file.

  6. Write a Lex program to count the number of words, characters, blank spaces and lines in a C file.

  7. Write a Lex specification program that generates a C program which takes a string “abcd” and prints the following output.

abcd

abc

ab

a

  1. A program in Lex to recognize a valid arithmetic expression.

  2. Write a YACC program to find the validity of a given expression (for operators + - * and /)A program in YACC which recognizes a valid variable which starts with letter followed by a digit. The letter should be in lowercase only.

  3. A Program in YACC to evaluate an expression (simple calculator program for addition and subtraction, multiplication, division).

  4. Program in YACC to recognize the string „abbb‟, „ab‟ „a‟ of the langauge (a^nb^n , n>=1).

  5. Program in YACC to recognize the language (a^nb , n>=10). (output to say input is valid or not)

system-programming-and-compile-design-practicalr-'s People

Contributors

anupama-yadav333 avatar

Stargazers

ApexAbhishek avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.