From 049502aa73c7d43627b9856219b18bf0da98a255 Mon Sep 17 00:00:00 2001 From: Christoph Schlosser Date: Sat, 20 Oct 2018 14:57:16 +0200 Subject: Add basic Python files --- src/CodeParserController.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/CodeParserController.ts') 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); -- cgit v1.2.3