repo.or.cz
/
chromium-blink-merge.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[Sync] Sync the chrome://history page
[chromium-blink-merge.git]
/
third_party
/
stp
/
flex.py
blob
8eac4e0b1597bda47576fe7ee0e4bd908300bd05
1
# Copyright 2014 The Chromium Authors. All rights reserved.
2
# Use of this source code is governed by a BSD-style license that can be
3
# found in the LICENSE file.
4
5
import
subprocess
6
import
sys
7
8
(
source
,
name
,
out
,) =
sys
.
argv
[
1
:]
9
10
subprocess
.
check_call
([
11
"flex"
,
12
"-Cfe"
,
13
"-o"
,
out
+
".cpp"
,
14
"--prefix="
+
name
,
15
source
,
16
])