From e4a5958fc8d9e131ab083215a51a1b60acf91410 Mon Sep 17 00:00:00 2001 From: Ryo Nihei Date: Sun, 18 Jul 2021 22:15:35 +0900 Subject: Detect multiple semantic errors in a single parse --- cmd/vartan/compile.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cmd') diff --git a/cmd/vartan/compile.go b/cmd/vartan/compile.go index 804bd4f..354637b 100644 --- a/cmd/vartan/compile.go +++ b/cmd/vartan/compile.go @@ -119,7 +119,8 @@ func readGrammar(path string) (grm *grammar.Grammar, retErr error) { return nil, err } - return grammar.NewGrammar(ast) + var b grammar.GrammarBuilder + return b.Build(ast) } func writeCompiledGrammar(cgram *spec.CompiledGrammar, path string) error { -- cgit v1.2.3