Total Complexity | 2 |
Total Lines | 29 |
Duplicated Lines | 0 % |
1 | """ |
||
17 | class SDoc2Interpreter: |
||
18 | """ |
||
19 | Class for processing SDoc1 documents. |
||
20 | """ |
||
21 | # ------------------------------------------------------------------------------------------------------------------ |
||
22 | def __init__(self): |
||
23 | """ |
||
24 | Object constructor. |
||
25 | """ |
||
26 | pass |
||
27 | |||
28 | # ------------------------------------------------------------------------------------------------------------------ |
||
29 | def process(self, infile): |
||
30 | """ |
||
31 | Processes a SDoc1 document. |
||
32 | |||
33 | :param str infile: The input filename with the SDoc2 document. |
||
34 | """ |
||
35 | in_stream = antlr4.FileStream(infile, 'utf-8') |
||
36 | |||
37 | lexer = sdoc2Lexer(in_stream) |
||
38 | tokens = antlr4.CommonTokenStream(lexer) |
||
39 | parser = sdoc2Parser(tokens) |
||
40 | tree = parser.sdoc() |
||
41 | visitor = SDoc2Visitor() |
||
42 | |||
43 | visitor.visit(tree) |
||
44 | |||
45 | sdoc.sdoc2.node_store.prepare_content_tree() |
||
46 | |||
49 |
This can be caused by one of the following:
1. Missing Dependencies
This error could indicate a configuration issue of Pylint. Make sure that your libraries are available by adding the necessary commands.
2. Missing __init__.py files
This error could also result from missing
__init__.py
files in your module folders. Make sure that you place one file in each sub-folder.