![]() ![]() ![]() |
Introduction |
X-Bar Rules |
Head Movement Rules |
GLR Machine |
L
is defined in two
files. The first one, called xbar.pl
by convention,
defines common rules. The second, called
peripheryL
, contains rules particular to language
L
:
xbar.pl |
General phrase structure rules such as X-bar and adjunction rules. Basic rules for empty categories plus head movement. |
peripheryL.pl |
Phrase structure rules particular to language L. |
At compile time, these two files are automatically concatenated into a single file:
xbarperipheryL.pl |
Phrase structure rules for language L .
|
This is done before any processing occurs. Hence, care must be taken not to multiply define rules.
Phrase structure (PS) rules defined in these two files are not directly used to parse sentences. Instead, they are compiled into a language-specific GLR machine for efficient, bottom-up parsing. More precisely, they undergo a (simplified) two-stage process:
  | |||
xbarperipheryL.pl |
|||
![]() |
|||
|
|||
![]() | |||
ssrules
rule(LHS,RHS,Gs,Inh) facts
|
|||
![]() | |||
|
|||
![]() ![]() |
|||
GLR Transition Table
transition(S1,VN,S2) facts |
    | GLR Action Table
action(S,VT,CF,CF') rules |
|
  | |||
(a) Two-step PS rule compilation process |
In the following sections, we will first document the PS rules available to the user.
![]() ![]() ![]() |