Giter VIP home page Giter VIP logo

regular-expressions-cse-5307's Introduction

regular-expressions-cse-5307, Implemented in Python 3.7, Java, C#, C++ and C.

  • The input file will have multiple proposed tokens on each line. There also might be lines with no proposed tokens and / or just or extra whitespace.

  • The proposed tokens will be separated by whitespace, which is to be ignored.

  • Your program will consider successive tokens from the input file and classify them as 'FP', 'STR', 'INT', or 'does not match'.

  • An FP is one or more decimal digits, followed by a right parenthesis, followed by a left parenthesis, followed by one or more decimal digits.

  • A STR is a vertical bar (|) followed by zero or more uppercase letters and decimal digits followed by a plus sign (+).

  • An INT is a octothorpe sign (#) followed by one or more decimal digits or letters R through W. The letters may be uppercase or lowercase. (That is, r through w are allowed.)

    Examples:

000)(000 is a legal FP. 1)(1 is a legal FP. )000 is not a legal FP. 000( is not a legal FP. 1.1 is not a legal FP.

|+ is a legal STR. |1+ is a legal STR. |HITHERE+ is a legal STR. |a+ is not a legal STR. "abc" is not a legal STR. A+ is not a legal STR. |A is not a legal STR.

#rSt is a legal INT. #0 is a legal INT. #r0 is a legal INT. #W is a legal INT. 123 is not a legal INT. rSt is not a legel INT.

regular-expressions-cse-5307's People

Contributors

namratasiv avatar

Forkers

kcmohan1997

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.