Modifier and Type | Class and Description |
---|---|
static interface |
LispParser.ReaderMacro |
Modifier and Type | Field and Description |
---|---|
static Object |
BACKQUOTE_MACRO |
static Object |
COMMA_MACRO |
protected static AtomParser[] |
escTokenParsers |
protected OperatorDesc[] |
operatorDescs |
static Object |
READ_COMMENT |
static Object |
READ_DISPATCH_CHAR |
static Object |
READ_LIST |
static Object |
READ_QUOTE |
static Object |
READ_RIGHT_PAREN |
static Object |
READ_STRING |
ReadTable |
rt |
static Object |
SHARP_A |
static Object |
SHARP_B |
static Object |
SHARP_BACKSLASH |
static Object |
SHARP_C |
static Object |
SHARP_COLON |
static Object |
SHARP_DOT |
static Object |
SHARP_G |
static Object |
SHARP_ILLEGAL |
static Object |
SHARP_LEFT_PAREN |
static Object |
SHARP_O |
static Object |
SHARP_P |
static Object |
SHARP_QMARK |
static Object |
SHARP_QUOTE |
static Object |
SHARP_R |
static Object |
SHARP_S |
static Object |
SHARP_STAR |
static Object |
SHARP_VERTICAL_BAR |
static Object |
SHARP_X |
protected static AtomParser[] |
tokenParsers |
Constructor and Description |
---|
LispParser() |
Modifier and Type | Method and Description |
---|---|
protected static int |
doReadChar(PushbackReader reader,
ParseCtx pctx) |
protected static void |
doUnreadChar(PushbackReader reader,
ParseCtx pctx,
int n) |
String |
formatArgSpec(ArgSpec spec) |
OperatorDesc[] |
getOperatorDescs() |
protected ASTN |
parse_expr(ParseCtx pctx,
PushbackReader reader)
parse one expression from input stream.
|
ASTNList |
parse(ParseCtx pctx,
Reader r,
int maxExprs)
Parse up to maxExprs from the input stream.
|
ASTNList |
parse(ParseCtx pctx,
String input) |
ASTNList |
parse(ParseCtx pctx,
String str,
int maxExprs)
Parse up to maxExprs from the input string.
|
boolean |
supportREPLStream() |
protected OperatorDesc[] operatorDescs
public static final Object READ_COMMENT
public static final Object READ_STRING
public static final Object READ_LIST
public static final Object READ_RIGHT_PAREN
public static final Object READ_QUOTE
public static final Object READ_DISPATCH_CHAR
public static final Object BACKQUOTE_MACRO
public static final Object COMMA_MACRO
public static final Object SHARP_LEFT_PAREN
public static final Object SHARP_STAR
public static final Object SHARP_DOT
public static final Object SHARP_COLON
public static final Object SHARP_A
public static final Object SHARP_B
public static final Object SHARP_C
public static final Object SHARP_G
public static final Object SHARP_O
public static final Object SHARP_P
public static final Object SHARP_R
public static final Object SHARP_S
public static final Object SHARP_X
public static final Object SHARP_QUOTE
public static final Object SHARP_QMARK
public static final Object SHARP_BACKSLASH
public static final Object SHARP_VERTICAL_BAR
public static final Object SHARP_ILLEGAL
public final ReadTable rt
protected static AtomParser[] tokenParsers
protected static AtomParser[] escTokenParsers
public ASTNList parse(ParseCtx pctx, Reader r, int maxExprs)
public ASTNList parse(ParseCtx pctx, String str, int maxExprs)
protected ASTN parse_expr(ParseCtx pctx, PushbackReader reader)
protected static int doReadChar(PushbackReader reader, ParseCtx pctx) throws IOException
IOException
protected static void doUnreadChar(PushbackReader reader, ParseCtx pctx, int n) throws IOException
IOException
public boolean supportREPLStream()
supportREPLStream
in interface IParser
public String formatArgSpec(ArgSpec spec)
formatArgSpec
in interface IParser
public OperatorDesc[] getOperatorDescs()
getOperatorDescs
in interface IParser
Copyright © 2022. All rights reserved.