public class Parsers
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static Parser<java.lang.Character> |
fixedChar(char terminal)
Construct a parser which looks for a fixed char in the input.
|
static Parser<java.lang.String> |
fixedString(java.lang.String terminal)
Construct a parser which looks for a fixed string in the input.
|
public static Parser<java.lang.String> fixedString(java.lang.String terminal)
terminal - The string to look for.public static Parser<java.lang.Character> fixedChar(char terminal)
terminal - The char to look for.