mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-20 16:42:51 -06:00
Support dynamic param values
This commit is contained in:
20
testsuite/lpgf/ParamsCnc.gf
Normal file
20
testsuite/lpgf/ParamsCnc.gf
Normal file
@@ -0,0 +1,20 @@
|
||||
concrete ParamsCnc of Params = {
|
||||
param
|
||||
R = R1 | R2 ;
|
||||
P = PR R Q | PP ;
|
||||
Q = Q1 | Q2 ;
|
||||
lincat
|
||||
S = Str ;
|
||||
F = { r : R } ;
|
||||
lin
|
||||
f1 = { r = R1 } ;
|
||||
f2 = { r = R2 } ;
|
||||
FtoS f = tbl ! PR f.r Q2 ;
|
||||
oper
|
||||
tbl = table {
|
||||
PR R1 Q1 => "PR R1 Q1" ;
|
||||
PR R1 Q2 => "PR R1 Q2" ;
|
||||
PR R2 _ => "PR R2 _" ;
|
||||
PP => "PP"
|
||||
} ;
|
||||
}
|
||||
Reference in New Issue
Block a user