Mike Gerwitz

Activist for User Freedom

diff options
authorMike Gerwitz <gerwitzm@lovullo.com>2016-11-17 08:56:40 -0500
committerMike Gerwitz <gerwitzm@lovullo.com>2016-11-17 23:55:23 -0500
commit1d3aaf3339f30e43ee764e8dd898b382dc9e3e76 (patch)
treea9e878d95820fbbf1999dcf5d1c8a7eb73bbb7e4 /src/current/include/preproc/symtable.xsl
parentf396858fb18b915a0f03e6d02c4aebb55b0000bc (diff)
Extracted param symbol generation
The `preproc:param-dim' template must remain for now, as it is used by others. * src/current/include/preproc/symtable.xsl (preproc:symtable)[lv:param]: Extracted template. * src/symtable/symbols.xsl (preproc:symtable)[lv:param]: Added template. * test/symtable/symbols.xsl (lv:param): Scenario added.
Diffstat (limited to 'src/current/include/preproc/symtable.xsl')
1 files changed, 1 insertions, 17 deletions
diff --git a/src/current/include/preproc/symtable.xsl b/src/current/include/preproc/symtable.xsl
index e12e5a4..069c22b 100644
--- a/src/current/include/preproc/symtable.xsl
+++ b/src/current/include/preproc/symtable.xsl
@@ -71,6 +71,7 @@
<xsl:include href="path.xsl" />
<xsl:include href="../../tame/src/symtable.xsl" />
+<xsl:include href="../../tame/src/symtable/symbols.xsl" />
<!-- we will recurse through the entire tree rather than performing a series of
@@ -757,23 +758,6 @@
-<!-- Will be completed during post-processing so that typedefs can be
- properly resolved -->
-<xsl:template match="lv:param" mode="preproc:symtable" priority="5">
- <xsl:variable name="dim">
- <xsl:call-template name="preproc:param-dim" />
- </xsl:variable>
- <!-- we use the primitive data type derived from the typedef to ensure that
- the system can still make use of the type even when the typedef is not
- exported; indeed, typedefs are simply restrictions that need only be
- known for compiling (at least at present). Also note the keep="true" to
- ensure that all param symbols are retained after linking -->
- <preproc:sym name="{@name}" keep="true"
- type="param" dtype="{@type}" dim="{$dim}" desc="{@desc}" tex="{@sym}" />
<xsl:template match="lv:typedef" mode="preproc:symtable" priority="5">
<!-- FIXME: this is a kluge -->
<xsl:variable name="dtype" as="xs:string?"