Last active
May 11, 2020 23:41
-
-
Save amazzalel-habib/f9ec885d2afcef38f2cd9ef01b6af60b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { TodoExpressionsContext } from "../ANTLR/TodoLangGrammarParser"; | |
import { parseAndGetASTRoot, parseAndGetSyntaxErrors } from "./Parser"; | |
import { ITodoLangError } from "./TodoLangErrorListener"; | |
export default class TodoLangLanguageService { | |
validate(code: string): ITodoLangError[] { | |
const syntaxErrors: ITodoLangError[] = parseAndGetSyntaxErrors(code); | |
//Later we will append semantic errors | |
return syntaxErrors; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment