Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 15
- Log:
Attempt to update Typo to a Typo SVN HEAD release from around the
time the prototype installation was set up on the RISC OS Open Limited
web site. Timestamps place this at 04-Jul so a revision from 05-Jul or
earlier was pulled and copied over the 2.6.0 tarball stable code.
- Author:
- adh
- Date:
- Sat Jul 22 23:27:35 +0100 2006
- Size:
- 6458 Bytes
1 | <?xml version="1.0" encoding="iso-8859-1"?> |
2 | <!DOCTYPE html |
3 | PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
4 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
5 | <html> |
6 | <head> |
7 | <title>Module: Syntax</title> |
8 | <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> |
9 | <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" /> |
10 | |
11 | <script language="JavaScript" type="text/javascript"> |
12 | // <![CDATA[ |
13 | |
14 | function toggleSource( id ) |
15 | { |
16 | var elem |
17 | var link |
18 | |
19 | if( document.getElementById ) |
20 | { |
21 | elem = document.getElementById( id ) |
22 | link = document.getElementById( "l_" + id ) |
23 | } |
24 | else if ( document.all ) |
25 | { |
26 | elem = eval( "document.all." + id ) |
27 | link = eval( "document.all.l_" + id ) |
28 | } |
29 | else |
30 | return false; |
31 | |
32 | if( elem.style.display == "block" ) |
33 | { |
34 | elem.style.display = "none" |
35 | link.innerHTML = "show source" |
36 | } |
37 | else |
38 | { |
39 | elem.style.display = "block" |
40 | link.innerHTML = "hide source" |
41 | } |
42 | } |
43 | |
44 | function openCode( url ) |
45 | { |
46 | window.open( url, "SOURCE_CODE", "width=400,height=400,scrollbars=yes" ) |
47 | } |
48 | // ]]> |
49 | </script> |
50 | </head> |
51 | |
52 | <body> |
53 | <table width="100%" border='0' cellpadding='0' cellspacing='0' class='banner'><tr> |
54 | <td class="file-title"><span class="file-title-prefix">Module</span><br />Syntax</td> |
55 | <td align="right"> |
56 | <table cellspacing=0 cellpadding=2> |
57 | <tr valign="top"> |
58 | <td>In:</td> |
59 | <td> |
60 | <a href="../files/lib/syntax_rb.html">lib/syntax.rb</a> |
61 | <a href="../files/lib/syntax/common_rb.html">lib/syntax/common.rb</a> |
62 | <a href="../files/lib/syntax/version_rb.html">lib/syntax/version.rb</a> |
63 | <a href="../files/lib/syntax/convertors/abstract_rb.html">lib/syntax/convertors/abstract.rb</a> |
64 | <a href="../files/lib/syntax/convertors/html_rb.html">lib/syntax/convertors/html.rb</a> |
65 | <a href="../files/lib/syntax/lang/ruby_rb.html">lib/syntax/lang/ruby.rb</a> |
66 | <a href="../files/lib/syntax/lang/xml_rb.html">lib/syntax/lang/xml.rb</a> |
67 | <a href="../files/lib/syntax/lang/yaml_rb.html">lib/syntax/lang/yaml.rb</a> |
68 | </td> |
69 | </tr> |
70 | </table> |
71 | </td> |
72 | </tr> |
73 | </table> |
74 | <!-- banner header --> |
75 | |
76 | <div id="bodyContent"> |
77 | <div id="content"> |
78 | |
79 | |
80 | |
81 | |
82 | <div class="sectiontitle">Methods</div> |
83 | <ul> |
84 | <li><a href="#M000002">all</a></li> |
85 | <li><a href="#M000001">load</a></li> |
86 | </ul> |
87 | |
88 | |
89 | |
90 | <div class="sectiontitle">Classes and Modules</div> |
91 | Module <a href="Syntax/Convertors.html" class="link">Syntax::Convertors</a><br /> |
92 | Module <a href="Syntax/Version.html" class="link">Syntax::Version</a><br /> |
93 | Class <a href="Syntax/Default.html" class="link">Syntax::Default</a><br /> |
94 | Class <a href="Syntax/Ruby.html" class="link">Syntax::Ruby</a><br /> |
95 | Class <a href="Syntax/Token.html" class="link">Syntax::Token</a><br /> |
96 | Class <a href="Syntax/Tokenizer.html" class="link">Syntax::Tokenizer</a><br /> |
97 | Class <a href="Syntax/XML.html" class="link">Syntax::XML</a><br /> |
98 | Class <a href="Syntax/YAML.html" class="link">Syntax::YAML</a><br /> |
99 | |
100 | |
101 | <div class="sectiontitle">Constants</div> |
102 | <table border='0' cellpadding='5'> |
103 | <tr valign='top'> |
104 | <td class="attr-name">SYNTAX</td> |
105 | <td>=</td> |
106 | <td class="attr-value">Hash.new( Default )</td> |
107 | </tr> |
108 | <tr valign='top'> |
109 | <td> </td> |
110 | <td colspan="2" class="attr-desc"> |
111 | A hash for registering syntax implementations. |
112 | |
113 | </td> |
114 | </tr> |
115 | </table> |
116 | |
117 | |
118 | <div class="sectiontitle">Public Instance methods</div> |
119 | <div class="method"> |
120 | <div class="title"> |
121 | <a name="M000002"></a><b>all</b>() |
122 | </div> |
123 | <div class="description"> |
124 | <p> |
125 | Return an array of the names of supported syntaxes. |
126 | </p> |
127 | </div> |
128 | <div class="sourcecode"> |
129 | <p class="source-link">[ <a href="javascript:toggleSource('M000002_source')" id="l_M000002_source">show source</a> ]</p> |
130 | <div id="M000002_source" class="dyn-source"> |
131 | <pre> |
132 | <span class="ruby-comment cmt"># File lib/syntax.rb, line 32</span> |
133 | 32: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">all</span> |
134 | 33: <span class="ruby-identifier">lang_dir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-keyword kw">__FILE__</span>), <span class="ruby-value str">"syntax"</span>, <span class="ruby-value str">"lang"</span>) |
135 | 34: <span class="ruby-constant">Dir</span>[<span class="ruby-node">"#{lang_dir}/*.rb"</span>].<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">path</span><span class="ruby-operator">|</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>(<span class="ruby-identifier">path</span>, <span class="ruby-value str">".rb"</span>) } |
136 | 35: <span class="ruby-keyword kw">end</span> |
137 | </pre> |
138 | </div> |
139 | </div> |
140 | </div> |
141 | <div class="method"> |
142 | <div class="title"> |
143 | <a name="M000001"></a><b>load</b>( syntax ) |
144 | </div> |
145 | <div class="description"> |
146 | <p> |
147 | Load the implementation of the requested syntax. If the syntax cannot be |
148 | found, or if it cannot be loaded for whatever reason, the <a |
149 | href="Syntax/Default.html">Default</a> syntax handler will be returned. |
150 | </p> |
151 | </div> |
152 | <div class="sourcecode"> |
153 | <p class="source-link">[ <a href="javascript:toggleSource('M000001_source')" id="l_M000001_source">show source</a> ]</p> |
154 | <div id="M000001_source" class="dyn-source"> |
155 | <pre> |
156 | <span class="ruby-comment cmt"># File lib/syntax.rb, line 22</span> |
157 | 22: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">load</span>( <span class="ruby-identifier">syntax</span> ) |
158 | 23: <span class="ruby-keyword kw">begin</span> |
159 | 24: <span class="ruby-identifier">require</span> <span class="ruby-node">"syntax/lang/#{syntax}"</span> |
160 | 25: <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">LoadError</span> |
161 | 26: <span class="ruby-keyword kw">end</span> |
162 | 27: <span class="ruby-constant">SYNTAX</span>[ <span class="ruby-identifier">syntax</span> ].<span class="ruby-identifier">new</span> |
163 | 28: <span class="ruby-keyword kw">end</span> |
164 | </pre> |
165 | </div> |
166 | </div> |
167 | </div> |
168 | </div> |
169 | |
170 | </div> |
171 | |
172 | </body> |
173 | </html> |