mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-29 22:42:52 -06:00
gf-book web page index and toc
This commit is contained in:
29
gf-book/examples/chapter6/ClassesEng.gf
Normal file
29
gf-book/examples/chapter6/ClassesEng.gf
Normal file
@@ -0,0 +1,29 @@
|
||||
--# -path=.:present
|
||||
|
||||
concrete ClassesEng of Classes = open SyntaxEng, ParadigmsEng in {
|
||||
|
||||
lincat
|
||||
Command = Utt ;
|
||||
Kind = CN ;
|
||||
Class = {} ;
|
||||
Instance = {} ;
|
||||
Action = V2 ;
|
||||
Device = NP ;
|
||||
|
||||
lin
|
||||
Act _ _ _ a d = mkUtt (mkImp a d) ;
|
||||
The k = mkNP the_Det k ;
|
||||
|
||||
Light = mkCN (mkN "light") ;
|
||||
Fan = mkCN (mkN "fan") ;
|
||||
Switchable, Dimmable = <> ;
|
||||
|
||||
SwitchOn = mkV2 (partV (mkV "switch") "on") ;
|
||||
SwitchOff = mkV2 (partV (mkV "switch") "off") ;
|
||||
Dim = mkV2 (mkV "dim") ;
|
||||
|
||||
switchable_Light = <> ;
|
||||
switchable_Fan = <> ;
|
||||
dimmable_Light = <> ;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user