aboutsummaryrefslogtreecommitdiff
path: root/driver/semantic_action_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'driver/semantic_action_test.go')
-rw-r--r--driver/semantic_action_test.go5
1 files changed, 3 insertions, 2 deletions
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))
}
}