Skip to content

Commit b6124f6

Browse files
author
Ray Hu
committed
Fixed CL -project not printing bug.
1 parent 68e8ec4 commit b6124f6

3 files changed

Lines changed: 25 additions & 2 deletions

File tree

README

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,5 +93,6 @@ Alternative command line usage:
9393
To 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

modules/cli/src/main/java/org/scribble/cli/CommandLineArgParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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);

modules/core/src/test/scrib/tmp/Test.scr

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
/*
3151
explicit 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
/*
3961
global protocol Proto1(role A, role B)

0 commit comments

Comments
 (0)