Skip to content

Commit

Permalink
feat: change parse method of IParser interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Bikossor committed Jul 12, 2022
1 parent fc4125b commit 2de1320
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Interfaces/IParser.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Token } from ".";
import { AbstractSyntaxTree } from "./AbstractSyntaxTree";
import { ParserState } from "rudus/dist/types/ParserState";

export interface IParser {
parse(tokens: Array<Token>): AbstractSyntaxTree;
parse(input: string): ParserState; // TODO: maybe use a generic version of ParserState in the future
}

0 comments on commit 2de1320

Please sign in to comment.