File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Sources/_StringProcessing Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,10 @@ class Compiler {
32
32
}
33
33
34
34
__consuming func emit( ) throws -> MEProgram {
35
+ try emitViaList ( )
36
+ }
37
+
38
+ __consuming func emitViaTree( ) throws -> MEProgram {
35
39
// TODO: Handle global options
36
40
var codegen = ByteCodeGen (
37
41
options: options,
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ func _validateListCompilation<T>(
41
41
_ regex: Regex < T >
42
42
) throws -> Bool {
43
43
let treeCompiler = Compiler ( tree: regex. program. tree)
44
- let treeProgram = try treeCompiler. emit ( )
44
+ let treeProgram = try treeCompiler. emitViaTree ( )
45
45
let listCompiler = Compiler ( tree: regex. program. tree)
46
46
let listProgram = try listCompiler. emitViaList ( )
47
47
return treeProgram. instructions == listProgram. instructions
You can’t perform that action at this time.
0 commit comments