File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -2775,4 +2775,30 @@ B";
27752775 " ;
27762776 parse ( YaccKind :: Original ( YaccOriginalActionKind :: NoAction ) , src) . unwrap ( ) ;
27772777 }
2778+
2779+ #[ test]
2780+ fn test_grmtools_section_yacckinds ( ) {
2781+ let srcs = [
2782+ "%grmtools{yacckind Original(NoAction)}
2783+ %%
2784+ Start: ;" ,
2785+ "%grmtools{yacckind YaccKind::Original(GenericParseTree)}
2786+ %%
2787+ Start: ;" ,
2788+ "%grmtools{yacckind YaccKind::Original(yaccoriginalactionkind::useraction)}
2789+ %actiontype ()
2790+ %%
2791+ Start: ;" ,
2792+ "%grmtools{yacckind Original(YACCOriginalActionKind::NoAction)}
2793+ %%
2794+ Start: ;" ,
2795+ "%grmtools{yacckind YaccKind::Grmtools}
2796+ %%
2797+ Start -> () : ;" ,
2798+ ] ;
2799+ for src in srcs {
2800+ YaccParser :: new ( YaccKindResolver :: NoDefault , src. to_string ( ) ) . parse ( ) . unwrap ( ) ;
2801+ }
2802+
2803+ }
27782804}
You can’t perform that action at this time.
0 commit comments