Skip to content

Commit

Permalink
import re2
Browse files Browse the repository at this point in the history
  • Loading branch information
tokuhirom committed Feb 7, 2012
1 parent cc8ad7e commit df158e1
Show file tree
Hide file tree
Showing 260 changed files with 48,862 additions and 1 deletion.
18 changes: 17 additions & 1 deletion SConstruct
Expand Up @@ -10,9 +10,12 @@ if os.uname()[0]=='Darwin':
env = Environment(CXX='clang++', CC='clang++')
env.Append(CXXFLAGS=['-std=c++0x'])
# env.Append(CXXFLAGS=['-Werror'])
env.Append(CXXFLAGS=['-Wno-unused-function'])
env.Append(CXXFLAGS=['-Wno-unneeded-internal-declaration'])
else:
env = Environment(CXX='g++')
env.Append(CCFLAGS=['-std=c++0x'])
env.Append(CXXFLAGS=['-I./vendor/re2/'])
env.Append(CCFLAGS=['-g'])
env.Append(CXXFLAGS=['-g'])
env.Append(LDFLAGS=['-g'])
Expand All @@ -27,10 +30,23 @@ if ARGUMENTS.get('profile', 0):
if ARGUMENTS.get('debug', 0):
env.Append(CCFLAGS=['-DDEBUG'])

re2files = [
Glob('vendor/re2/re2/*.cc'),
'vendor/re2/util/rune.cc',
'vendor/re2/util/valgrind.cc',
'vendor/re2/util/stringprintf.cc',
'vendor/re2/util/strutil.cc',
'vendor/re2/util/hash.cc',
'vendor/re2/util/stringpiece.cc',
]

if 'test' in COMMAND_LINE_TARGETS:
env.Command('test', 'tora', 'prove -r t')
env.CXXFile(target='Tora.tab.cc', source='Tora.yy', YACCFLAGS='-dv')
env.Command('ops.gen.h', 'ops.gen.pl', 'perl ops.gen.pl > ops.gen.h');
env.Command(['nodes.gen.h', 'nodes.gen.cc'], 'nodes.gen.pl', 'perl nodes.gen.pl > nodes.gen.h');
env.CXXFile(target='lex.yy.cc', source='Tora.ll')
env.Program('tora', ['Tora.tab.cc lex.yy.cc main.cc value.cc compiler.cc vm.cc array.cc nodes.gen.cc node.cc op.cc ops.gen.cc'.split(' ')])
env.Program('tora', [
'Tora.tab.cc lex.yy.cc main.cc value.cc compiler.cc vm.cc array.cc nodes.gen.cc node.cc op.cc ops.gen.cc'.split(' '),
re2files
])
Binary file added vendor/re2/.hg/00changelog.i
Binary file not shown.
1 change: 1 addition & 0 deletions vendor/re2/.hg/branch
@@ -0,0 +1 @@
default
2 changes: 2 additions & 0 deletions vendor/re2/.hg/cache/branchheads
@@ -0,0 +1,2 @@
0c439a6bd7955a70088003071e5119ea73a7d02e 79
0c439a6bd7955a70088003071e5119ea73a7d02e default
Binary file added vendor/re2/.hg/dirstate
Binary file not shown.
2 changes: 2 additions & 0 deletions vendor/re2/.hg/hgrc
@@ -0,0 +1,2 @@
[paths]
default = https://re2.googlecode.com/hg
4 changes: 4 additions & 0 deletions vendor/re2/.hg/requires
@@ -0,0 +1,4 @@
revlogv1
fncache
store
dotencode
Binary file added vendor/re2/.hg/store/00changelog.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/00manifest.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/_a_u_t_h_o_r_s.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/_c_o_n_t_r_i_b_u_t_o_r_s.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/_l_i_c_e_n_s_e.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/_makefile.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/_r_e_a_d_m_e.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/benchlog/benchlog.c2.i
Binary file not shown.
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/benchlog/benchlog.r70.i
Binary file not shown.
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/benchlog/mktable.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/doc/_r_e_a_d_m_e.xkcd.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/doc/mksyntaxhtml.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/doc/mksyntaxwiki.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/doc/syntax.html.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/doc/syntax.txt.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/doc/xkcd.png.i
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/libre2.symbols.darwin.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/libre2.symbols.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/re2/_makefile.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/re2/bitstate.cc.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/re2/compile.cc.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/re2/dfa.cc.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/re2/filtered__re2.cc.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/re2/filtered__re2.h.i
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/re2/mimics__pcre.cc.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/re2/nfa.cc.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/re2/onepass.cc.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/re2/parse.cc.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/re2/perl__groups.cc.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/re2/prefilter.cc.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/re2/prefilter.h.i
Binary file not shown.
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/re2/prefilter__tree.h.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/re2/prog.cc.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/re2/prog.h.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/re2/re2.cc.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/re2/re2.h.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/re2/regexp.cc.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/re2/regexp.h.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/re2/set.cc.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/re2/set.h.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/re2/simplify.cc.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/re2/stringpiece.h.i
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/re2/testing/dump.cc.i
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/re2/testing/set__test.cc.i
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/re2/testing/tester.cc.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/re2/testing/tester.h.i
Binary file not shown.
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/re2/tostring.cc.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/re2/unicode.py.i
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/re2/unicode__groups.h.i
Binary file not shown.
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/re2/walker-inl.h.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/runtests.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/testinstall.cc.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/ucs2.diff.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/util/arena.cc.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/util/arena.h.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/util/atomicops.h.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/util/benchmark.cc.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/util/benchmark.h.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/util/flags.h.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/util/hash.cc.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/util/hash__map.h.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/util/logging.h.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/util/mutex.h.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/util/pcre.cc.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/util/pcre.h.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/util/random.cc.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/util/random.h.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/util/rune.cc.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/util/sparse__array.h.i
Binary file not shown.
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/util/sparse__set.h.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/util/stringpiece.cc.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/util/stringprintf.cc.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/util/strutil.cc.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/util/test.cc.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/util/test.h.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/util/thread.cc.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/util/thread.h.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/util/utf.h.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/util/util.h.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/util/valgrind.cc.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/util/valgrind.h.i
Binary file not shown.
Binary file added vendor/re2/.hg/store/data/~2ehgignore.i
Binary file not shown.
122 changes: 122 additions & 0 deletions vendor/re2/.hg/store/fncache
@@ -0,0 +1,122 @@
data/re2/testing/parse_test.cc.i
data/benchlog/mktable.i
data/CONTRIBUTORS.i
data/re2/testing/tester.cc.i
data/re2/prefilter_tree.cc.i
data/re2/testing/simplify_test.cc.i
data/re2/Makefile.i
data/re2/testing/set_test.cc.i
data/util/logging.h.i
data/re2/prog.cc.i
data/lib/codereview/codereview.cfg.i
data/util/test.h.i
data/util/sparse_array.h.i
data/libre2.symbols.i
data/lib/codereview/codereview.py.i
data/libre2.symbols.darwin.i
data/re2/perl_groups.cc.i
data/re2/regexp.h.i
data/util/mutex.h.i
data/util/hash_map.h.i
data/util/stringpiece.cc.i
data/util/util.h.i
data/re2/prefilter.h.i
data/re2/testing/charclass_test.cc.i
data/re2/make_unicode_groups.py.i
data/util/sparse_array_test.cc.i
data/re2/set.h.i
data/re2/mimics_pcre.cc.i
data/re2/filtered_re2.h.i
data/re2/testing/search_test.cc.i
data/re2/unicode_casefold.h.i
data/re2/testing/dfa_test.cc.i
data/util/stringprintf.cc.i
data/re2/regexp.cc.i
data/re2/testing/unicode_test.py.i
data/Makefile.i
data/re2/testing/compile_test.cc.i
data/re2/walker-inl.h.i
data/re2/nfa.cc.i
data/doc/mksyntaxhtml.i
data/re2/testing/possible_match_test.cc.i
data/re2/unicode_groups.h.i
data/util/benchmark.cc.i
data/re2/make_perl_groups.pl.i
data/util/strutil.cc.i
data/re2/re2.h.i
data/re2/testing/exhaustive3_test.cc.i
data/re2/testing/dump.cc.i
data/util/random.h.i
data/re2/testing/re2_arg_test.cc.i
data/re2/testing/filtered_re2_test.cc.i
data/README.i
data/re2/testing/string_generator.cc.i
data/re2/testing/regexp_generator.cc.i
data/util/valgrind.cc.i
data/AUTHORS.i
data/re2/testing/regexp_test.cc.i
data/re2/testing/string_generator.h.i
data/util/pcre.cc.i
data/util/thread.cc.i
data/re2/prog.h.i
data/re2/testing/backtrack.cc.i
data/util/pcre.h.i
data/re2/testing/exhaustive_tester.cc.i
data/util/thread.h.i
data/testinstall.cc.i
data/re2/dfa.cc.i
data/re2/testing/required_prefix_test.cc.i
data/re2/tostring.cc.i
data/util/arena.h.i
data/util/test.cc.i
data/re2/testing/null_walker.cc.i
data/.hgignore.i
data/re2/unicode.py.i
data/re2/simplify.cc.i
data/re2/prefilter.cc.i
data/re2/stringpiece.h.i
data/re2/testing/string_generator_test.cc.i
data/re2/filtered_re2.cc.i
data/util/utf.h.i
data/doc/xkcd.png.i
data/re2/testing/re2_test.cc.i
data/re2/re2.cc.i
data/util/valgrind.h.i
data/re2/bitstate.cc.i
data/re2/set.cc.i
data/re2/variadic_function.h.i
data/re2/unicode_groups.cc.i
data/doc/syntax.html.i
data/re2/unicode_casefold.cc.i
data/re2/testing/exhaustive_test.cc.i
data/benchlog/benchlog.r70.i
data/re2/testing/mimics_pcre_test.cc.i
data/re2/compile.cc.i
data/re2/parse.cc.i
data/doc/syntax.txt.i
data/re2/testing/exhaustive2_test.cc.i
data/doc/mksyntaxwiki.i
data/ucs2.diff.i
data/re2/testing/exhaustive_tester.h.i
data/re2/testing/regexp_generator.h.i
data/util/benchmark.h.i
data/re2/prefilter_tree.h.i
data/util/atomicops.h.i
data/util/sparse_set.h.i
data/util/arena.cc.i
data/util/rune.cc.i
data/re2/testing/regexp_benchmark.cc.i
data/benchlog/benchlog.mini.i
data/LICENSE.i
data/re2/onepass.cc.i
data/util/flags.h.i
data/benchlog/benchlog.wreck.i
data/util/hash.cc.i
data/re2/make_unicode_casefold.py.i
data/benchlog/benchlog.c2.i
data/util/random.cc.i
data/runtests.i
data/re2/testing/tester.h.i
data/re2/testing/random_test.cc.i
data/doc/README.xkcd.i
data/re2/testing/exhaustive1_test.cc.i
Empty file added vendor/re2/.hg/store/phaseroots
Empty file.
Binary file added vendor/re2/.hg/store/undo
Binary file not shown.
Empty file.
Empty file added vendor/re2/.hg/undo.bookmarks
Empty file.
1 change: 1 addition & 0 deletions vendor/re2/.hg/undo.branch
@@ -0,0 +1 @@
default
3 changes: 3 additions & 0 deletions vendor/re2/.hg/undo.desc
@@ -0,0 +1,3 @@
0
pull
https://re2.googlecode.com/hg
Empty file added vendor/re2/.hg/undo.dirstate
Empty file.
7 changes: 7 additions & 0 deletions vendor/re2/.hgignore
@@ -0,0 +1,7 @@
syntax:glob
*.pyc
*.orig
core

syntax:regexp
^obj/
12 changes: 12 additions & 0 deletions vendor/re2/AUTHORS
@@ -0,0 +1,12 @@
# This is the official list of RE2 authors for copyright purposes.
# This file is distinct from the CONTRIBUTORS files.
# See the latter for an explanation.

# Names should be added to this file as
# Name or Organization <email address>
# The email address is not required for organizations.

# Please keep the list sorted.

Google Inc.
Stefano Rivera <stefano.rivera@gmail.com>
33 changes: 33 additions & 0 deletions vendor/re2/CONTRIBUTORS
@@ -0,0 +1,33 @@
# This is the official list of people who can contribute
# (and typically have contributed) code to the RE2 repository.
# The AUTHORS file lists the copyright holders; this file
# lists people. For example, Google employees are listed here
# but not in AUTHORS, because Google holds the copyright.
#
# The submission process automatically checks to make sure
# that people submitting code are listed in this file (by email address).
#
# Names should be added to this file only after verifying that
# the individual or the individual's organization has agreed to
# the appropriate Contributor License Agreement, found here:
#
# http://code.google.com/legal/individual-cla-v1.0.html
# http://code.google.com/legal/corporate-cla-v1.0.html
#
# The agreement for individuals can be filled out on the web.
#
# When adding J Random Contributor's name to this file,
# either J's name or J's organization's name should be
# added to the AUTHORS file, depending on whether the
# individual or corporate CLA was used.

# Names should be added to this file like so:
# Name <email address>

# Please keep the list sorted.

Rob Pike <r@google.com>
Russ Cox <rsc@swtch.com>
Sanjay Ghemawat <sanjay@google.com>
Stefano Rivera <stefano.rivera@gmail.com>
Srinivasan Venkatachary <vsri@google.com>
27 changes: 27 additions & 0 deletions vendor/re2/LICENSE
@@ -0,0 +1,27 @@
// Copyright (c) 2009 The RE2 Authors. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following disclaimer
// in the documentation and/or other materials provided with the
// distribution.
// * Neither the name of Google Inc. nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

0 comments on commit df158e1

Please sign in to comment.