Skip to content

Commit de41cc0

Browse files
committed
key word "param" -> "parm"
1 parent 8e33dc1 commit de41cc0

File tree

5 files changed

+8
-9
lines changed

5 files changed

+8
-9
lines changed

Src/PCompiler/CompilerCore/Parser/PLexer.g4

+1-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ THIS : 'this' ;
5959
TYPE : 'type' ;
6060
VALUES : 'values' ;
6161
VAR : 'var' ;
62-
PARAM : 'param' ;
62+
PARAM : 'parm' ;
6363
WHILE : 'while' ;
6464
WITH : 'with' ;
6565
CHOOSE : 'choose' ;
@@ -70,7 +70,6 @@ CHOOSE : 'choose' ;
7070
MODULE : 'module' ;
7171
IMPLEMENTATION : 'implementation' ;
7272
TEST : 'test' ;
73-
PARAMTEST : 'paramtest' ;
7473
REFINES : 'refines' ;
7574

7675
// module constructors

Tst/TestParamTester/1_ClientServer/PSrc/Client.p

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ event eWithDrawReq : tWithDrawReq;
2121
// event: withdraw response (from bank server to client)
2222
event eWithDrawResp: tWithDrawResp;
2323

24-
param g1 : int;
24+
parm g1 : int;
2525

2626
machine Client
2727
{

Tst/TestParamTester/1_ClientServer/PSrc/Server.p

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if there is enough money in the account then it updates the new balance in the d
1313
and sends a response back to the client.
1414
*************************************************************/
1515

16-
param g2 : int;
16+
parm g2 : int;
1717

1818
machine BankServer
1919
{

Tst/TestParamTester/1_ClientServer/PTst/TestDriver.p

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ machine TestWithMultipleClients
2121
}
2222
}
2323

24-
param nClients: int;
24+
parm nClients: int;
2525

2626
machine TestWithConfig {
2727
start state Init {

Tst/TestParamTester/1_ClientServer/PTst/Testscript.p

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ test tcMultipleClients [main=TestWithMultipleClients]:
1515
assert BankBalanceIsAlwaysCorrect, GuaranteedWithDrawProgress in
1616
(union Client, AbstractBank, { TestWithSingleClient });
1717

18-
test param (nClients in [2, 3, 4], g1 in [1,2], g2 in [4, 5]) aaaa1 [main=TestWithConfig]:
18+
test parm (nClients in [2, 3, 4], g1 in [1,2], g2 in [4, 5]) aaaa1 [main=TestWithConfig]:
1919
assert BankBalanceIsAlwaysCorrect, GuaranteedWithDrawProgress in
2020
(union Client, Bank, { TestWithConfig });
2121

22-
test param (nClients in [2, 3, 4], g1 in [1,2], g2 in [4, 5]) assume (nClients + g1 < g2) aaaa2 [main=TestWithConfig]:
22+
test parm (nClients in [2, 3, 4], g1 in [1,2], g2 in [4, 5]) assume (nClients + g1 < g2) aaaa2 [main=TestWithConfig]:
2323
assert BankBalanceIsAlwaysCorrect, GuaranteedWithDrawProgress in
2424
(union Client, Bank, { TestWithConfig });
2525

26-
param b1: bool;
26+
parm b1: bool;
2727

28-
test param (nClients in [2, 3, 4], g1 in [1,2], g2 in [4, 5], b1 in [true, false]) assume (b1 == (nClients + g1 > g2)) aaaa3 [main=TestWithConfig]:
28+
test parm (nClients in [2, 3, 4], g1 in [1,2], g2 in [4, 5], b1 in [true, false]) assume (b1 == (nClients + g1 > g2)) aaaa3 [main=TestWithConfig]:
2929
assert BankBalanceIsAlwaysCorrect, GuaranteedWithDrawProgress in
3030
(union Client, Bank, { TestWithConfig });
3131

0 commit comments

Comments
 (0)