| 程序包 | 说明 |
|---|---|
| org.ssssssss.script.parsing | |
| org.ssssssss.script.parsing.ast | |
| org.ssssssss.script.parsing.ast.literal |
| 限定符和类型 | 类和说明 |
|---|---|
class |
LiteralToken |
class |
RegexpToken |
| 限定符和类型 | 方法和说明 |
|---|---|
Token |
TokenStream.consume()
Consumes the next token and returns it.
|
Token |
TokenStream.expect(String text)
Checks if the next token matches the given text and optionally consumes, or throws an error if the next token did not match
the text.
|
Token |
TokenStream.expect(TokenType type)
Checks if the next token has the give type and optionally consumes, or throws an error if the next token did not match the
type.
|
Token |
TokenStream.getPrev() |
Token |
TokenStream.next() |
Token |
TokenStream.prev() |
| 构造器和说明 |
|---|
TokenStream(List<Token> tokens) |
| 限定符和类型 | 方法和说明 |
|---|---|
static Expression |
BinaryOperation.create(Expression left,
Token operator,
Expression right,
int linqLevel) |
static UnaryOperation.UnaryOperator |
UnaryOperation.UnaryOperator.getOperator(Token op) |
| 构造器和说明 |
|---|
UnaryOperation(Token operator,
Expression operand) |
UnaryOperation(Token operator,
Expression operand,
boolean atAfter) |
| 构造器和说明 |
|---|
MapLiteral(Span span,
List<Token> keys,
List<Expression> values) |
Copyright © 2020–2021. All rights reserved.