jaskell.parsec.Return Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jaskell-java8 Show documentation
Show all versions of jaskell-java8 Show documentation
This is a utils library for java 8 project.
It include parsec combinators and sql generators library.
package jaskell.parsec;
import java.io.EOFException;
/**
* Created by Mars Liu on 2016-01-07.
* Return 不改变 state ,它直接返回预设值.
*/
public class Return implements Parsec {
private final T item;
@Override
public T parse(State s)
throws EOFException, ParsecException {
return item;
}
public Return(T item){
this.item = item;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy