mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
completed Multimodal and Tram with new languages
This commit is contained in:
25
examples/tram/README
Normal file
25
examples/tram/README
Normal file
@@ -0,0 +1,25 @@
|
||||
Björn Bringert's tram grammars (user side, without place names)
|
||||
implemented as an example of lib/resource/abstract/Multimodal.
|
||||
|
||||
For documentation of the original system, see
|
||||
|
||||
http://www.cs.chalmers.se/~bringert/gf/tramdemo.html
|
||||
|
||||
To try, do in gf
|
||||
|
||||
i TramEng.gf
|
||||
gr | l -tr | p
|
||||
|
||||
Clicks appear as coordinates on the right of the semicolon.
|
||||
This works in eight languages.
|
||||
|
||||
Notice that the compilation of the grammars uses precompiled
|
||||
resources, located in
|
||||
|
||||
GF/lib/compiled
|
||||
|
||||
To produce them, use 'make' and 'make install' in GF/lib/resource-1.0.
|
||||
|
||||
AR 7/11/2005 -- 23/2/2006
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
incomplete concrete TramI of Tram = open Multimodal, Symbol in {
|
||||
|
||||
flags startcat=Query ; lexer=textlit ;
|
||||
flags startcat=Query ; lexer=literals ;
|
||||
|
||||
lincat
|
||||
Query = Phr ; -- top level, plain string
|
||||
|
||||
5
examples/tram/TramIta.gf
Normal file
5
examples/tram/TramIta.gf
Normal file
@@ -0,0 +1,5 @@
|
||||
--# -path=.:compiled:prelude
|
||||
|
||||
concrete TramIta of Tram = TramI with
|
||||
(Multimodal = MultimodalIta),
|
||||
(Symbol = SymbolIta) ;
|
||||
5
examples/tram/TramNor.gf
Normal file
5
examples/tram/TramNor.gf
Normal file
@@ -0,0 +1,5 @@
|
||||
--# -path=.:compiled:prelude
|
||||
|
||||
concrete TramNor of Tram = TramI with
|
||||
(Multimodal = MultimodalNor),
|
||||
(Symbol = SymbolNor) ;
|
||||
5
examples/tram/TramSpa.gf
Normal file
5
examples/tram/TramSpa.gf
Normal file
@@ -0,0 +1,5 @@
|
||||
--# -path=.:compiled:prelude
|
||||
|
||||
concrete TramSpa of Tram = TramI with
|
||||
(Multimodal = MultimodalSpa),
|
||||
(Symbol = SymbolSpa) ;
|
||||
Reference in New Issue
Block a user