srcanamdw/codescanner/BuildParser.py
author noe\swadi
Thu, 18 Feb 2010 12:29:02 +0530
changeset 1 22878952f6e2
permissions -rw-r--r--
Committing the CodeScanner Core tool This component has been moved from the StaticAnaApps package. BUG : 5889 (http://developer.symbian.org/webbugs/show_bug.cgi?id=5889).
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
     1
# #################################################################
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
     2
# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
     3
# All rights reserved.
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
     4
# 
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
     5
# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
     6
# 
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
     7
# * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
     8
# * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
     9
# * Neither the name of Nokia Corporation nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    10
# 
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    11
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    12
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS 
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    13
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    14
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    15
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.#
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    16
#
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    17
# #################################################################
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    18
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    19
import os
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    20
import getopt
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    21
import string
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    22
import sys
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    23
import re
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    24
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    25
def usage(code, msg=""):
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    26
    print msg
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    27
    print "Usage: Buildparser.py -h -s <script dir> -m <main file> -o <output dir/file> -v <version text>"
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    28
    print 
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    29
    print "options:"
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    30
    print "     -h  command help"
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    31
    print "     -s  script dir is the directory containing python subscripts"
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    32
    print "     -m  main file is the file which contains main() function"
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    33
    print "     -o  output dir/file is the directory (and file) for output result"
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    34
    print "     -v  version text indicates within scripts which fractions to copy"
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    35
    print "         into resultant script"
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    36
    print "     -l  localised filename"
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    37
    print
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    38
    sys.exit(code)
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    39
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    40
class CFileScanner:
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    41
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    42
    # Main scan file
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    43
    def startscan(self):
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    44
        # Default output file name is Resultant.py
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    45
        if os.path.isdir(output):
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    46
            resultantfile = open(output+"\Resultant.py", "w")
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    47
        else:
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    48
            resultantfile = open(output, "w")
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    49
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    50
        # Parse main file from begin to '#!PARSE' tag (copy appropriate lines to resultant file)
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    51
        # and store/parse remaining lines (lines after '#!Parse') into an array
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    52
        # scanfile is in use to scan script files. Here is in use to scan main file! (exception)
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    53
        storelines=self.scanfile(mainfile,resultantfile)
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    54
        # Parse other script files(copy appropriate lines to resultant file)
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    55
        self.traverse(scriptdir,resultantfile)
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    56
        # Flush remaining lines from main file (array) to resultant file
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    57
        self.FlushMainFile(resultantfile,storelines)
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    58
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    59
        resultantfile.close()
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    60
    # Flush
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    61
    def FlushMainFile(self,resultantfile,storelines):
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    62
        for line in storelines:
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    63
            resultantfile.write(line)
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    64
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    65
    def InsertFile( self, aResultantfile, aFilename ):
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    66
        # inserts a file without preparsing - for example localised text
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    67
        fileToInsert = open( aFilename, "r" )
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    68
        fileToInsertContent = fileToInsert.readlines()
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    69
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    70
        for fileToInsertLine in fileToInsertContent:
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    71
            aResultantfile.write( fileToInsertLine )
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    72
        
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    73
        fileToInsert.close()
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    74
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    75
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    76
    def scanfile(self,fullfilename,resultantfile):
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    77
        storelines=""
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    78
        ParseDelimiter=False
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    79
        # Copy by default (All lines will be copied which are not within tags)
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    80
        CopyIndicator=True
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    81
        sourcefile = open(fullfilename,"r")
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    82
        filelines = sourcefile.readlines()
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    83
        for line in filelines:
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    84
            delimiter=line.find("#!PARSE")
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    85
            # Parse to delimiter (#!PARSE)
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    86
            if (delimiter<>-1):
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    87
                ParseDelimiter=True
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    88
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    89
            if( -1 <> line.find( "#!LOCALISEHERE" ) ):
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    90
                self.InsertFile( resultantfile, localiseFilename )
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    91
                
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    92
            
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    93
                
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    94
            # Find begining tag
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    95
            delimiter=line.find("#<<")
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    96
            if (delimiter<>-1):
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    97
                # Version (tag) text not found. Don't copy additional lines
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    98
                if (line.find(version,delimiter+3,delimiter+3+len(version))==-1):
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    99
                    CopyIndicator=False
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   100
                else:
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   101
                    # Found given version, copy lines
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   102
                    CopyIndicator=True
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   103
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   104
            # Find ending tag
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   105
            reMethod = re.compile("#.*>>")
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   106
            delimiter = reMethod.search(line)
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   107
            if (delimiter):
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   108
                # End of previous version block declaration
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   109
                if (not CopyIndicator):
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   110
                    # If previous version block was not copied, skip '# >>' (don't write this tag to resultant file)
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   111
                    CopyIndicator=True
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   112
                    continue
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   113
                else:
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   114
                    CopyIndicator=True
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   115
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   116
            # Haven't reached '#!Parse' delimiter so copy current line to resultant file
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   117
            if (not ParseDelimiter):
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   118
                # Copy indicator is still working
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   119
                if (CopyIndicator):
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   120
                    resultantfile.write(line)
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   121
            else:
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   122
                if (CopyIndicator):
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   123
                    # Store lines after '#!PARSE'
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   124
                    storelines=storelines+line
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   125
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   126
        resultantfile.write("\n")                
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   127
        sourcefile.close()
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   128
        return storelines
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   129
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   130
    # Searching subdirectories and files
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   131
    def traverse(self, currentdir,resultantfile):
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   132
        contents = os.listdir(currentdir)
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   133
        for entry in contents:
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   134
            fullfilename = os.path.normpath(os.path.join(currentdir, entry))
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   135
            if os.path.isdir(fullfilename):
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   136
                self.traverse(fullfilename,resultantfile)
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   137
            else:
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   138
                # Scan file if it is not the main file and it is python file
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   139
                if (fullfilename.upper().find((mainfile[mainfile.rfind("\\")+1:]).upper())==-1 and fullfilename.upper()[-3:]==".PY"):
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   140
                    self.scanfile(fullfilename,resultantfile)
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   141
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   142
#
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   143
# main
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   144
#
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   145
opts, args = getopt.getopt(sys.argv[1:], "hs:m:o:v:l:", ["help", "scriptdir=", "mainfile=", "output=","version=","localisefile="])
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   146
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   147
storelines=""
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   148
scriptdir=""
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   149
mainfile=""
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   150
output=""
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   151
version=0
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   152
localiseFilename=""
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   153
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   154
for o, a in opts:
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   155
    if o in ("-h", "--help"):
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   156
        usage(0)
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   157
    if o in ("-s", "--scriptdir"):
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   158
        scriptdir = a
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   159
    if o in ("-m", "--mainfile"):
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   160
        mainfile = a
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   161
    if o in ("-o", "--output"):
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   162
        output = a
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   163
    if o in ("-v", "--version"):
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   164
        version = a
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   165
    if o in ("-l", "--localisefile"):
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   166
        localiseFilename = a
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   167
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   168
if (scriptdir=="" or mainfile=="" or output=="" or version==0 or localiseFilename=="" ):
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   169
    usage(1)
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   170
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   171
scanner = CFileScanner()
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
   172
scanner.startscan()