Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
better DCG generation; generic intermediate format for semi-parsed gr…
…ammar git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@716 ab42f6e0-554d-0410-b580-99e487e6eeb2
- Loading branch information
1 parent
49f454a
commit 18546c3
Showing
2 changed files
with
134 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<xsd:schema | ||
xmlns:xsd="http://www.w3.org/2001/XMLSchema" | ||
xmlns:rgf="http://planet-sl.org/rgf" | ||
targetNamespace="http://planet-sl.org/rgf"> | ||
|
||
<xsd:annotation> | ||
<xsd:documentation> | ||
Raw Grammar Format | ||
</xsd:documentation> | ||
</xsd:annotation> | ||
|
||
<xsd:element name="grammar"> | ||
<xsd:complexType> | ||
<xsd:sequence> | ||
<xsd:element name="entry" maxOccurs="unbounded"> | ||
<xsd:complexType> | ||
<xsd:sequence> | ||
<xsd:element name="key" type="xsd:string"/> | ||
<xsd:element name="rhs" maxOccurs="unbounded"> | ||
<xsd:complexType> | ||
<xsd:group ref="rgf:symbol" maxOccurs="unbounded"/> | ||
</xsd:complexType> | ||
</xsd:element> | ||
</xsd:sequence> | ||
</xsd:complexType> | ||
</xsd:element> | ||
</xsd:sequence> | ||
</xsd:complexType> | ||
</xsd:element> | ||
|
||
<xsd:group name="symbol"> | ||
<xsd:choice> | ||
<xsd:element name="nonterminal" type="xsd:string"/> | ||
<xsd:element name="terminal" type="xsd:string"/> | ||
|
||
<xsd:element name="meta-repetition" type="xsd:string"/> | ||
<xsd:element name="meta-repetition-start" type="xsd:string"/> | ||
<xsd:element name="meta-repetition-end" type="xsd:string"/> | ||
|
||
<xsd:element name="meta-choice" nillable="true"/> | ||
<xsd:element name="meta-group-start" nillable="true"/> | ||
<xsd:element name="meta-group-end" nillable="true"/> | ||
<xsd:element name="meta-optionality" nillable="true"/> | ||
<xsd:element name="meta-optional-start" nillable="true"/> | ||
<xsd:element name="meta-optional-end" nillable="true"/> | ||
</xsd:choice> | ||
</xsd:group> | ||
|
||
</xsd:schema> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters