| Package | Description |
|---|---|
| com.io7m.jsx |
Core types, exceptions.
|
| com.io7m.jsx.api.parser |
Parser API.
|
| com.io7m.jsx.api.serializer |
Serializer API.
|
| com.io7m.jsx.combinators |
Combinators for validating and extracting data from S-expressions.
|
| com.io7m.jsx.parser |
Parser.
|
| com.io7m.jsx.prettyprint |
Pretty printer.
|
| com.io7m.jsx.serializer |
A trivial serializer.
|
| Modifier and Type | Interface | Description |
|---|---|---|
interface |
SExpressionAtomType |
The type of atoms (such as symbols and quoted strings).
|
interface |
SExpressionListType |
The type of lists.
|
interface |
SExpressionQuotedStringType |
The type of quoted strings.
|
interface |
SExpressionSymbolType |
The type of symbols.
|
| Modifier and Type | Method | Description |
|---|---|---|
SExpressionType |
SExpressionListType.get(int index) |
| Modifier and Type | Method | Description |
|---|---|---|
SExpressionType |
JSXParserType.parseExpression() |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Optional<SExpressionType> |
JSXParserType.parseExpressionOrEOF() |
|
java.util.List<SExpressionType> |
JSXParserType.parseExpressions() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
JSXSerializerType.serialize(SExpressionType e,
java.io.OutputStream s) |
Serialize the expression to the given output stream.
|
| Modifier and Type | Method | Description |
|---|---|---|
static io.vavr.control.Validation<io.vavr.collection.List<JSXValidationErrorType>,SExpressionListType> |
JSXCombinators.anyList(SExpressionType e) |
Assert that the given expression is a list.
|
static io.vavr.control.Validation<io.vavr.collection.List<JSXValidationErrorType>,SExpressionQuotedStringType> |
JSXCombinators.anyOfQuotedString(SExpressionType e,
io.vavr.collection.List<java.lang.String> texts) |
Assert that the given expression is a symbol with any of the given names.
|
static io.vavr.control.Validation<io.vavr.collection.List<JSXValidationErrorType>,SExpressionSymbolType> |
JSXCombinators.anyOfSymbol(SExpressionType e,
io.vavr.collection.List<java.lang.String> names) |
Assert that the given expression is a symbol with any of the given names.
|
static io.vavr.control.Validation<io.vavr.collection.List<JSXValidationErrorType>,SExpressionQuotedStringType> |
JSXCombinators.anyQuotedString(SExpressionType e) |
Assert that the given expression is a quoted string.
|
static io.vavr.control.Validation<io.vavr.collection.List<JSXValidationErrorType>,SExpressionSymbolType> |
JSXCombinators.anySymbol(SExpressionType e) |
Assert that the given expression is a symbol.
|
static io.vavr.control.Validation<io.vavr.collection.List<JSXValidationErrorType>,SExpressionQuotedStringType> |
JSXCombinators.exactQuotedString(SExpressionType e,
java.lang.String name) |
Assert that the given expression is a quoted string with the given name.
|
static io.vavr.control.Validation<io.vavr.collection.List<JSXValidationErrorType>,SExpressionSymbolType> |
JSXCombinators.exactSymbol(SExpressionType e,
java.lang.String name) |
Assert that the given expression is a symbol with the given name.
|
| Modifier and Type | Method | Description |
|---|---|---|
static <T> io.vavr.control.Validation<io.vavr.collection.List<JSXValidationErrorType>,T> |
JSXCombinators.atListElement(SExpressionListType e,
int index,
java.util.function.Function<SExpressionType,io.vavr.control.Validation<io.vavr.collection.List<JSXValidationErrorType>,T>> receiver) |
Retrieve a value from a list.
|
static <T> io.vavr.control.Validation<io.vavr.collection.List<JSXValidationErrorType>,io.vavr.collection.List<T>> |
JSXCombinators.listMap(SExpressionListType e,
java.util.function.Function<SExpressionType,io.vavr.control.Validation<io.vavr.collection.List<JSXValidationErrorType>,T>> receiver) |
Apply a validation function to each element of the given list expression.
|
| Modifier and Type | Method | Description |
|---|---|---|
SExpressionType |
JSXParser.parseExpression() |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Optional<SExpressionType> |
JSXParser.parseExpressionOrEOF() |
|
java.util.List<SExpressionType> |
JSXParser.parseExpressions() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
JSXPrettyPrinterCodeStyle.print(SExpressionType e) |
|
void |
JSXPrettyPrinterMarkupStyle.print(SExpressionType e) |
|
void |
JSXPrettyPrinterType.print(SExpressionType e) |
Format the given expression and print to the output.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
JSXSerializerTrivial.serialize(SExpressionType e,
java.io.OutputStream s) |
Copyright © 2017 <code@io7m.com> http://io7m.com