forked from Archive/PX4-Autopilot
Rename Scanner and Parser classes to SourceScanner and SourceParser to avoid naming conflicts.
This commit is contained in:
parent
e9feef8ff6
commit
55e66f5ad1
|
@ -39,19 +39,19 @@
|
|||
# definitions, and outputs list of parameters in XML and DokuWiki formats.
|
||||
#
|
||||
|
||||
import scanner
|
||||
import srcscanner
|
||||
import srcparser
|
||||
import output_xml
|
||||
import output_dokuwiki_tables
|
||||
import output_dokuwiki_listings
|
||||
|
||||
# Initialize parser
|
||||
prs = srcparser.Parser()
|
||||
parser = srcparser.SourceParser()
|
||||
|
||||
# Scan directories, and parse the files
|
||||
sc = scanner.Scanner()
|
||||
sc.ScanDir("../../src", prs)
|
||||
groups = prs.GetParamGroups()
|
||||
scanner = srcscanner.SourceScanner()
|
||||
scanner.ScanDir("../../src", parser)
|
||||
groups = parser.GetParamGroups()
|
||||
|
||||
# Output into XML
|
||||
out = output_xml.XMLOutput(groups)
|
||||
|
|
|
@ -72,7 +72,7 @@ class Parameter(object):
|
|||
"""
|
||||
return self.fields.get(code)
|
||||
|
||||
class Parser(object):
|
||||
class SourceParser(object):
|
||||
"""
|
||||
Parses provided data and stores all found parameters internally.
|
||||
"""
|
||||
|
|
|
@ -2,7 +2,7 @@ import os
|
|||
import re
|
||||
import codecs
|
||||
|
||||
class Scanner(object):
|
||||
class SourceScanner(object):
|
||||
"""
|
||||
Traverses directory tree, reads all source files, and passes their contents
|
||||
to the Parser.
|
Loading…
Reference in New Issue