diff --git a/src/rust/Grammar.re b/src/rust/Grammar.re index 5b87dfb1..19e8be31 100644 --- a/src/rust/Grammar.re +++ b/src/rust/Grammar.re @@ -35,7 +35,7 @@ let c = (~p=Padding.none, s) => t(Label.const(~padding=p, s)); let abi = t(Id_lower); //Path exps -let typ_atom = nt(Sort.of_str("Typ")) +let typ_atom = nt(Sort.of_str("Typ")); let path_ident_segment = alt([ diff --git a/src/rust/Sort.re b/src/rust/Sort.re index 07e9a574..dc05e797 100644 --- a/src/rust/Sort.re +++ b/src/rust/Sort.re @@ -3,13 +3,12 @@ type t = | Exp | Pat | Stat - | Item + | Item | Typ; let root = Item; let all = [Exp, Pat, Typ, Item, Stat]; - let to_str = fun | Typ => "Typ"