Giter Club home page Giter Club logo

csc-521_regex's Introduction

CSC-521_Regex

The project is used for removing the comments in a given input C file using JavaScript and PHP regex.


Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.


Both the programs are running and they remove the valid comments from the cycle.c file and give an error message to the invalid comments.


Instructions to run Node.js file The program has been written in NodeJS there is no need to install any independencies. *Make sure that the cycle.c file is in the same directory as the node.js file Run the following command to store output in an output.c file: node node1.js > output.c The node.js program will store the output in the output.c file with all valid comments removed and the invalid comments have been given an error message. OR


Use the following command to run the program to get output on command line: node node1.js The node.js program will open the input file in the command line with all valid comments removed and the invalid comments have been given an error message.

Instructions to run PHP file. The file is not hard-coded hence it will run from any local-server. You can download XAMPP from the following link: https://www.apachefriends.org/download.html Installing XAMPP on a Mac

  1. Download XAMPP for Mac OSX - Be sure to select the proper version of PHP (5.6.40 / PHP 5.6.40 or any other version will work)
  2. Open the downloaded file (the DMG-Image).
  3. Drag and drop the XAMPP folder into your Applications folder.

Starting XAMPP on OSX

  1. To start XAMPP simply open XAMPP Control (by going to /Applications/XAMPP/manager-osx.app in Finder) and start Apache and MySQL on the Manage Servers tab.

Place the file in any directory and just give the complete path of the file and the output will be displayed in a browser. e.g: http://localhost:8080/test/strip.php

csc-521_regex's People

Contributors

aishwarya2203 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.