Skip to content

Commit

Permalink
feat: update ParserFactory to use new JavaScript parser
Browse files Browse the repository at this point in the history
  • Loading branch information
Bikossor committed Jul 12, 2022
1 parent a232a34 commit 0e35063
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/factories/ParserFactory.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { IParser } from "../Interfaces";
import { JavaScriptParser } from "../parser";
import { JavaScriptRudusParser } from "../parser";
import { InputLanguage } from "../types";

export const createParser = (language: InputLanguage): IParser => {
switch (language) {
case "JavaScript":
return new JavaScriptParser();
return new JavaScriptRudusParser();
default:
throw new Error("InputLanguage not supported!");
}
Expand Down

0 comments on commit 0e35063

Please sign in to comment.