We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b7d8bc commit 8635967Copy full SHA for 8635967
1 file changed
solver/src/main/kotlin/org/ucfs/grammar/combinator/extension/StringExtension.kt
@@ -19,11 +19,12 @@ object StringExtension {
19
infix fun String.or(other: String): Regexp = Alternative.makeAlternative(left = Term(this), Term(other))
20
infix fun String.or(other: Regexp): Regexp = Alternative.makeAlternative(left = Term(this), other)
21
infix fun Regexp.or(other: String): Regexp = Alternative.makeAlternative(left = this, Term(other))
22
+ infix fun Regexp.or(other: Regexp): Regexp = Alternative.makeAlternative(left = this, other)
23
24
25
fun many(some: String): Regexp {
26
return many(Term(some))
27
}
28
fun Option(exp: String) = Alternative.makeAlternative(Epsilon, Term(exp))
29
-}
30
+}
0 commit comments