Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ParserRef (0.07 sec)

  1. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/execution/Combinators.kt

     * an input consuming parser at its front (e.g., in `p = paren(p) + p`, the `p` at the right would
     * cause an infinite recursion).
     */
    internal
    fun <T> reference(): ParserRef<T> = ParserRef()
    
    
    internal
    fun <T> zeroOrMore(parser: Parser<T>): Parser<List<T>> = {
        val lazyResult: MutableList<T>? = orMore(parser)
        ParserResult.Success(lazyResult ?: emptyList())
    }
    
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 12.9K bytes
    - Viewed (0)
Back to top