Serializing

class fluent.syntax.serializer.FluentSerializer(with_junk=False)[source]

FluentSerializer converts ast.SyntaxNode objects to unicode strings.

with_junk controls if parse errors are written back or not.

serialize(resource)[source]

Serialize a ast.Resource to a string.

serialize_entry(entry, state=0)[source]

Serialize an ast.Entry to a string.