symbol

fun <S> symbol(s: S): Parser<S, S>

A parser that matches a specific symbol.

Return

A parser that returns the matched symbol and the next index if the symbol is matched.

Parameters

s

The symbol to match.