diff options
author | dgp <dgp@users.sourceforge.net> | 2016-04-19 20:35:49 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2016-04-19 20:35:49 (GMT) |
commit | 66032e8a327e0498b0d8970307452f66c69be25c (patch) | |
tree | 345b92b9d0c1be0f8ff45032a38884929744545e /tests/langbench/grep.rb | |
parent | 0a228666ae8b3189ae92ff7624263de1455c24ff (diff) | |
download | tcl-66032e8a327e0498b0d8970307452f66c69be25c.zip tcl-66032e8a327e0498b0d8970307452f66c69be25c.tar.gz tcl-66032e8a327e0498b0d8970307452f66c69be25c.tar.bz2 |
Fork of Tcl used in the "Little" project.
http://www.mcvoy.com/lm/little/index.html
Diffstat (limited to 'tests/langbench/grep.rb')
-rw-r--r-- | tests/langbench/grep.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/langbench/grep.rb b/tests/langbench/grep.rb new file mode 100644 index 0000000..a13f8fe --- /dev/null +++ b/tests/langbench/grep.rb @@ -0,0 +1,4 @@ +re = Regexp.compile("[^A-Za-z]fopen\\(.*\\)") +while line = gets() + print if re =~ line +end |