public final class EsExprParser
extends java.lang.Object
EsExprParser
translates Lisp-like syntax into EsExpr
.
Supports only ASCII characters, treats ';' as start of one-line comment,
does not support multiline symbols and treats them as sequence of expressions.Constructor and Description |
---|
EsExprParser(java.io.Reader reader)
Create new parser for given reader.
|
Modifier and Type | Method and Description |
---|---|
EsExpr |
next()
Returns next complete S-expression read from input.
|
static EsExprParser |
stringParser(java.lang.String str)
Creates parser for given string.
|
public EsExprParser(java.io.Reader reader)
reader
- Reader
instance to read input frompublic EsExpr next() throws java.io.IOException
java.io.IOException
- if an I/O error occurs.public static EsExprParser stringParser(java.lang.String str)
str
- string to parsejava.lang.IllegalArgumentException
- if s
is null