AST
A renderer for AST output (a formatted Abstract Syntax Tree), primarily useful for debugging purposes. May be directly passed to the Render
or Transform
APIs:
Renderer.of(AST).build.render(document)
Transformer.from(Markdown).to(AST).build.transform(inputString)
Attributes
- Source
- AST.scala
- Graph
-
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait RenderFormat[Formatter]class Objecttrait Matchableclass AnyShow all
- Self type
-
AST.type
Members list
Type members
Inherited classlikes
Attributes
- Inherited from:
- RenderFormat
- Source
- RenderFormat.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait RenderOverridesclass Objecttrait Matchableclass AnyShow all
Inherited types
The names of the product elements
Attributes
- Inherited from:
- Singleton
- Source
- Mirror.scala
The name of the type
The mirrored *-type
Attributes
- Inherited from:
- Singleton
- Source
- Mirror.scala
Value members
Inherited methods
Short string describing the markup or output format for tooling and logging.
Short string describing the markup or output format for tooling and logging.
Attributes
- Inherited from:
- RenderFormat
- Source
- RenderFormat.scala
Create a new instance of type T
with elements taken from product p
.
Create a new instance of type T
with elements taken from product p
.
Attributes
- Inherited from:
- Singleton
- Source
- Mirror.scala
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Concrete fields
The default renderer function for this output format.
The default renderer function for this output format. It may be overridden by extensions for individual nodes of the AST.
The function takes both, a formatter instance and the element to render and returns a String in the target format.
Attributes
- Source
- AST.scala
The file suffix to use when rendering the output to a file.
The file suffix to use when rendering the output to a file. When transforming entire directories the suffix of the markup file will be automatically replaced by the suffix for the output format.
Attributes
- Source
- AST.scala
The function for creating a new formatter for each render operation, based on the specified context containing the root element, the indentation mechanism and the delegate function for rendering child elements (that may contain user-specified extensions this render format implementation is not aware of).
The function for creating a new formatter for each render operation, based on the specified context containing the root element, the indentation mechanism and the delegate function for rendering child elements (that may contain user-specified extensions this render format implementation is not aware of).
The formatter created by this function (or copies created from it) will be used when invoking the default renderer.
Attributes
- Source
- AST.scala