forked from GitHub/gf-core
Add Phrasebook to testsuite. Move grammars into subfolders. Add run-bench script.
This commit is contained in:
21
testsuite/lpgf/unittests/ParamsCnc.gf
Normal file
21
testsuite/lpgf/unittests/ParamsCnc.gf
Normal file
@@ -0,0 +1,21 @@
|
||||
concrete ParamsCnc of Params = {
|
||||
param
|
||||
R = R1 | R2 ;
|
||||
P = PR R Q | PP ;
|
||||
Q = Q3 | Q2 | Q1 ;
|
||||
lincat
|
||||
S = Str ;
|
||||
F = { r : R } ;
|
||||
lin
|
||||
f1 = { r = R1 } ;
|
||||
f2 = { r = R2 } ;
|
||||
FtoS f = tbl ! PR f.r Q1 ;
|
||||
oper
|
||||
tbl = table {
|
||||
PR R1 Q2 => "PR R1 Q2" ;
|
||||
PR R1 Q1 => "PR R1 Q1" ;
|
||||
PR R1 Q3 => "PR R1 Q3" ;
|
||||
PR R2 _ => "PR R2 _" ;
|
||||
PP => "PP"
|
||||
} ;
|
||||
}
|
||||
Reference in New Issue
Block a user