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. input
Methods in org.jparsec that return Token Modifier and Type Method Description (package private) abstract Token
ParseContext. getToken()
Returns the current token.(package private) Token
ParserState. getToken()
(package private) Token
ScannerState. getToken()
private static Token
Indentation. 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 eachlf
and insertingindent
andoutdent
tokens properly.Parser<Token>
Indentation. indent()
AParser
that recognizes the generatedindent
token.Parser<java.util.List<Token>>
Indentation. lexer(Parser<?> tokenizer, Parser<?> delim)
AParser
that greedily runstokenizer
, and translates line feed characters ('\n'
) toindent
andoutdent
tokens.Parser<java.util.List<Token>>
Parser. lexer(Parser<?> delim)
AParser
that greedily runsthis
repeatedly, and ignores the pattern recognized bydelim
before and after each occurrence.Parser<Token>
Indentation. outdent()
AParser
that recognizes the generatedoutdent
token.private static Parser<Token>
Indentation. token(java.lang.Object value)
Parser<Token>
Lexicon. token(java.lang.String tokenName)
AParser
that recognizes the token identified bytokenName
.Parser<Token>
Lexicon. token(java.lang.String... tokenNames)
AParser
that 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 boolean
Token. equalToken(Token that)
T
TokenMap. map(Token token)
Transformstoken
to an instance ofT
.private void
Indentation. 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 eachlf
and insertingindent
andoutdent
tokens properly.Parser<T>
Parser. from(Parser<? extends java.util.Collection<Token>> lexer)
private void
Indentation. 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 ofToken
to 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)
-