Uses of Class
org.jparsec.Token
-
Packages that use Token Package Description org.jparsec Provides core Parser implementations for parser combinator logic.org.jparsec.examples.java.parser -
-
Uses of Token in org.jparsec
Fields in org.jparsec declared as Token Modifier and Type Field Description private Token[]ParserState. inputMethods in org.jparsec that return Token Modifier and Type Method Description (package private) abstract TokenParseContext. getToken()Returns the current token.(package private) TokenParserState. getToken()(package private) TokenScannerState. getToken()private static TokenIndentation. pseudoToken(int index, java.lang.Object value)Methods in org.jparsec that return types with arguments of type Token Modifier and Type Method Description (package private) java.util.List<Token>Indentation. analyzeIndentations(java.util.List<Token> tokens, java.lang.Object lf)Analyzes indentation by looking at the first token after eachlfand insertingindentandoutdenttokens properly.Parser<Token>Indentation. indent()AParserthat recognizes the generatedindenttoken.Parser<java.util.List<Token>>Indentation. lexer(Parser<?> tokenizer, Parser<?> delim)AParserthat greedily runstokenizer, and translates line feed characters ('\n') toindentandoutdenttokens.Parser<java.util.List<Token>>Parser. lexer(Parser<?> delim)AParserthat greedily runsthisrepeatedly, and ignores the pattern recognized bydelimbefore and after each occurrence.Parser<Token>Indentation. outdent()AParserthat recognizes the generatedoutdenttoken.private static Parser<Token>Indentation. token(java.lang.Object value)Parser<Token>Lexicon. token(java.lang.String tokenName)AParserthat recognizes the token identified bytokenName.Parser<Token>Lexicon. token(java.lang.String... tokenNames)AParserthat recognizes a token identified by any oftokenNames.Parser<Token>Parser. token()(package private) static TokenMap<Token>InternalFunctors. tokenWithSameValue(java.lang.Object value)Methods in org.jparsec with parameters of type Token Modifier and Type Method Description private booleanToken. equalToken(Token that)TTokenMap. map(Token token)Transformstokento an instance ofT.private voidIndentation. newLine(Token token, java.util.Stack<java.lang.Integer> indentations, int indentation, java.util.List<Token> result)Method parameters in org.jparsec with type arguments of type Token Modifier and Type Method Description (package private) java.util.List<Token>Indentation. analyzeIndentations(java.util.List<Token> tokens, java.lang.Object lf)Analyzes indentation by looking at the first token after eachlfand insertingindentandoutdenttokens properly.Parser<T>Parser. from(Parser<? extends java.util.Collection<Token>> lexer)private voidIndentation. newLine(Token token, java.util.Stack<java.lang.Integer> indentations, int indentation, java.util.List<Token> result)(package private) static Parser<Token[]>Parsers. tokens(Parser<? extends java.util.Collection<Token>> parser)Converts a parser of a collection ofTokento a parser of an array ofToken.Constructors in org.jparsec with parameters of type Token Constructor Description ParserState(java.lang.String module, java.lang.CharSequence source, Token[] input, int at, SourceLocator locator, int endIndex, java.lang.Object result) -
Uses of Token in org.jparsec.examples.java.parser
Methods in org.jparsec.examples.java.parser that return types with arguments of type Token Modifier and Type Method Description static Parser<Token>TerminalParser. adjacent(java.lang.String operator)static Parser<Token>TerminalParser. adjacent(Parser<java.util.List<Token>> parser, Parser<?> otherwise)Method parameters in org.jparsec.examples.java.parser with type arguments of type Token Modifier and Type Method Description static Parser<Token>TerminalParser. adjacent(Parser<java.util.List<Token>> parser, Parser<?> otherwise)
-