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

Side by Side Diff: mojo/public/tools/bindings/pylib/parse/mojo_translate.py

Issue 226263002: Mojo: Move mojo/public/bindings to mojo/public/tools/bindings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « mojo/public/tools/bindings/pylib/parse/mojo_parser_unittest.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2013 The Chromium Authors. All rights reserved. 2 # Copyright 2013 The Chromium 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 """Translate parse tree to Mojom IR""" 6 """Translate parse tree to Mojom IR"""
7 7
8 8
9 import os 9 import os
10 import sys 10 import sys
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 print("usage: %s filename" % (sys.argv[0])) 136 print("usage: %s filename" % (sys.argv[0]))
137 sys.exit(1) 137 sys.exit(1)
138 tree = eval(open(sys.argv[1]).read()) 138 tree = eval(open(sys.argv[1]).read())
139 name = os.path.splitext(os.path.basename(sys.argv[1]))[0] 139 name = os.path.splitext(os.path.basename(sys.argv[1]))[0]
140 result = Translate(tree, name) 140 result = Translate(tree, name)
141 print(result) 141 print(result)
142 142
143 143
144 if __name__ == '__main__': 144 if __name__ == '__main__':
145 Main() 145 Main()
OLDNEW
« no previous file with comments | « mojo/public/tools/bindings/pylib/parse/mojo_parser_unittest.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698