Rename Scanner and Parser classes to SourceScanner and SourceParser to avoid naming conflicts.

This commit is contained in:
Stefan Rado 2014-02-18 22:07:42 +01:00
parent e9feef8ff6
commit 55e66f5ad1
3 changed files with 7 additions and 7 deletions

View File

@ -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)

View File

@ -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.
"""

View File

@ -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.