GithubHelp home page GithubHelp logo

invalid-brackets-detector's Introduction

Invalid Bracket Detector

This application detects invalid brackets in a given file. The possible brackets are:

Bracket Type Description
[] Square brackets
{} Curly braces
() Round brackets

🚫 Error

  • Invalid bracket information is printed in this format:

    Invalid bracket <bracket_type> found at <file_path>:<line_number>:<column_number>.
    

➕ Additions:

  • Does your application support files larger than your computer’s RAM?

    • Current implementation reads given file line by line, so it is memory-efficient. So it should handle files larger than computers RAM.
    • If there are performance issues, and we need to optimise reading, we could read the file by chunks.
  • After your program finishes processing the input from the file, some other module should process this input. Another module can do it in parallel. What is the best “place” in the program to call this module? The module can be called by function nextProcessor(input string)

    • The best place to call nextProccessor(), would be right after line 87 if we want to process all the errors after the whole file was scanned: detector.detectInvalidBrackets();

⬇️ Getting Started:

  • Clone the repo:
    https://github.com/SteponasK/Invalid-Brackets-Detector.git
    
  • run main.cpp file.
    • DONT FORGET COMMAND LINE ARGUMENTS!:
       Usage: ./bracket_detector <filePath>
      

👑 Authors

  • SteponasK - initial work.

invalid-brackets-detector's People

Contributors

steponask avatar

Watchers

 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.