Skip to content

Commit

Permalink
Update Fix-User-Guide.md
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasNx authored Oct 7, 2024
1 parent ddca030 commit eb3bdcc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/fix/Fix-User-Guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ This document provides an introduction to the Metafacture Fix language (short: M
Metafacture Fix is a transformation module that can be used in a [Flux Workflow](../flux/Flux-User-Guide.html), for this you have to use this in your pipeline:

Flux-Example:
```PERL
```perl
infile
| open-file
| as-lines
Expand Down Expand Up @@ -41,7 +41,7 @@ The incoming record then can be manipulated, fields can be changed, removed or a
The four main concepts of FIX (introduced by catmandu) are [functions](https://librecat.org/Catmandu/#functions), [selector](https://librecat.org/Catmandu/#selectors), [conditionals](https://librecat.org/Catmandu/#conditionals) and [binds](https://librecat.org/Catmandu/#binds). The following code snippet shows examples of eachs of these concepts:


```PERL
```perl

# Simple fix function

Expand Down Expand Up @@ -83,7 +83,7 @@ end
**Binds** are wrappers for one or more fixes. They give extra control functionality for fixes such as loops.
All binds have the same syntax:

```PERL
```perl
do Bind(params,…)
fix(..)
fix(..)
Expand All @@ -100,7 +100,7 @@ Internally FIX knows arrays, objects/hashes and simple elements. How a format is
Since functions manipulate, add or remove elements in a record, it is essential to understand the way you can address source or target elements.

e.g.:
```PERL
```perl
copy_field("<sourceField>", "<targetField>")
```

Expand Down Expand Up @@ -181,7 +181,7 @@ mechanism later.
Macros are called with the `call_macro` function. Attributes
of the function are used as parameters:

```PERL
```perl
do put_macro("concat-up")
set_array("$[target_field]")
copy_field("$[source_field]","$[target_field].$append")
Expand Down

0 comments on commit eb3bdcc

Please sign in to comment.