Uses of Class
net.diversionmc.parser.Parser
Packages that use Parser
-
Uses of Parser in net.diversionmc.parser
Methods in net.diversionmc.parser that return ParserModifier and TypeMethodDescription<L extends ExpressionPiece,R extends ExpressionPiece>
Parser<T>Parser.group(Predicate<ExpressionPiece> left, Predicate<ExpressionPiece> right, GroupSupplier<L, R> supplier) Create a grouper for specific pieces.Parser.parser()Create Parser without any input attached and automatically set name.Create Parser from a file.Create Parser of a text with a title.Parser.parser(String name, InputStream is) Create Parser from an input stream with a title.Create Parser of a text with a title.Parser.pattern(String id, ParsePattern<T> pattern) Add a piece to sentence converter.Parser.piece(PiecePredicate check, PieceSupplier supplier) Add a parse piece.Parser.piece(PieceSupplier supplier) Add a parse piece that is always accepted.Parser.pieceFinish(Consumer<ExpressionPiece> event) Add an action to run after a piece is completed.Set the first action to perform onbuild()before starting to parse text.Set text to parse from a file, as well as text title.Parser.readFrom(InputStream is) Set text to parse from a stream.Set text to parse.