From b24f61a465d21af404ed647a977160042017e601 Mon Sep 17 00:00:00 2001 From: Ryo Nihei Date: Sat, 5 Nov 2022 14:21:13 +0900 Subject: Remove alias system Remove unimportant features to tidy up the specification. --- cmd/vartan/show.go | 6 ------ 1 file changed, 6 deletions(-) (limited to 'cmd') diff --git a/cmd/vartan/show.go b/cmd/vartan/show.go index 328f483..c142623 100644 --- a/cmd/vartan/show.go +++ b/cmd/vartan/show.go @@ -99,9 +99,6 @@ const reportTemplate = `# Conflicts func writeReport(w io.Writer, report *spec.Report) error { termName := func(sym int) string { - if report.Terminals[sym].Alias != "" { - return report.Terminals[sym].Alias - } return report.Terminals[sym].Name } @@ -183,9 +180,6 @@ func writeReport(w io.Writer, report *spec.Report) error { assoc = "-" } - if term.Alias != "" { - return fmt.Sprintf("%4v %v %v %v (%v)", term.Number, prec, assoc, term.Name, term.Alias) - } return fmt.Sprintf("%4v %v %v %v", term.Number, prec, assoc, term.Name) }, "printProduction": func(prod spec.Production) string { -- cgit v1.2.3