File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ first :: (TokenSet ts, RuleSet ts rs)
5555first _ (EOF : _) = [EOF ]
5656first _ (t@ (Term _): _) = [t]
5757
58- -- -- -- 非終端記号から始まる n 文字
58+ -- 非終端記号から始まる n 文字
5959first firstSet (Epsilon : xs) = first firstSet xs
6060first firstSet (NonTerm x: xs) =
6161 let firstX = HashSet. toList $ firstSet HashMap. ! NonTerm x
Original file line number Diff line number Diff line change @@ -108,12 +108,12 @@ tryMarkRow row act = do
108108 in tables { action = action', eof_action = eof_action' }
109109 return ()
110110
111- tryInsert :: (Hashable a , TokenSet ts , RuleSet ts rs )
111+ tryInsert :: (Show a , Hashable a , TokenSet ts , RuleSet ts rs )
112112 => a
113113 -> LRAction rs
114114 -> HashMap a (LRAction rs )
115115 -> HashMap a (LRAction rs )
116116tryInsert key act table =
117117 case table !? key of
118- Just _ -> error " conflict"
118+ Just act' -> error $ " conflict : " ++ show (key, act', act)
119119 Nothing -> insert key act table
You can’t perform that action at this time.
0 commit comments