alexbadia1 / Grepy

A version of the grep utility, in Java, called "Grepy," that searches files for regular expression, pattern matches and produces dot graph file output for the automata used in the matching computation.
0 stars 0 forks source link

Grepy

A version of the grep utility, in Java, that searches files for regular expression, pattern matches and produces dot graph file output for the automata used in the matching computation.

Example Output

Example DFA

Getting started

Grepy [-n NFA-FILE][-d DFA FILE] REGEX FILE

Prerequisites

This project requires the installation of the JDK 12.0.5 (SE is included in JDK).

Outlining the docs, follow these steps for Windows:

  1. Download the JDK Installer
  2. Run the JDK installer .exe
  3. Set the PATH variable to the JDK bin
    • Go to the Control Panel > System > Edit the system environment variables
    • On the System Properties Window go to the Advanced Tab
    • At the bottom click environment variables
    • Under USER VARIABLES NOT System Variables, click PATH
    • While PATH is selected, click EDIT
    • Click NEW and add the path to the JDK bin

For Mac of Linux refer to the official oracle docs:

Installation

This was my first time using Maven as a dependency manager, which made running this project from the command line a bit more confusing. In the mean time here's the general instructions to run the project from an IDE of your choice:

Clone the repository make sure that:

In your IDE:

  1. Navigate to your build configurations somewhere in your IDE
  2. Edit the configurations to add command line arguments as specified above
  3. Run the configuration

Built With

Authors