diff options
author | Ryo Nihei <nihei.dev@gmail.com> | 2022-11-05 14:21:13 +0900 |
---|---|---|
committer | Ryo Nihei <nihei.dev@gmail.com> | 2022-11-05 14:21:13 +0900 |
commit | b24f61a465d21af404ed647a977160042017e601 (patch) | |
tree | 0b695a6775ed6a0a7bb41404b598055855417673 /cmd/vartan/show.go | |
parent | Update README (diff) | |
download | cotia-b24f61a465d21af404ed647a977160042017e601.tar.gz cotia-b24f61a465d21af404ed647a977160042017e601.tar.xz |
Remove alias system
Remove unimportant features to tidy up the specification.
Diffstat (limited to 'cmd/vartan/show.go')
-rw-r--r-- | cmd/vartan/show.go | 6 |
1 files changed, 0 insertions, 6 deletions
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 { |