E1, Task 1, DSL

Moderatoren: pmueller, SE - Design and Construction

Ben Kohr
Windoof-User
Windoof-User
Beiträge: 34
Registriert: 14. Apr 2015 17:41

E1, Task 1, DSL

Beitrag von Ben Kohr »

Hi,

if I encounter such a situation:

Code: Alles auswählen

Lin("Q", >>(LinResult("W", "E", "R"), LinResult("T", "Z", "U")))
the next step should be (or am I mistaken?):

Code: Alles auswählen

Lin("Q", LinResult("W"), >>(LinResult("E", "R"), LinResult("T", "Z", "U")))
But what do I do in such a case:

Code: Alles auswählen

Lin("Q", >>(>>(LinResult("W", "E", "R"), LinResult("T", "Z", "U")), Lin("I"))
I can't use a "LinResult("W")" in front of the inner >>-operator, because the outer >>-operator only accepts two arguments. Should I use a Lin-construct, like

Code: Alles auswählen

Lin("Q", >>(Lin("W", >>(LinResult("E", "R"), LinResult("T", "Z", "U")), Lin("I"))
in that case?

Best, Ben

pmueller
Moderator
Moderator
Beiträge: 87
Registriert: 25. Jan 2018 11:14

Re: E1, Task 1, DSL

Beitrag von pmueller »

Hi,

yes you can insert another Lin(...) call in this case.

Best,
Patrick

Antworten

Zurück zu „Software Engineering - Design and Construction“