Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Web tooling and visualization functions supporting the exploratory parsing of semi-structured text.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 public
Octocat-spinner-32 scripts
Octocat-spinner-32 views
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE.txt
Octocat-spinner-32 README.md
Octocat-spinner-32 fmt.pl
Octocat-spinner-32 gdb.txt
Octocat-spinner-32 parse.c
Octocat-spinner-32 server.rb
Octocat-spinner-32 start_run.sh
Octocat-spinner-32 tally.c
Octocat-spinner-32 tally.h
README.md

Exploratory Parsing

Exploratory parsing is a way to discover structure within semi-structured data.

Installation

Build and install exploring version of peg/leg.

git clone git://github.com/AboutUs/pegleg.git
cd pegleg
make
sudo make install

Install dependencies.

gem install sinatra
gem install haml
gem install diffy

Download sample data.

sh scripts/download_world_factbook.sh

Launch the server.

ruby server.rb

Usage

Enter the following parser. Choose Factbook. Press Run.

char = letter | number | other-char
letter = << [a-zA-Z] >>
number = << [0-9] >>
other-char = << . >>

A new Run appears. Refresh the page to see it advance.

Click the Run number to see output. Click on counts to see sample matches.

License

Licensed under the MIT License.

Something went wrong with that request. Please try again.