Changeset 3728


Ignore:
Timestamp:
Mar 17, 2014, 11:44:00 PM (5 years ago)
Author:
ksherdy
Message:

Added files to prepare compilable grep fixed string demo.

Location:
proto/RE/demo
Files:
5 added
2 edited

Legend:

Unmodified
Added
Removed
  • proto/RE/demo/Makefile

    r3673 r3728  
    22OUTFILE=src/grep.cpp
    33PABLO_SRCFILE=grep.py
    4 PABLO_COMPILER=../Compiler/pablomain.py
     4PABLO_COMPILER=../../Compiler/pablomain.py
    55PABLO_TEMPLATE=grep_template.cpp
    66
    77PABLO_DEMO=grep_demo.py
    8 INFILE=test/fruitlist1.txt
     8INFILE=test/fruitlist0.txt
    99
    1010PABLO_DEBUG=-d
     
    1212all: grep
    1313
    14 grep:   $(PABLO_SRCFILE)
     14grep: $(PABLO_SRCFILE)
    1515        python $(PABLO_COMPILER) $(PABLO_SRCFILE) -t $(PABLO_TEMPLATE) -o $(OUTFILE)
    1616
    17 grep_demo:      $(PABLO_DEMO)
     17grep_demo: $(PABLO_DEMO)
    1818        python $(PABLO_DEMO) $(INFILE) $(PABLO_DEBUG)
    1919
     
    2121        python $(PABLO_DEMO) $(INFILE) -v $(PABLO_DEBUG)
    2222
    23 grep_count_demo:        $(PABLO_DEMO)
     23grep_count_demo: $(PABLO_DEMO)
    2424        python $(PABLO_DEMO) $(INFILE) -c $(PABLO_DEBUG)
    2525
    26 grep_count_invert_match_demo:   $(PABLO_DEMO)
     26grep_count_invert_match_demo: $(PABLO_DEMO)
    2727        python $(PABLO_DEMO) $(INFILE) -c -v $(PABLO_DEBUG)
    2828
  • proto/RE/demo/grep_demo.py

    r3673 r3728  
    11#
    2 # grep -        A very simple example to demonstrate grep with parall_matchedel bit streams.
    3 #
    4 #                                       This prototypes demonstrates a compilable prototype with
    5 #                                 minimal reliance on complementary hand-written template code.
    6 #                                       In addition, this examples draws attention to missing features in the Pablo
    7 #                                       language which prevent the elimination of hand-written templates.
     2# grep - A very simple example to demonstrate grep with parallel bit streams.
     3#
     4#        This prototypes demonstrates a compilable prototype with
     5#        minimal reliance on complementary hand-written template code.
     6#        In addition, this examples draws attention to missing features in the Pablo
     7#        language which prevent the elimination of hand-written templates.
    88#
    99# Ken Herdy
Note: See TracChangeset for help on using the changeset viewer.