Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(162)

Side by Side Diff: src/trusted/validator_ragel/byte_machines.py

Issue 12450015: **/*.py: use /usr/bin/env to find python Base URL: https://chromium.googlesource.com/native_client/src/native_client@master
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 # Creates byte_machines.rl file. Each machine accepts exactly one byte. 6 # Creates byte_machines.rl file. Each machine accepts exactly one byte.
7 # 7 #
8 # In the name of a machine "0" means "unset bit", "1" means "set bit", "x" or 8 # In the name of a machine "0" means "unset bit", "1" means "set bit", "x" or
9 # "X" mean "any bit", other letters are ignored. Prefix "b_" is used as 9 # "X" mean "any bit", other letters are ignored. Prefix "b_" is used as
10 # convention to distinguish these autogenerated machines from the hand-written 10 # convention to distinguish these autogenerated machines from the hand-written
11 # ones, underscores do not matter and are used to separate bitfields in a byte 11 # ones, underscores do not matter and are used to separate bitfields in a byte
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 print 207 print
208 208
209 for byte_machine in byte_machines: 209 for byte_machine in byte_machines:
210 print ' %s = %s;' % (byte_machine, MatchingBytes(byte_machine)) 210 print ' %s = %s;' % (byte_machine, MatchingBytes(byte_machine))
211 211
212 print '}%%' 212 print '}%%'
213 213
214 214
215 if __name__ == '__main__': 215 if __name__ == '__main__':
216 main() 216 main()
OLDNEW
« no previous file with comments | « src/trusted/validator_mips/validation-report.py ('k') | src/trusted/validator_ragel/check_decoder.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698