File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
{-# LANGUAGE TupleSections #-}
2
+ {-# OPTIONS_GHC -Wno-incomplete-patterns #-}
2
3
3
4
module CFG2TM where
4
5
@@ -24,7 +25,7 @@ iSST = State "q_{1}^{2}"
24
25
first :: [Relation ] -> Symbol -> [String ]
25
26
first _ (T (Terminal t)) = [t]
26
27
first rels Eps = concatMap (\ (Relation (n, _)) -> follow rels (N n)) . filter (\ (Relation (_, e : _)) -> e == Eps ) $ rels
27
- first rels (N n) = concatMap (\ (Relation (_, h : _)) -> first rels h) . filter (\ (Relation (x, _)) -> x == n) $ rels
28
+ first rels s @ (N n) = concatMap (\ (Relation (_, h : _)) -> first rels h) . filter (\ (Relation (x, h : _)) -> x == n && h /= s ) $ rels
28
29
29
30
follow :: [Relation ] -> Symbol -> [String ]
30
31
follow rels n = concatMap (first rels)
Original file line number Diff line number Diff line change 19
19
# resolver: ./custom-snapshot.yaml
20
20
# resolver: https://example.com/snapshots/2018-01-01.yaml
21
21
22
- resolver : lts-18.9
22
+ resolver : lts-18.5
23
23
24
24
# User packages to be built.
25
25
# Various formats can be used as shown in the example below.
You can’t perform that action at this time.
0 commit comments