Changeset 5047
- Timestamp:
- 06/26/09 11:54:21 (14 months ago)
- Location:
- trunk
- Files:
-
- 8 modified
-
compiler/logtalk.pl (modified) (2 diffs)
-
RELEASE_NOTES.txt (modified) (1 diff)
-
xml/lgt2html.sh (modified) (2 diffs)
-
xml/lgt2pdf.sh (modified) (1 diff)
-
xml/lgt2txt.sh (modified) (1 diff)
-
xml/lgt2xml.sh (modified) (1 diff)
-
xml/lgtpdf.xsl (modified) (1 diff)
-
xml/lgttxt.xsl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/compiler/logtalk.pl
r5045 r5047 14791 14791 '$lgt_write_xml_relations'(Stream) :- 14792 14792 '$lgt_pp_rclause_'('$lgt_implements_protocol_'(Entity, Ptc, Scope)), 14793 '$lgt_write_xml_relation'(Stream, Entity, Ptc, implements, Scope),14793 '$lgt_write_xml_relation'(Stream, Entity, Ptc, implements, Scope), 14794 14794 fail. 14795 14795 14796 14796 '$lgt_write_xml_relations'(Stream) :- 14797 14797 '$lgt_pp_rclause_'('$lgt_imports_category_'(Entity, Ctg, Scope)), 14798 '$lgt_write_xml_relation'(Stream, Entity, Ctg, imports, Scope),14798 '$lgt_write_xml_relation'(Stream, Entity, Ctg, imports, Scope), 14799 14799 fail. 14800 14800 14801 14801 '$lgt_write_xml_relations'(Stream) :- 14802 14802 '$lgt_pp_rclause_'('$lgt_extends_object_'(Entity, Parent, Scope)), 14803 '$lgt_write_xml_relation'(Stream, Entity, Parent, extends, Scope),14803 '$lgt_write_xml_relation'(Stream, Entity, Parent, extends, Scope), 14804 14804 fail. 14805 14805 14806 14806 '$lgt_write_xml_relations'(Stream) :- 14807 14807 '$lgt_pp_rclause_'('$lgt_instantiates_class_'(Entity, Class, Scope)), 14808 '$lgt_write_xml_relation'(Stream, Entity, Class, instantiates, Scope),14808 '$lgt_write_xml_relation'(Stream, Entity, Class, instantiates, Scope), 14809 14809 fail. 14810 14810 14811 14811 '$lgt_write_xml_relations'(Stream) :- 14812 14812 '$lgt_pp_rclause_'('$lgt_specializes_class_'(Entity, Superclass, Scope)), 14813 '$lgt_write_xml_relation'(Stream, Entity, Superclass, specializes, Scope),14813 '$lgt_write_xml_relation'(Stream, Entity, Superclass, specializes, Scope), 14814 14814 fail. 14815 14815 14816 14816 '$lgt_write_xml_relations'(Stream) :- 14817 14817 '$lgt_pp_rclause_'('$lgt_extends_protocol_'(Entity, Ptc, Scope)), 14818 '$lgt_write_xml_relation'(Stream, Entity, Ptc, extends, Scope),14818 '$lgt_write_xml_relation'(Stream, Entity, Ptc, extends, Scope), 14819 14819 fail. 14820 14820 14821 14821 '$lgt_write_xml_relations'(Stream) :- 14822 14822 '$lgt_pp_rclause_'('$lgt_extends_category_'(Entity, Ctg, Scope)), 14823 '$lgt_write_xml_relation'(Stream, Entity, Ctg, extends, Scope),14823 '$lgt_write_xml_relation'(Stream, Entity, Ctg, extends, Scope), 14824 14824 fail. 14825 14825 … … 14838 14838 '$lgt_write_xml_relations'(Stream) :- 14839 14839 '$lgt_pp_alias_'(Entity, Pred, Alias), 14840 functor(Pred, PFunctor, PArity), 14841 functor(Alias, AFunctor, AArity), 14842 '$lgt_write_xml_open_tag'(Stream, alias, []), 14843 '$lgt_write_xml_cdata_element'(Stream, name, [], Entity), 14844 '$lgt_write_xml_cdata_element'(Stream, original, [], PFunctor/PArity), 14845 '$lgt_write_xml_cdata_element'(Stream, alternative, [], AFunctor/AArity), 14846 '$lgt_write_xml_close_tag'(Stream, alias), 14840 Entity =.. [_| Args], % take care of parametric entities 14841 '$lgt_vars_to_underscore'(Args), 14842 functor(Pred, PFunctor, PArity), 14843 functor(Alias, AFunctor, AArity), 14844 '$lgt_write_xml_open_tag'(Stream, alias, []), 14845 '$lgt_write_xml_cdata_element'(Stream, name, [], Entity), 14846 '$lgt_write_xml_cdata_element'(Stream, original, [], PFunctor/PArity), 14847 '$lgt_write_xml_cdata_element'(Stream, alternative, [], AFunctor/AArity), 14848 '$lgt_write_xml_close_tag'(Stream, alias), 14847 14849 fail. 14848 14850 -
trunk/RELEASE_NOTES.txt
r5045 r5047 85 85 Improved documentation and examples of using the term and goal expansion 86 86 mechanisms. 87 88 The "lgt2*.sh" documentation shell scripts have been updated to ignore 89 XML files that are not XML documenting files generated by the Logtalk 90 compiler. 87 91 88 92 -
trunk/xml/lgt2html.sh
r5003 r5047 122 122 echo "<ul>" >> "$index_file" 123 123 124 for file in *.xml; do124 for file in `grep -l "<logtalk>" *.xml`; do 125 125 name="`expr "$file" : '\(.*\)\.[^./]*$' \| "$file"`" 126 126 entity=${name%_*} … … 211 211 fi 212 212 213 if [ `( ls*.xml | wc -l) 2> /dev/null` -gt 0 ] ; then213 if [ `(grep -l "<logtalk>" *.xml | wc -l) 2> /dev/null` -gt 0 ] ; then 214 214 echo 215 215 echo "converting XML files..." 216 for file in *.xml; do216 for file in `grep -l "<logtalk>" *.xml`; do 217 217 echo " converting $file" 218 218 name="`expr "$file" : '\(.*\)\.[^./]*$' \| "$file"`" -
trunk/xml/lgt2pdf.sh
r5003 r5047 146 146 fi 147 147 148 if [ `( ls*.xml | wc -l) 2> /dev/null` -gt 0 ] ; then148 if [ `(grep -l "<logtalk>" *.xml | wc -l) 2> /dev/null` -gt 0 ] ; then 149 149 echo 150 150 echo "converting XML files to PDF..." 151 for file in *.xml; do151 for file in `grep -l "<logtalk>" *.xml`; do 152 152 echo " converting $file" 153 153 name="`expr "$file" : '\(.*\)\.[^./]*$' \| "$file"`" -
trunk/xml/lgt2txt.sh
r5003 r5047 125 125 fi 126 126 127 if [ `( ls*.xml | wc -l) 2> /dev/null` -gt 0 ] ; then127 if [ `(grep -l "<logtalk>" *.xml | wc -l) 2> /dev/null` -gt 0 ] ; then 128 128 echo 129 129 echo "converting XML files to text files..." 130 for file in *.xml; do130 for file in `grep -l "<logtalk>" *.xml`; do 131 131 echo " converting $file" 132 132 name="`expr "$file" : '\(.*\)\.[^./]*$' \| "$file"`" -
trunk/xml/lgt2xml.sh
r5003 r5047 110 110 echo "<ul>" >> "$index_file" 111 111 112 for file in *.xml; do112 for file in `grep -l "<logtalk>" *.xml`; do 113 113 name="`expr "$file" : '\(.*\)\.[^./]*$' \| "$file"`" 114 114 entity=${name%_*} -
trunk/xml/lgtpdf.xsl
r5003 r5047 371 371 font-size="9pt" 372 372 margin-left="10mm"> 373 <fo:inline ><xsl:value-of select="name" /><xsl:text> </xsl:text><xsl:value-of select="original" /></fo:inline>373 <fo:inline font-family="monospace"><xsl:value-of select="name" /><xsl:text> </xsl:text><xsl:value-of select="original" /></fo:inline> 374 374 <fo:inline font-family="serif" font-style="italic"> aka </fo:inline> 375 375 <fo:inline font-family="monospace"><xsl:value-of select="alternative" /></fo:inline> -
trunk/xml/lgttxt.xsl
r5003 r5047 103 103 <xsl:if test="imports"> 104 104 <xsl:text>imports:</xsl:text><xsl:value-of select="$nl" /> 105 <xsl:apply-templates select="imports" />105 <xsl:apply-templates select="imports" /> 106 106 </xsl:if> 107 107 <xsl:if test="extends"> … … 110 110 </xsl:if> 111 111 <xsl:if test="instantiates"> 112 <xsl:text>instantiates:</xsl:text><xsl:value-of select="$nl" />112 <xsl:text>instantiates:</xsl:text><xsl:value-of select="$nl" /> 113 113 <xsl:apply-templates select="instantiates" /> 114 114 </xsl:if> 115 115 <xsl:if test="specializes"> 116 <xsl:text>specializes:</xsl:text><xsl:value-of select="$nl" />116 <xsl:text>specializes:</xsl:text><xsl:value-of select="$nl" /> 117 117 <xsl:apply-templates select="specializes" /> 118 118 </xsl:if> 119 119 <xsl:if test="uses"> 120 <xsl:text>uses:</xsl:text><xsl:value-of select="$nl" />120 <xsl:text>uses:</xsl:text><xsl:value-of select="$nl" /> 121 121 <xsl:apply-templates select="uses" /> 122 122 </xsl:if> 123 123 <xsl:if test="calls"> 124 <xsl:text>calls:</xsl:text><xsl:value-of select="$nl" />124 <xsl:text>calls:</xsl:text><xsl:value-of select="$nl" /> 125 125 <xsl:apply-templates select="calls" /> 126 126 </xsl:if> 127 127 <xsl:if test="alias"> 128 <dt class ="key">aliases:</dt>128 <xsl:text>aliases:</xsl:text><xsl:value-of select="$nl" /> 129 129 <xsl:apply-templates select="alias" /> 130 130 </xsl:if>
