File tree Expand file tree Collapse file tree
cli/src/main/java/org/scribble/cli Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -93,5 +93,6 @@ Alternative command line usage:
9393To run the Scribble tool directly via java (from Nick Ng)
9494
9595 $ mvn dependency:build-classpath -Dmdep.outputFile=classpath
96- $ java -cp $(cat dist/classpath) org.scribble.cli.CommandLine [args] MyModule.scr
96+ $ java -cp $(cat dist/classpath)
97+ org.scribble.cli.CommandLine [args] MyModule.scr
9798
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ public class CommandLineArgParser
5959
6060 private static final Map <String , CommandLine .ArgFlag > NON_UNIQUE_FLAGS = new HashMap <>();
6161 {
62- CommandLineArgParser .UNIQUE_FLAGS .put (CommandLineArgParser .PROJECT_FLAG , CommandLine .ArgFlag .PROJECT );
62+ CommandLineArgParser .NON_UNIQUE_FLAGS .put (CommandLineArgParser .PROJECT_FLAG , CommandLine .ArgFlag .PROJECT );
6363 CommandLineArgParser .NON_UNIQUE_FLAGS .put (CommandLineArgParser .EFSM_FLAG , CommandLine .ArgFlag .EFSM );
6464 CommandLineArgParser .NON_UNIQUE_FLAGS .put (CommandLineArgParser .VALIDATION_EFSM_FLAG , CommandLine .ArgFlag .VALIDATION_EFSM );
6565 CommandLineArgParser .NON_UNIQUE_FLAGS .put (CommandLineArgParser .UNFAIR_EFSM_FLAG , CommandLine .ArgFlag .UNFAIR_EFSM );
Original file line number Diff line number Diff line change @@ -28,12 +28,34 @@ module Test;
2828// Add a unit test for validation to bypass aux
2929
3030
31+ global protocol Proto1(role A, role B, role C)
32+ {
33+ rec X
34+ {
35+ 1() from B to A;
36+ choice at B // Testing projection, A not syntactically in this choice but cannot discard the X -- handled by UnfoldingVisitor(?)
37+ {
38+ 2() from B to C;
39+ continue X;
40+ }
41+ // or // Testing
42+ // {
43+ // 3() from B to C;
44+ // }
45+ }
46+ }
47+ //*/
48+
49+
50+ /*
3151explicit global protocol Proto1(role A, role B, role C)
3252{
3353 1() connect A to B;
3454 1() connect B to C;
3555 1() connect C to A; // Testing accept-correlation check
3656}
57+ //*/
58+
3759
3860/*
3961global protocol Proto1(role A, role B)
You can’t perform that action at this time.
0 commit comments