From 434ee1561016d0fd5099c755b150365b7a528c6b Mon Sep 17 00:00:00 2001 From: Ryo Nihei Date: Tue, 15 Jun 2021 19:44:51 +0900 Subject: Add production syntax --- spec/lexer_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'spec/lexer_test.go') diff --git a/spec/lexer_test.go b/spec/lexer_test.go index e7ba3cc..1edf15c 100644 --- a/spec/lexer_test.go +++ b/spec/lexer_test.go @@ -14,11 +14,12 @@ func TestLexer_Run(t *testing.T) { }{ { caption: "the lexer can recognize all kinds of tokens", - src: `id"terminal":;`, + src: `id"terminal":|;`, tokens: []*token{ newIDToken("id"), newTerminalPatternToken("terminal"), newSymbolToken(tokenKindColon), + newSymbolToken(tokenKindOr), newSymbolToken(tokenKindSemicolon), newEOFToken(), }, -- cgit v1.2.3