From ad35bf24d80c36b3847538cf846d35de7751f7f2 Mon Sep 17 00:00:00 2001 From: Ryo Nihei Date: Fri, 3 Sep 2021 17:09:03 +0900 Subject: Use the LALR by default when using grammar.Compile instead of the CLI --- grammar/grammar.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'grammar') diff --git a/grammar/grammar.go b/grammar/grammar.go index 7e86ea8..1080e53 100644 --- a/grammar/grammar.go +++ b/grammar/grammar.go @@ -977,7 +977,9 @@ func SpecifyClass(class Class) CompileOption { } func Compile(gram *Grammar, opts ...CompileOption) (*spec.CompiledGrammar, error) { - config := &compileConfig{} + config := &compileConfig{ + class: ClassLALR, + } for _, opt := range opts { opt(config) } -- cgit v1.2.3