- Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathparse_to_db.py
30 lines (19 loc) · 570 Bytes
/
parse_to_db.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#
# This file is part of the micropython-esp32-ulp project,
# https://github.com/micropython/micropython-esp32-ulp
#
# SPDX-FileCopyrightText: 2018-2023, the micropython-esp32-ulp authors, see AUTHORS file.
# SPDX-License-Identifier: MIT
importsys
from .preprocessimportPreprocessor
from .definesdbimportDefinesDB
defparse(files):
db=DefinesDB()
p=Preprocessor()
p.use_db(db)
forfinfiles:
print('Processing file:', f)
p.process_include_file(f)
print('Done.')
if__name__=='__main__':
parse(sys.argv[1:])