aboutsummaryrefslogtreecommitdiff
path: root/driver/template.go
diff options
context:
space:
mode:
Diffstat (limited to 'driver/template.go')
-rw-r--r--driver/template.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/driver/template.go b/driver/template.go
index a3d2726..bafe718 100644
--- a/driver/template.go
+++ b/driver/template.go
@@ -71,6 +71,7 @@ func GenLexer(clspec *spec.CompiledLexSpec, pkgName string) ([]byte, error) {
{
var b strings.Builder
fmt.Fprintf(&b, `
+// ModeIDToName converts a mode ID to a name.
func ModeIDToName(id ModeID) string {
switch id {`)
for i, k := range clspec.ModeNames {
@@ -127,6 +128,7 @@ func ModeIDToName(id ModeID) string {
{
var b strings.Builder
fmt.Fprintf(&b, `
+// KindIDToName converts a kind ID to a name.
func KindIDToName(id KindID) string {
switch id {`)
for i, k := range clspec.KindNames {