jaskell.parsec.Crlf 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-11.
* Crlf 即 haskell parsec 的 crlf 算子,匹配 \r\n .
*/
public class Crlf
implements Parsec {
@Override
public String parse(State s)
throws EOFException, ParsecException {
new Ch('\r').parse(s);
new Newline().parse(s);
return "\r\n";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy