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 {
3232 }
3333
3434 __consuming func emit( ) throws -> MEProgram {
35+ try emitViaList ( )
36+ }
37+
38+ __consuming func emitViaTree( ) throws -> MEProgram {
3539 // TODO: Handle global options
3640 var codegen = ByteCodeGen (
3741 options: options,
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ func _validateListCompilation<T>(
4141 _ regex: Regex < T >
4242) throws -> Bool {
4343 let treeCompiler = Compiler ( tree: regex. program. tree)
44- let treeProgram = try treeCompiler. emit ( )
44+ let treeProgram = try treeCompiler. emitViaTree ( )
4545 let listCompiler = Compiler ( tree: regex. program. tree)
4646 let listProgram = try listCompiler. emitViaList ( )
4747 return treeProgram. instructions == listProgram. instructions
You can’t perform that action at this time.
0 commit comments