Best practice to import (into session) RGL modules?

30 views
Skip to first unread message

Alex

unread,
Mar 20, 2018, 6:16:39 PM3/20/18
to Grammatical Framework
Tutorials https://www.grammaticalframework.org/doc/gf-lrec-2010.pdf and https://www.grammaticalframework.org/doc/tutorial/gf-tutorial.html provide examples how to work with custom grammars that contain one or two files. But RGL contains dozens of gfo modules for the abstract syntax alone.

How should I load/import RGL modules into seesion? - should I issue import command simply for each of the modules (disregarding particular order - e.g. inheritance relation) or is there some particular order in which the RGL modules should be loaded? Or maybe I should load just one RGL abstract syntax module and it will bring with it all the other modules?

Tutorials are not giving examples for importing RGL and I am not sure whether it is good to repeat trial-and-error process before asking for the best practice?

Thanks!

Aarne Ranta

unread,
Mar 21, 2018, 3:08:58 AM3/21/18
to gf-...@googlegroups.com
Hello Alex,

The usual practice is to open Syntax and Paradigms. For instance

  concrete ApplicationEng of Application = open SyntaxEng, ParadigmsEng in {...}

Syntax gives access to all shared functions and structural words, whereas Paradigms gives the morphological functions of each language.

If you want to test the RGL in the GF shell, you can do

  import -retain alltenses/TryEng.gfo

which contains both of those modules, plus some more.

See


for the practices. The API documentation


also gives examples, plus an up to date documentation of the RGL.

Regards

  Aarne.


--

---
You received this message because you are subscribed to the Google Groups "Grammatical Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gf-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages