This repository was archived by the owner on May 3, 2021. It is now read-only.
File tree 3 files changed +9
-3
lines changed
3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ class JSONActions < Marpa::Actions
15
15
16
16
body = body.gsub(" \\ '" , " '" )
17
17
body = body.gsub(" \\\" " , " \" " )
18
- body = body.gsub(" \\\ / " , " \ /" )
18
+ body = body.gsub(" \\ /" , " /" )
19
19
body = body.gsub(" \\\\ " , " \\ " )
20
20
body = body.gsub(" \\ n" , " \n " )
21
21
body = body.gsub(" \\ r" , " \r " )
Original file line number Diff line number Diff line change @@ -10,6 +10,6 @@ description: |
10
10
libraries :
11
11
libmarpa : ~> 8.6.0
12
12
13
- crystal : 0.31 .0
13
+ crystal : 0.34 .0
14
14
15
15
license : GPLv3
Original file line number Diff line number Diff line change @@ -335,7 +335,8 @@ module Marpa
335
335
when LibMarpa ::MarpaStepType ::MARPA_STEP_INACTIVE
336
336
stack = stack[0 ]
337
337
break
338
- when LibMarpa ::MarpaStepType ::MARPA_STEP_INITIAL
338
+ else
339
+ raise " Unimplemented step type #{ step_type } "
339
340
end
340
341
end
341
342
@@ -551,6 +552,7 @@ module Marpa
551
552
else
552
553
@tokens [lhs] = [rhs]
553
554
end
555
+ else nil # Ignore
554
556
end
555
557
end
556
558
@@ -655,6 +657,7 @@ module Marpa
655
657
else
656
658
@tokens [lhs] = [[rhs]]
657
659
end
660
+ else nil # Ignore
658
661
end
659
662
660
663
" "
@@ -705,6 +708,7 @@ module Marpa
705
708
pause = adverb[2 ].as(String )
706
709
when " event"
707
710
event = adverb[2 ].as(String )
711
+ else nil # Ignore
708
712
end
709
713
end
710
714
@@ -719,6 +723,7 @@ module Marpa
719
723
when " after"
720
724
lexeme[" completion" ] = event
721
725
status = LibMarpa .marpa_g_symbol_is_completion_event_set(grammar, symbol_id, 1 )
726
+ else nil # Ignore
722
727
end
723
728
724
729
@lexemes [symbol_id] = lexeme
@@ -778,6 +783,7 @@ module Marpa
778
783
options = options | Regex ::Options ::MULTILINE
779
784
when " x"
780
785
options = options | Regex ::Options ::EXTENDED
786
+ else nil # Ignore
781
787
end
782
788
end
783
789
You can’t perform that action at this time.
0 commit comments