Collection of filter functions (at most one function per element constructor)
Modulepandoc-lua-marshal-0.3.2.1Haskell2010
Text.Pandoc.Lua.Marshal.Filter
Marshaling/unmarshaling functions Lua filters, i.e., tables containing functions to be called on specific elements.
Synopsis
- data Filter
- data WalkingOrder
- value peekFilter
- value lookup
- value member
- newtype FilterFunction
- value peekFilterFunction
- value pushFilterFunction
- value getFunctionFor
- value baseFunctionName
- value listFunctionName
- value valueFunctionNames
- Packagepandoc-lua-marshal-0.3.2.1
- Exports12
- LanguageHaskell2010
- LicenceMIT
- SourceFilter.hs
Filters
Description of how an AST should be traversed.
Constructors
WalkForEachTypeProcess each type separately, traversing the tree bottom-up (leaves to root) for each type.
WalkTopdownTraverse the tree top-down, from root to leaves and depth first, in a single traversal.
Retrieves a default Filter object from the stack, suitable for filtering a full document.
Looks up a filter function in a Lua Filter.
Checks whether the Filter contains a function of the given name.
Individual filter functions
Filter function stored in the registry
Constructors
Retrieves a filter function from the stack.
The value at the given index must be a function. It is stored in the Lua registry.
Pushes a filter function to the stack.
Filter functions are stored in the registry and retrieved from there.
Finds the best filter function for a given element; returns Nothing if no such function exists.
Names in filter functions
The name of a type's base function, which is called if there is no more specific function for a value.
The name of the functions that's called on lists of the given type.
Filter function names for a given type.