From 2de1320dbc9b797446c7a10ff60ffd46e42b4312 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Lichtenth=C3=A4ler?= Date: Tue, 12 Jul 2022 23:45:19 +0200 Subject: [PATCH] feat: change parse method of IParser interface #119 --- src/Interfaces/IParser.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Interfaces/IParser.ts b/src/Interfaces/IParser.ts index f0c7da3..82f5382 100644 --- a/src/Interfaces/IParser.ts +++ b/src/Interfaces/IParser.ts @@ -1,6 +1,5 @@ -import { Token } from "."; -import { AbstractSyntaxTree } from "./AbstractSyntaxTree"; +import { ParserState } from "rudus/dist/types/ParserState"; export interface IParser { - parse(tokens: Array): AbstractSyntaxTree; + parse(input: string): ParserState; // TODO: maybe use a generic version of ParserState in the future }