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

Side by Side Diff: mojo/public/bindings/parse/mojo_parser.py

Issue 53173008: Add mojom_bindings_generator.gypi (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: One more rename Created 7 years, 1 month 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/bindings/parse/__init__.py ('k') | mojo/public/bindings/parse/mojo_translate.py » ('j') | 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 """Generates a syntax tree from a Mojo IDL file.""" 6 """Generates a syntax tree from a Mojo IDL file."""
7 7
8 8
9 import sys 9 import sys
10 import os.path 10 import os.path
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 def Main(): 226 def Main():
227 if len(sys.argv) < 2: 227 if len(sys.argv) < 2:
228 print("usage: %s filename" % (sys.argv[0])) 228 print("usage: %s filename" % (sys.argv[0]))
229 sys.exit(1) 229 sys.exit(1)
230 tree = Parse(filename=sys.argv[1]) 230 tree = Parse(filename=sys.argv[1])
231 print(tree) 231 print(tree)
232 232
233 233
234 if __name__ == '__main__': 234 if __name__ == '__main__':
235 Main() 235 Main()
OLDNEW
« no previous file with comments | « mojo/public/bindings/parse/__init__.py ('k') | mojo/public/bindings/parse/mojo_translate.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698