From 1d0a67bb7e95038f97e5a6c66bd2705d65f0ab57 Mon Sep 17 00:00:00 2001 From: Ryo Nihei Date: Wed, 27 Oct 2021 22:21:39 +0900 Subject: Use maleeni v0.5.1 --- driver/semantic_action_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'driver/semantic_action_test.go') diff --git a/driver/semantic_action_test.go b/driver/semantic_action_test.go index 1d785e4..889016b 100644 --- a/driver/semantic_action_test.go +++ b/driver/semantic_action_test.go @@ -16,10 +16,11 @@ type testSemAct struct { } func (a *testSemAct) Shift(tok *mldriver.Token, recovered bool) { + k := a.gram.LexicalSpecification.Maleeni.Spec.KindNames[tok.KindID] if recovered { - a.actLog = append(a.actLog, fmt.Sprintf("shift/%v/recovered", tok.KindName)) + a.actLog = append(a.actLog, fmt.Sprintf("shift/%v/recovered", k)) } else { - a.actLog = append(a.actLog, fmt.Sprintf("shift/%v", tok.KindName)) + a.actLog = append(a.actLog, fmt.Sprintf("shift/%v", k)) } } -- cgit v1.2.3