Giter Site home page Giter Site logo

ttsoftware / bachelor-project Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 37.32 MB

Code for regular expression implementation for bachelor project.

TeX 6.40% Ruby 4.46% CMake 0.03% C++ 65.77% Python 1.93% Makefile 0.57% Perl 0.38% Shell 0.39% HTML 2.15% C 17.91%

bachelor-project's Introduction

bachelor-project

To run the code go to code/ruby and execute 'src/patex.rb'. This will run a simple command line tool, that can translate patscan patterns into regular expressions.

--------- BENCHMARKING ---------

To run benchmarking on all of the .pat files under code/benchmark and generate result files for each implementation (ruby, re2, python, python regex, scan-for-matches).

The test suite will run in ~6 hours, and the result files will accumulate about 12.5 GB of disk space

Each of the seperate implementations can also be run seperately under:

Ruby: 'code/ruby/src/re-scan.rb <file.re> <file.fa>'

Python: 'code/python/main.py <file.re> <file.fa>'

Python Regex: 'code/python_regex/main.py <file.re> <file.fa>'

RE2: 'code/c++/main <file.re> <file.fa>'

scan-for-matches: 'code/scan_for_matches/main.py <file.pat> <file.fa>'

--------- REQUIREMENTS ---------

Scan-for-matches requires that you have 'scan_for_matches' installed and available in your $PATH

RE2 requires that you have libre2 installed. Our modified version can be found at https://github.com/ttsoftware/re2

Ruby requires ruby 2.2.

Python requires python 2.7

Python regex requires the regex library https://pypi.python.org/pypi/regex

bachelor-project's People

Contributors

ttsoftware avatar rasmushaarslev avatar

Watchers

James Cloos avatar  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.