Permalink
Browse files

a dummy noop/skip file; tweaked extract/inline tricks

git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@841 ab42f6e0-554d-0410-b580-99e487e6eeb2
  • Loading branch information...
grammarware committed Oct 13, 2010
1 parent e76284a commit 3d483d7ad8317ab6318796b8859a01b1248dc6b4
@@ -1,4 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<xbgf:sequence xmlns:xbgf="http://planet-sl.org/xbgf" xmlns:bgf="http://planet-sl.org/bgf">
<xbgf:dump/>
</xbgf:sequence>
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<xbgf:sequence xmlns:xbgf="http://planet-sl.org/xbgf" xmlns:bgf="http://planet-sl.org/bgf">
<!-- an ugly replacement for a noop/id/skip command that is lacking in xbgf now -->
<xbgf:introduce>
<bgf:production>
<nonterminal>temporary_nonterminal_name_which_is_unique</nonterminal>
<bgf:expression>
<epsilon/>
</bgf:expression>
</bgf:production>
</xbgf:introduce>
<xbgf:eliminate>
<nonterminal>temporary_nonterminal_name_which_is_unique</nonterminal>
</xbgf:eliminate>
</xbgf:sequence>
@@ -21,7 +21,7 @@
<bgf:production>
<nonterminal>
<xsl:value-of select="$name"/>
<xsl:text>-grp-</xsl:text>
<xsl:text>_grp_</xsl:text>
<xsl:value-of select="position()"/>
</nonterminal>
<bgf:expression>
@@ -4,7 +4,7 @@
<xsl:template match="/bgf:grammar">
<xbgf:sequence xmlns:bgf="http://planet-sl.org/bgf" xmlns:xbgf="http://planet-sl.org/xbgf">
<xsl:for-each select="bgf:production">
<xsl:if test="contains(nonterminal,'-grp-')">
<xsl:if test="contains(nonterminal,'_grp_')">
<xbgf:inline>
<xsl:value-of select="nonterminal"/>
</xbgf:inline>

0 comments on commit 3d483d7

Please sign in to comment.