parser.py (6657:ef5fae93a3b2) parser.py (6714:028047200ff7)
1# Copyright (c) 2009 The Hewlett-Packard Development Company
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 100 unchanged lines hidden (view full) ---

109 util.makeDir(code_path)
110 self.symtab.writeCodeFiles(code_path)
111
112 def writeHTMLFiles(self, code_path):
113 util.makeDir(code_path)
114 self.symtab.writeHTMLFiles(code_path)
115
116 def files(self):
1# Copyright (c) 2009 The Hewlett-Packard Development Company
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 100 unchanged lines hidden (view full) ---

109 util.makeDir(code_path)
110 self.symtab.writeCodeFiles(code_path)
111
112 def writeHTMLFiles(self, code_path):
113 util.makeDir(code_path)
114 self.symtab.writeHTMLFiles(code_path)
115
116 def files(self):
117 cc = set([
117 f = set([
118 'ControllerFactory.cc',
118 'ControllerFactory.cc',
119 'MachineType.cc'])
120
121 hh = set([
122 'ControllerFactory.hh',
119 'ControllerFactory.hh',
120 'MachineType.cc',
123 'MachineType.hh',
124 'Types.hh' ])
125
126 for decl_list in self.decl_list_vec:
121 'MachineType.hh',
122 'Types.hh' ])
123
124 for decl_list in self.decl_list_vec:
127 decl_list.files(hh, cc)
125 f |= decl_list.files()
128
126
129 return hh, cc
127 return f
130
131 t_ignore = '\t '
132
133 # C or C++ comment (ignore)
134 def t_c_comment(self, t):
135 r'/\*(.|\n)*?\*/'
136 t.lexer.lineno += t.value.count('\n')
137

--- 532 unchanged lines hidden ---
128
129 t_ignore = '\t '
130
131 # C or C++ comment (ignore)
132 def t_c_comment(self, t):
133 r'/\*(.|\n)*?\*/'
134 t.lexer.lineno += t.value.count('\n')
135

--- 532 unchanged lines hidden ---