mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 04:13:03 +00:00
(bison:ruleNumber): New key. Improve processing time. Suggested by Joel E. Denny.
This commit is contained in:
@@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
<!--
|
<!--
|
||||||
bison.xsl - common templates for Bison XSLT.
|
bison.xsl - common templates for Bison XSLT.
|
||||||
|
$Id$
|
||||||
|
|
||||||
Copyright (C) 2007 Free Software Foundation, Inc.
|
Copyright (C) 2007 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of Bison, the GNU Compiler Compiler.
|
This file is part of Bison, the GNU Compiler Compiler.
|
||||||
@@ -24,6 +26,10 @@
|
|||||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
xmlns:bison="http://www.gnu.org/software/bison/">
|
xmlns:bison="http://www.gnu.org/software/bison/">
|
||||||
|
|
||||||
|
<xsl:key name="bison:ruleNumber"
|
||||||
|
match="/bison-xml-report/grammar/rules/rule"
|
||||||
|
use="@number"/>
|
||||||
|
|
||||||
<!-- For the specified state, output: #sr-conflicts,#rr-conflicts -->
|
<!-- For the specified state, output: #sr-conflicts,#rr-conflicts -->
|
||||||
<xsl:template match="state" mode="bison:count-conflicts">
|
<xsl:template match="state" mode="bison:count-conflicts">
|
||||||
<xsl:variable name="transitions" select="actions/transitions"/>
|
<xsl:variable name="transitions" select="actions/transitions"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user