diff options
Diffstat (limited to 'third_party/stp/bison.py')
-rw-r--r-- | third_party/stp/bison.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/third_party/stp/bison.py b/third_party/stp/bison.py new file mode 100644 index 0000000..947ea3f --- /dev/null +++ b/third_party/stp/bison.py @@ -0,0 +1,18 @@ +# Copyright 2014 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +import subprocess +import sys + +(source, name, out,) = sys.argv[1:] + +subprocess.check_call([ + "bison", + "--debug", + "-Wnone", + "-o", out + ".cpp", + "--defines=" + out + ".hpp", + "-p", name, + source, +]) |