mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-18 17:29:32 -06:00
35 lines
843 B
Plaintext
35 lines
843 B
Plaintext
|
|
|
|
|
|
|
|
=Browsing the libraries with GF commands=
|
|
|
|
**New**: Browsing by syntax editor
|
|
[directly on the web ../../../demos/resource-api/editor.html].
|
|
|
|
All of the following assume
|
|
```
|
|
cd $GF_LIB_PATH
|
|
```
|
|
To try out inflection paradigms:
|
|
```
|
|
> i -path=alltenses -retain alltenses/ParadigmsGer.gfo
|
|
> cc mkN "Farbe"
|
|
```
|
|
To try out overloaded syntax, test lexicon, and inflection paradigms:
|
|
```
|
|
> i -path=alltenses -retain alltenses/TryGer.gfo
|
|
> cc mkCl (mkNP this_Quant (mkN "Farbe")) (mkA "dunkel")
|
|
```
|
|
% To look for a syntax tree in the overload API by parsing:
|
|
% ```
|
|
% > i -path=alltenses alltenses/OverLangEng.gf
|
|
% > p -cat=S -overload "this grammar is too big"
|
|
% ```
|
|
% To view linearizations in all languages by parsing from English:
|
|
% ```
|
|
% > i alltenses/langs.gfcm
|
|
% > p -cat=S -lang=LangEng "this grammar is too big" | tb
|
|
% ```
|
|
|