-
Notifications
You must be signed in to change notification settings - Fork 0
Ebel (ebe language)
Marek Sedláček edited this page Nov 1, 2021
·
9 revisions
Ebe internal language (ebel) is the language to which ebe compiles and which it can run.
Simply said ebel is a set of instruction in a pipeline which modify input text. These pipelines are created for different passes through the input.
Ebel is case insensitive (NOP
can be written as nop
or NoP
or any combination).
Arguments
in this case means additional instruction argument such as offset, not the actual object (word/line/document) which will be passed to the instruction
Instruction | Name | Definition | Arguments | Pass |
---|---|---|---|---|
NOP |
No operation | No operation is done over argument | All | |
DEL |
Delete | Delete object | All | |
SWAP #ofst |
Swap | Swaps current object with an object of specified offset | Positive offset | Words, Lines |
CONCAT #ofst |
Concatenate | Concatenates current line with a line at specified offset | Positive offset | Lines |
PASS name |
Set parsing | Sets which pass to switch to |
words /lines /documents
|
All (control) |
LOOP |
Loop pass | Loop above instructions until end of input is reached. Instructions after the loop will be executed and after reaching the end of the pass the loop will execute. LOOP nesting is not supported, last LOOP will be used. | All |