public final class ESExprParser
extends java.lang.Object
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 s)
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
public static ESExprParser stringParser(java.lang.String s)
s
- string to parsejava.lang.NullPointerException
- if s
is null