Wiki source code of SC Language & Graph
Version 7.2 by Alexander Schulz-Rosengarten on 2023/07/06 14:37
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | |||
| 2 | |||
| 3 | {{toc/}} | ||
| 4 | |||
| 5 | = The SC Language (SCL) and its graphical representation (SCG) = | ||
| 6 | |||
| 7 | As mentioned in the introduction SCL is a minimal language. It consists of seven statements. | ||
| 8 | |||
| 9 | [[image:attach:SCL_SCG_instructions.png]] | ||
| 10 | |||
| 11 | The SCG is a labelled graph //G = (S, E)//, whereas | ||
| 12 | |||
| 13 | * the nodes S correspond to the statements of the program | ||
| 14 | * and the edges E reflect the sequential execution ordering | ||
| 15 | |||
| 16 | ABO example: | ||
| 17 | |||
| 18 | (% class="wrapped" %) | ||
| 19 | |=((( | ||
| 20 | ABO SCL | ||
| 21 | )))|=((( | ||
| 22 | ABO SCG | ||
| 23 | ))) | ||
| 24 | |((( | ||
| 25 | (% class="content-wrapper" %) | ||
| 26 | ((( | ||
| 27 | [[image:attach:SCL_ABO_scl.png]] | ||
| 28 | ))) | ||
| 29 | )))|((( | ||
| 30 | (% class="content-wrapper" %) | ||
| 31 | ((( | ||
| 32 | [[image:attach:SCL_ABO_scg.png]] | ||
| 33 | ))) | ||
| 34 | ))) | ||
| 35 | |||
| 36 | = The SCL Meta-model = | ||
| 37 | |||
| 38 | \\ | ||
| 39 | |||
| 40 | {{panel bgColor="orange" title="Deprecated since 0.12"}} | ||
| 41 | This article is deprecated. The described features are no longer available in current releases. | ||
| 42 | {{/panel}} | ||
| 43 | |||
| 44 | \\ | ||
| 45 | |||
| 46 | The SC language is implemented in the plugin de.cau.cs.kieler.scl and created via xtext. The xtext grammar file is de.cau.cs.kieler.scl.SCL.xtext. | ||
| 47 | |||
| 48 | [[image:attach:SCL_metamodel.png]] | ||
| 49 | |||
| 50 | * Every SCL program is contained in a **Program** | ||
| 51 | * A **Program** and concurrent threads of a parallel statement a **AbstractThreads** | ||
| 52 | * **AbstractThreads** contain a list of **Statements** | ||
| 53 | * A **Statement** can either be a **InstructionStatement** and contains a single instruction or an **EmptyStatement** | ||
| 54 | * **EmptyStatements** do not contain an instruction, but can hold a label or an annotation | ||
| 55 | * An instruction is a **Conditional**, a **Pause**, a **Goto**, an **Assignment**, a **Parallel** or a new **StatementScope** |