Deploy to GitHub Pages:

This commit is contained in:
Travis CI
2021-04-08 01:41:04 +00:00
parent 1904ef0cbc
commit 309e85b6e3
2 changed files with 11 additions and 2 deletions

View File

@ -157,8 +157,9 @@ Since it has no dependencies this is simple, all the code in <code>src/</code> c
<p><strong>&rsquo;amalgamated&rsquo; build</strong> <br />
If you want an even simpler way, there&rsquo;s an &lsquo;amalgamated&rsquo; build (often called <code>blob</code>, or <code>unity</code> builds.).
This is <em>all of the wren source code in one file</em>.</p>
<p>This file can be generated by running <code>python3 util/generate_amalgamation.py</code>, and the generated output will be in <code>build/wren.c</code>.
Include <code>build/wren.c</code> and <code>src/include/wren.h</code> in your project code and you&rsquo;re good to go.
<p>This file can be generated by running <code>python3 util/generate_amalgamation.py &gt; build/wren.c</code>,
which saves the generated output in <code>build/wren.c</code>.</p>
<p>Include <code>build/wren.c</code> and <code>src/include/wren.h</code> in your project code and you&rsquo;re good to go.
<small>Ideally later we can automate generating this and include it in the repo.</small></p>
<hr />
<p>If you run into bugs, or have ideas or questions, any of

View File

@ -121,6 +121,14 @@ var hPosition = metalBand.indexOf("h")
System.print(metalBand[hPosition]) //> h
</pre>
<p>A string can also be indexed with a <a href="range.html">Range</a>, which will return a
new string as a substring of the original. </p>
<pre class="snippet">
var example = "hello wren"
System.print(example[0...5]) //> hello
System.print(example[-4..-1]) //> wren
</pre>
<p>If you want to work with a string as a sequence numeric code points, call the
<code>codePoints</code> getter. It returns a <a href="sequence.html">Sequence</a> that decodes UTF-8
and iterates over the code points, returning each as a number.</p>