diff options
Diffstat (limited to 'src/CodeParserController.ts')
| -rw-r--r-- | src/CodeParserController.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/CodeParserController.ts b/src/CodeParserController.ts index 8be7034..1dfc5c4 100644 --- a/src/CodeParserController.ts +++ b/src/CodeParserController.ts @@ -11,6 +11,8 @@ import { import CodeParser from "./Common/ICodeParser"; import { Config } from "./Config"; import CppParser from "./Lang/Cpp/CppParser"; +import PythonParser from "./Lang/Python/PythonParser"; + /** * * Checks if the event matches the specified guidelines and if a parser exists for this language @@ -116,6 +118,9 @@ export default class CodeParserController { case "cpp": parser = new CppParser(this.cfg); break; + case "python": + parser = new PythonParser(this.cfg); + break; default: // tslint:disable-next-line:no-console console.log("No comments can be generated for language: " + lang); |