Skip to content

Commit a2b9675

Browse files
committed
Make source-stableish API
1 parent 6ba5cd6 commit a2b9675

File tree

3 files changed

+90
-256
lines changed

3 files changed

+90
-256
lines changed

Sources/Regex2BNF/Regex2BNF.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ struct Regex2BNF: ParsableCommand {
2525

2626
func convert(_ pattern: String) throws {
2727
print("/\(pattern)/\n")
28-
print(try _printAsBNF(inputRegex: pattern))
28+
let bnf = try convertRegexToBNF(
29+
regex: pattern, namespace: "RE2BNF", version: 0)
30+
print(bnf)
2931
}
3032

3133
mutating func run() throws {

0 commit comments

Comments
 (0)