-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #55 from engineerjoe440/bugfix/newline-separated-o…
…op-logic ENH: Add Support of Chained Method/Function Calls
- Loading branch information
Showing
4 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
(* This program uses some object-oriented function-block with multiline access. *) | ||
PROGRAM oop_test | ||
VAR | ||
uut : SomeFunctionBlock; | ||
END_VAR | ||
|
||
// Use an object that has a different method called on each line | ||
uut.DoSomething(input_1:='foo', input_2:='bar') | ||
.DoSomethingElse(input_1:=5) | ||
.Finish(); | ||
|
||
// Or perhaps something that's a little more tame | ||
uut.DoSomething(input_1:='foo', input_2:='bar') | ||
.DoSomethingElse(input_1:=5).Finish(); | ||
// Or something tamer, still | ||
uut.DoSomething(input_1:='foo', input_2:='bar').DoSomethingElse(input_1:=5).Finish(); | ||
END_PROGRAM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters