Grammar Engineering Frequently Asked Questions

What do the punctuation marks mean in the tdl files? (A very basic guide to tdl syntax.)

tdl (Type Description Language), like any computer language, has a particular syntax that must be followed. If you deviate from the accepted syntax, you'll either get an error as the LKB tries to load your grammar, or the LKB will interpret what you wrote differently from how you intended.

A fuller, more formal description of TDL syntax can be found here.

Typical type definitions looks like this:

type-name := supertype1 & supertype2 &
  [ FEATURE1 value1,
    FEATURE2 [ FEATURE3 value2 ]].

foo := bar &
  [ BAZ #coref & quux,
    ZXC #coref ].

another-type := some-type &
  [ ZXC spqr &
        [ WOMBAT foo ]].

Some things to note:

In addition to the basic syntax above, there are some further variations:

Back to the Grammar Engineering FAQ.

GeFaqTdlSyntax (last edited 2020-03-02 01:57:15 by MichaelGoodman)

(The DELPH-IN infrastructure is hosted at the University of Oslo)