1111/**
1212 * A SemGuS parser event of the "semgus" type.
1313 */
14- public interface SemgusSpecEvent extends SpecEvent {
14+ public sealed interface SemgusSpecEvent extends SpecEvent {
1515
1616 /**
1717 * A "check-synth" event indicating that the synthesis problem specification is done.
@@ -43,7 +43,7 @@ record DefineTermTypeEvent(String name, List<Constructor> constructors) implemen
4343 * @param name The name of the constructor.
4444 * @param children The names of child term types for this constructor.
4545 */
46- public static record Constructor (String name , List <String > children ) {
46+ public record Constructor (String name , List <String > children ) {
4747 // NO-OP
4848 }
4949
@@ -73,7 +73,7 @@ record HornClauseEvent(
7373 * @param arguments The arguments to the constructor.
7474 * @param returnType The name of the term type constructed by the constructor.
7575 */
76- public static record Constructor (String name , List <TypedVar > arguments , String returnType ) {
76+ public record Constructor (String name , List <TypedVar > arguments , String returnType ) {
7777 // NO-OP
7878 }
7979
@@ -104,7 +104,7 @@ record SynthFunEvent(String name, Map<String, NonTerminal> grammar, String termT
104104 * @param termType The term type corresponding to this non-terminal.
105105 * @param productions A set of productions, indexed by production name.
106106 */
107- public static record NonTerminal (String termType , Map <String , Production > productions ) {
107+ public record NonTerminal (String termType , Map <String , Production > productions ) {
108108 // NO-OP
109109 }
110110
@@ -114,7 +114,7 @@ public static record NonTerminal(String termType, Map<String, Production> produc
114114 * @param operator The name/symbol for this production.
115115 * @param occurrences The names of non-terminals for child terms.
116116 */
117- public static record Production (String operator , List <String > occurrences ) {
117+ public record Production (String operator , List <String > occurrences ) {
118118 // NO-OP
119119 }
120120
0 commit comments