Debian Codegraph @

tests/inputs/tnsdl.sdl

raw
1 PROCEDURE do_something;
2
3 RETURNS error_t;
4
5 DCL
6 status error_t := 0, /* this is the result */
7 dummy dummy_t; /* dummy variable,
8 not impacting the flow */
9
10 START;
11
12 /* let's invoke
13 some_function */
14 TASK status := some_function ();
15 DECISION ( status );
16 ( success_ec ):
17 TASK dummy := T;
18 ELSE:
19 TASK printf( @'We failed' );
20 ENDDECISION;
21
22 RETURN status;
23 ENDPROCEDURE do_something;