Minimal GF-RGL usage example
I managed to run GF-RGL (see the previous post) as a part of a third-party project gf-matrix. Then I modified gf-matrix grammar files to create a minimal working version. Here is the result:
$ cat Wrapper.gf
abstract Wrapper = Lang
, Extend ** {
} ;
$ cat WrapperEng.gf
concrete WrapperEng of Wrapper =
GrammarEng
, LexiconEng
, ConstructionEng
, DocumentationEng --# notpresent
, MarkupEng - [stringMark]
, ExtendEng
Usage:
export GF_LIB_PATH=/home/my-user-name/opt/gf-rgl/opt
$ echo 'parse "it goes"' | gf Wrapper.gf WrapperEng.gf
...
Languages: WrapperEng
Wrapper> PredVPS (DetNP (DetQuant DefArt NumSg)) (MkVPS (TTAnt TPres
ASimul) PPos (UseV go_V))
PredVPS (UsePron it_Pron) (MkVPS (TTAnt TPres ASimul) PPos (UseV go_V))
UseCl (TTAnt TPres ASimul) PPos (ImpersCl (UseV go_V))
UseCl (TTAnt TPres ASimul) PPos (PredVP (DetNP (DetQuant DefArt NumSg))
(UseV go_V))
UseCl (TTAnt TPres ASimul) PPos (PredVP (UsePron it_Pron) (UseV go_V))
Categories:
languages