| Package | Description |
|---|---|
| in.ashwanthkumar.utils.parser |
| Modifier and Type | Method and Description |
|---|---|
static Parser<String> |
Parsers.Character(char input) |
Parser<T> |
Parser.debug() |
static Parser<Double> |
Parsers.Double(Double num) |
static Parser<Integer> |
Parsers.Integer(Integer num) |
static Parser<String> |
Parsers.Literal(String literal) |
<U> Parser<U> |
Parser.map(Function<T,U> transform)
this.map(transform) succeeds if this succeeds and transform is used to convert the result of this |
Parser<T> |
Parser.named(String name) |
Parser<T> |
Parser.or(Parser<T> another)
this.or(another) succeeds if this succeeds or another succeeds on the given input. |
static Parser<String> |
Parsers.Regex(Pattern regex) |
static <T> Parser<List<T>> |
Parsers.Sequence(Parser<T> parser)
Applies the parser repeatedly on the input
|
Parser<T> |
Parser.skip(int nChars) |
<U> Parser<Tuple2<T,U>> |
Parser.then(Parser<U> another)
this.thenL(another) succeeds if this succeeds and another succeeds on the input left over by this |
<U> Parser<T> |
Parser.thenL(Parser<U> another)
this.thenL(another) succeeds if this succeeds and another succeeds on the input left over by this |
<U> Parser<U> |
Parser.thenR(Parser<U> another)
this.thenR(another) succeeds if this succeeds and another succeeds on the input left over by this |
| Modifier and Type | Method and Description |
|---|---|
Parser<T> |
Parser.or(Parser<T> another)
this.or(another) succeeds if this succeeds or another succeeds on the given input. |
static <T> Parser<List<T>> |
Parsers.Sequence(Parser<T> parser)
Applies the parser repeatedly on the input
|
<U> Parser<Tuple2<T,U>> |
Parser.then(Parser<U> another)
this.thenL(another) succeeds if this succeeds and another succeeds on the input left over by this |
<U> Parser<T> |
Parser.thenL(Parser<U> another)
this.thenL(another) succeeds if this succeeds and another succeeds on the input left over by this |
<U> Parser<U> |
Parser.thenR(Parser<U> another)
this.thenR(another) succeeds if this succeeds and another succeeds on the input left over by this |
Copyright © 2016. All rights reserved.