Write doc comments for the Seq family
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
|
||||
package gigaparsec
|
||||
|
||||
// Seq runs 2 parsers in sequence and maps their collected results with f.
|
||||
func Seq[In, Out, T, T2 any](
|
||||
p Parser[In, T],
|
||||
p2 Parser[In, T2],
|
||||
@@ -38,6 +39,7 @@ func Seq[In, Out, T, T2 any](
|
||||
}
|
||||
}
|
||||
|
||||
// Seq3 runs 3 parsers in sequence and maps their collected results with f.
|
||||
func Seq3[In, Out, T, T2, T3 any](
|
||||
p Parser[In, T],
|
||||
p2 Parser[In, T2],
|
||||
@@ -83,6 +85,7 @@ func Seq3[In, Out, T, T2, T3 any](
|
||||
}
|
||||
}
|
||||
|
||||
// Seq4 runs 4 parsers in sequence and maps their collected results with f.
|
||||
func Seq4[In, Out, T, T2, T3, T4 any](
|
||||
p Parser[In, T],
|
||||
p2 Parser[In, T2],
|
||||
@@ -139,6 +142,7 @@ func Seq4[In, Out, T, T2, T3, T4 any](
|
||||
}
|
||||
}
|
||||
|
||||
// Seq5 runs 5 parsers in sequence and maps their collected results with f.
|
||||
func Seq5[In, Out, T, T2, T3, T4, T5 any](
|
||||
p Parser[In, T],
|
||||
p2 Parser[In, T2],
|
||||
@@ -206,6 +210,7 @@ func Seq5[In, Out, T, T2, T3, T4, T5 any](
|
||||
}
|
||||
}
|
||||
|
||||
// Seq6 runs 6 parsers in sequence and maps their collected results with f.
|
||||
func Seq6[In, Out, T, T2, T3, T4, T5, T6 any](
|
||||
p Parser[In, T],
|
||||
p2 Parser[In, T2],
|
||||
@@ -284,6 +289,7 @@ func Seq6[In, Out, T, T2, T3, T4, T5, T6 any](
|
||||
}
|
||||
}
|
||||
|
||||
// Seq7 runs 7 parsers in sequence and maps their collected results with f.
|
||||
func Seq7[In, Out, T, T2, T3, T4, T5, T6, T7 any](
|
||||
p Parser[In, T],
|
||||
p2 Parser[In, T2],
|
||||
@@ -373,6 +379,7 @@ func Seq7[In, Out, T, T2, T3, T4, T5, T6, T7 any](
|
||||
}
|
||||
}
|
||||
|
||||
// Seq8 runs 8 parsers in sequence and maps their collected results with f.
|
||||
func Seq8[In, Out, T, T2, T3, T4, T5, T6, T7, T8 any](
|
||||
p Parser[In, T],
|
||||
p2 Parser[In, T2],
|
||||
@@ -473,6 +480,7 @@ func Seq8[In, Out, T, T2, T3, T4, T5, T6, T7, T8 any](
|
||||
}
|
||||
}
|
||||
|
||||
// Seq9 runs 9 parsers in sequence and maps their collected results with f.
|
||||
func Seq9[In, Out, T, T2, T3, T4, T5, T6, T7, T8, T9 any](
|
||||
p Parser[In, T],
|
||||
p2 Parser[In, T2],
|
||||
|
||||
Reference in New Issue
Block a user