@@ -64,8 +64,8 @@ export type Optional = { readonly $: 'Optional', readonly expr: Expr }
64
64
export const Optional = ( expr : Expr ) : Optional => ( { $ : "Optional" , expr } ) ;
65
65
export type Call = { readonly $ : "Call" , readonly name : string , readonly params : readonly Expr [ ] }
66
66
export const Call = ( name : string , params : readonly Expr [ ] ) : Call => ( { $ : "Call" , name, params } ) ;
67
- export type Class = { readonly $ : "Class" , readonly seqs : readonly ( Group | ClassChar | SpecialClass | Escape ) [ ] , readonly negated : boolean , readonly insensitive : boolean }
68
- export const Class = ( seqs : readonly ( Group | ClassChar | SpecialClass | Escape ) [ ] , negated : boolean , insensitive : boolean ) : Class => ( { $ : "Class" , insensitive , negated, seqs } ) ;
67
+ export type Class = { readonly $ : "Class" , readonly seqs : readonly ( Group | ClassChar | SpecialClass | Escape ) [ ] , readonly negated : boolean }
68
+ export const Class = ( seqs : readonly ( Group | ClassChar | SpecialClass | Escape ) [ ] , negated : boolean ) : Class => ( { $ : "Class" , negated, seqs } ) ;
69
69
export type Group = { readonly $ : "Group" , readonly from : ClassChar | SpecialClass | Escape , readonly to : ClassChar | SpecialClass | Escape }
70
70
export const Group = ( from : ClassChar | SpecialClass | Escape , to : ClassChar | SpecialClass | Escape ) : Group => ( { $ : "Group" , from, to } ) ;
71
71
export type ClassChar = { readonly $ : "ClassChar" , readonly value : string }
@@ -89,11 +89,6 @@ export const Long = (value: string): Long => ({ $: "Long", value });
89
89
export type Ascii = { readonly $ : "Ascii" , readonly value : string }
90
90
export const Ascii = ( value : string ) : Ascii => ( { $ : "Ascii" , value } ) ;
91
91
92
- type SkipType =
93
- | 'no-space' // no space rule
94
- | 'skip-space' // has space rule, compile with skipping
95
- | 'keep-space' // has space rule, compile without skipping
96
-
97
92
type Context = {
98
93
formals : Set < string > ;
99
94
}
@@ -205,7 +200,7 @@ const transformAny = (_node: g.Any): Transform<Expr> => () => {
205
200
} ;
206
201
207
202
const transformClass = ( { negated, seqs } : g . Class ) : Transform < Expr > => ( ) => {
208
- return Class ( seqs , negated === '^' , false ) ;
203
+ return Class ( seqs , negated === '^' ) ;
209
204
} ;
210
205
211
206
const transformTerminal = ( { value } : g . Terminal ) : Transform < Expr > => ( ) => {
0 commit comments