From 0cf26ed10f2563ea6721590ddbd5cccc7fa502b1 Mon Sep 17 00:00:00 2001 From: Ryo Nihei Date: Tue, 7 Sep 2021 01:02:22 +0900 Subject: Call the 'MissError' when input doesn't meet an error production --- driver/parser.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'driver/parser.go') diff --git a/driver/parser.go b/driver/parser.go index 522362e..3099d73 100644 --- a/driver/parser.go +++ b/driver/parser.go @@ -136,6 +136,10 @@ ACTION_LOOP: return err } if tok.EOF { + if p.semAct != nil { + p.semAct.MissError() + } + return nil } -- cgit v1.2.3