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

Side by Side Diff: ppapi/generators/generator.py

Issue 7477056: Add base class for generators (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 | « no previous file | ppapi/generators/idl_c_header.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:executable
+ *
Added: svn::eol-style
+ LF
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 #!/usr/bin/python
2 #
3 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
6
7 import sys
8
9 from idl_ast import IDLAst
10 from idl_generator import Generator
11 from idl_log import ErrOut, InfoOut, WarnOut
12 from idl_node import IDLAttribute, IDLNode
13 from idl_option import GetOption, Option, ParseOptions
14 from idl_outfile import IDLOutFile
15 from idl_parser import ParseFiles
16 from idl_c_header import HGen
17
18
19 def Main(args):
20 filenames = ParseOptions(args)
21 ast = ParseFiles(filenames)
22 return Generator.Run(ast)
23
24 if __name__ == '__main__':
25 args = sys.argv[1:]
26
27 # If no arguments are provided, assume we are tring to rebuild the
28 # C headers with warnings off.
29 if not args: args = ['--wnone', '--cgen']
30
31 sys.exit(Main(args))
32
OLDNEW
« no previous file with comments | « no previous file | ppapi/generators/idl_c_header.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698