Skip to content

Commit

Permalink
fixing the pretty-printer
Browse files Browse the repository at this point in the history
git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@947 ab42f6e0-554d-0410-b580-99e487e6eeb2
  • Loading branch information
grammarware committed Feb 10, 2011
1 parent c69cab5 commit c9db1de
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions shared/xsl/xbgf2xbnf.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,22 @@
</xsl:text>
</xsl:template>

<xsl:template match="xbgf:deyaccify|xbgf:eliminate|xbgf:horizontal|xbgf:inline">
<xsl:template match="xbgf:deyaccify|xbgf:inline">
<xsl:value-of select="local-name()" />
<xsl:text>(</xsl:text>
<xsl:value-of select="text()"/>
<xsl:text>);
</xsl:text>
</xsl:template>

<xsl:template match="xbgf:eliminate|xbgf:vertical|xbgf:horizontal">
<xsl:value-of select="local-name()" />
<xsl:text>(</xsl:text>
<xsl:value-of select="nonterminal"/>
<xsl:text>);
</xsl:text>
</xsl:template>

<xsl:template match="xbgf:unlabel">
<xsl:value-of select="local-name()" />
<xsl:text>([</xsl:text>
Expand All @@ -119,7 +127,7 @@
</xsl:text>
</xsl:template>

<xsl:template match="xbgf:distribute|xbgf:vertical">
<xsl:template match="xbgf:distribute|xbgf:vertical|xbgf:horizontal">
<xsl:value-of select="local-name()" />
<xsl:text>(</xsl:text>
<xsl:call-template name="context">
Expand Down Expand Up @@ -270,4 +278,4 @@
</xsl:text>
</xsl:template>

</xsl:stylesheet>
</xsl:stylesheet>

0 comments on commit c9db1de

Please sign in to comment.