From 88f83624dc6d7c3b66a34c7c3f414719530e421f Mon Sep 17 00:00:00 2001 From: Ryo Nihei Date: Sat, 17 Apr 2021 22:51:06 +0900 Subject: Add validation of lexical specs and improve error messages --- driver/lexer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'driver/lexer.go') diff --git a/driver/lexer.go b/driver/lexer.go index 4a3c3cc..356b168 100644 --- a/driver/lexer.go +++ b/driver/lexer.go @@ -245,7 +245,7 @@ func (l *lexer) next() (*Token, error) { state = nextState id, ok := l.clspec.DFA.AcceptingStates[state] if ok { - tok = newToken(id, l.clspec.Kinds[id], newByteSequence(buf)) + tok = newToken(id, l.clspec.Kinds[id].String(), newByteSequence(buf)) unfixedBufLen = 0 } } -- cgit v1.2.3