mirror of
https://github.com/mcuadros/ascode
synced 2024-11-26 06:01:08 +01:00
deploy: 1643ed115e6a4a59b302f3a3df0cefd3ab866fa3
This commit is contained in:
parent
8ceab7d2b0
commit
151fbc453a
2
404.html
2
404.html
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -106,4 +106,4 @@ something like this:</p><div class=highlight><pre class=chroma><code class=langu
|
||||
<span class=n> ami</span> <span class=o>=</span> <span class=s2>"${data.aws_ami.ubuntu.id}"</span>
|
||||
<span class=n> instance_type</span> <span class=o>=</span> <span class=s2>"t2.micro"</span>
|
||||
}
|
||||
</code></pre></div></div></div></div></div></div></div><div class=sub-footer><div class=container><div class=row><div class=col-12><div class=sub-footer-inner><ul><li><a href=https://github.com/mcuadros/ascod>Documentation version v1.0.0</a></li><li>Template by <a href=https://www.zerostatic.io>Robert Austin</a></li></ul></div></div></div></div><script type=text/javascript src=/js/scripts.min.be6fe1294698d6acd837c5182149cd1a24daae9fa1903ce810c264539d254d62.js></script></body></html>
|
||||
</code></pre></div></div></div></div></div></div></div><div class=sub-footer><div class=container><div class=row><div class=col-12><div class=sub-footer-inner><ul><li><a href=https://github.com/mcuadros/ascod>Documentation version v1.1.0</a></li><li>Template by <a href=https://www.zerostatic.io>Robert Austin</a></li></ul></div></div></div></div><script type=text/javascript src=/js/scripts.min.be6fe1294698d6acd837c5182149cd1a24daae9fa1903ce810c264539d254d62.js></script></body></html>
|
@ -3,4 +3,4 @@
|
||||
we can simplify and improve the readability of our infrastructure declaration.</p></p></div><div class="summary mb-2"><h2 class=title-summary><a href=https://ascode.run/docs/example/runtime.star/>Runtime Modules</a></h2><p><p>AsCode comes with a variety of modules available like <code>http</code>, <code>math</code>,
|
||||
<code>encoding/json</code>, etc. All this <a href=/docs/reference/>modules</a> are available
|
||||
runtime through the <a href=/docs/starlark/statements/#load-statements><code>load</code></a>
|
||||
statement. This example shows the usage of this modules and some others.</p></p></div></div></div></div></div><div class=sub-footer><div class=container><div class=row><div class=col-12><div class=sub-footer-inner><ul><li><a href=https://github.com/mcuadros/ascod>Documentation version v1.0.0</a></li><li>Template by <a href=https://www.zerostatic.io>Robert Austin</a></li></ul></div></div></div></div><script type=text/javascript src=/js/scripts.min.be6fe1294698d6acd837c5182149cd1a24daae9fa1903ce810c264539d254d62.js></script></body></html>
|
||||
statement. This example shows the usage of this modules and some others.</p></p></div></div></div></div></div><div class=sub-footer><div class=container><div class=row><div class=col-12><div class=sub-footer-inner><ul><li><a href=https://github.com/mcuadros/ascod>Documentation version v1.1.0</a></li><li>Template by <a href=https://www.zerostatic.io>Robert Austin</a></li></ul></div></div></div></div><script type=text/javascript src=/js/scripts.min.be6fe1294698d6acd837c5182149cd1a24daae9fa1903ce810c264539d254d62.js></script></body></html>
|
@ -25,4 +25,4 @@ the version of our containers in every <code>terraform apply</code></p><div clas
|
||||
<span class=n> provider</span> <span class=o>=</span> <span class=k>docker</span><span class=p>.</span><span class=k>id_01E4KHW2RSW0FQM93KN5W70Y42</span>
|
||||
<span class=n> image</span> <span class=o>=</span> <span class=s2>"docker.io/library/golang:1.13.9"</span>
|
||||
}
|
||||
</code></pre></div></div></div></div></div></div></div><div class=sub-footer><div class=container><div class=row><div class=col-12><div class=sub-footer-inner><ul><li><a href=https://github.com/mcuadros/ascod>Documentation version v1.0.0</a></li><li>Template by <a href=https://www.zerostatic.io>Robert Austin</a></li></ul></div></div></div></div><script type=text/javascript src=/js/scripts.min.be6fe1294698d6acd837c5182149cd1a24daae9fa1903ce810c264539d254d62.js></script></body></html>
|
||||
</code></pre></div></div></div></div></div></div></div><div class=sub-footer><div class=container><div class=row><div class=col-12><div class=sub-footer-inner><ul><li><a href=https://github.com/mcuadros/ascod>Documentation version v1.1.0</a></li><li>Template by <a href=https://www.zerostatic.io>Robert Austin</a></li></ul></div></div></div></div><script type=text/javascript src=/js/scripts.min.be6fe1294698d6acd837c5182149cd1a24daae9fa1903ce810c264539d254d62.js></script></body></html>
|
@ -88,4 +88,4 @@ AsCode Commit: 6a682e4
|
||||
AsCode Build Date: 2020-03-29T12:43:52+02:00
|
||||
Terraform Version: v0.12.23
|
||||
Starlark Version: v0.0.0-20200306205701-8dd3e2ee1dd5
|
||||
</code></pre></div></div></div></div></div></div></div><div class=sub-footer><div class=container><div class=row><div class=col-12><div class=sub-footer-inner><ul><li><a href=https://github.com/mcuadros/ascod>Documentation version v1.0.0</a></li><li>Template by <a href=https://www.zerostatic.io>Robert Austin</a></li></ul></div></div></div></div><script type=text/javascript src=/js/scripts.min.be6fe1294698d6acd837c5182149cd1a24daae9fa1903ce810c264539d254d62.js></script></body></html>
|
||||
</code></pre></div></div></div></div></div></div></div><div class=sub-footer><div class=container><div class=row><div class=col-12><div class=sub-footer-inner><ul><li><a href=https://github.com/mcuadros/ascod>Documentation version v1.1.0</a></li><li>Template by <a href=https://www.zerostatic.io>Robert Austin</a></li></ul></div></div></div></div><script type=text/javascript src=/js/scripts.min.be6fe1294698d6acd837c5182149cd1a24daae9fa1903ce810c264539d254d62.js></script></body></html>
|
@ -51,4 +51,4 @@
|
||||
</span><span class=w> </span><span class=k>tf_actions_version</span><span class=p>:</span><span class=w> </span>${{<span class=w> </span>env.TF_VERSION<span class=w> </span>}}<span class=w>
|
||||
</span><span class=w> </span><span class=k>tf_actions_subcommand</span><span class=p>:</span><span class=w> </span><span class=s1>'apply'</span><span class=w>
|
||||
</span><span class=w> </span><span class=k>tf_actions_working_dir</span><span class=p>:</span><span class=w> </span>${{<span class=w> </span>env.TF_WORKING_DIR<span class=w> </span>}}<span class=w>
|
||||
</span></code></pre></div></div></div></div></div></div></div><div class=sub-footer><div class=container><div class=row><div class=col-12><div class=sub-footer-inner><ul><li><a href=https://github.com/mcuadros/ascod>Documentation version v1.0.0</a></li><li>Template by <a href=https://www.zerostatic.io>Robert Austin</a></li></ul></div></div></div></div><script type=text/javascript src=/js/scripts.min.be6fe1294698d6acd837c5182149cd1a24daae9fa1903ce810c264539d254d62.js></script></body></html>
|
||||
</span></code></pre></div></div></div></div></div></div></div><div class=sub-footer><div class=container><div class=row><div class=col-12><div class=sub-footer-inner><ul><li><a href=https://github.com/mcuadros/ascod>Documentation version v1.1.0</a></li><li>Template by <a href=https://www.zerostatic.io>Robert Austin</a></li></ul></div></div></div></div><script type=text/javascript src=/js/scripts.min.be6fe1294698d6acd837c5182149cd1a24daae9fa1903ce810c264539d254d62.js></script></body></html>
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -32,4 +32,4 @@ is equivalent to targpath itself. On success, the returned path will
|
||||
always be relative to basepath, even if basepath and targpath share
|
||||
no elements. An error is returned if targpath can’t be made relative
|
||||
to basepath or if knowing the current working directory would be
|
||||
necessary to compute it. Rel calls Clean on the result.</p><h6 id=arguments-8>Arguments</h6><table><thead><tr><th>name</th><th>type</th><th>description</th></tr></thead><tbody><tr><td><code>basepath</code></td><td><code>string</code></td><td>relative or absolute path</td></tr><tr><td><code>targpath</code></td><td><code>string</code></td><td>relative or absolute path</td></tr></tbody></table></div></div></div></div></div></div><div class=sub-footer><div class=container><div class=row><div class=col-12><div class=sub-footer-inner><ul><li><a href=https://github.com/mcuadros/ascod>Documentation version v1.0.0</a></li><li>Template by <a href=https://www.zerostatic.io>Robert Austin</a></li></ul></div></div></div></div><script type=text/javascript src=/js/scripts.min.be6fe1294698d6acd837c5182149cd1a24daae9fa1903ce810c264539d254d62.js></script></body></html>
|
||||
necessary to compute it. Rel calls Clean on the result.</p><h6 id=arguments-8>Arguments</h6><table><thead><tr><th>name</th><th>type</th><th>description</th></tr></thead><tbody><tr><td><code>basepath</code></td><td><code>string</code></td><td>relative or absolute path</td></tr><tr><td><code>targpath</code></td><td><code>string</code></td><td>relative or absolute path</td></tr></tbody></table></div></div></div></div></div></div><div class=sub-footer><div class=container><div class=row><div class=col-12><div class=sub-footer-inner><ul><li><a href=https://github.com/mcuadros/ascod>Documentation version v1.1.0</a></li><li>Template by <a href=https://www.zerostatic.io>Robert Austin</a></li></ul></div></div></div></div><script type=text/javascript src=/js/scripts.min.be6fe1294698d6acd837c5182149cd1a24daae9fa1903ce810c264539d254d62.js></script></body></html>
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -22,4 +22,4 @@ subset of python’s math module for starlark: <a href=https://docs.python.o
|
||||
</code></pre></div><p>Return the hyperbolic sine of x.</p><h3 id=def-bsqrtb>def <b>sqrt</b></h3><div class=highlight><pre class=chroma><code class=language-go data-lang=go><span class=nf>sqrt</span><span class=p>(</span><span class=nx>x</span><span class=p>)</span>
|
||||
</code></pre></div><p>Return the square root of x.</p><h3 id=def-btanb>def <b>tan</b></h3><div class=highlight><pre class=chroma><code class=language-go data-lang=go><span class=nf>tan</span><span class=p>(</span><span class=nx>x</span><span class=p>)</span>
|
||||
</code></pre></div><p>Return the tangent of x radians.</p><h3 id=def-btanhb>def <b>tanh</b></h3><div class=highlight><pre class=chroma><code class=language-go data-lang=go><span class=nf>tanh</span><span class=p>(</span><span class=nx>x</span><span class=p>)</span>
|
||||
</code></pre></div><p>Return the hyperbolic tangent of x.</p></div></div></div></div></div></div><div class=sub-footer><div class=container><div class=row><div class=col-12><div class=sub-footer-inner><ul><li><a href=https://github.com/mcuadros/ascod>Documentation version v1.0.0</a></li><li>Template by <a href=https://www.zerostatic.io>Robert Austin</a></li></ul></div></div></div></div><script type=text/javascript src=/js/scripts.min.be6fe1294698d6acd837c5182149cd1a24daae9fa1903ce810c264539d254d62.js></script></body></html>
|
||||
</code></pre></div><p>Return the hyperbolic tangent of x.</p></div></div></div></div></div></div><div class=sub-footer><div class=container><div class=row><div class=col-12><div class=sub-footer-inner><ul><li><a href=https://github.com/mcuadros/ascod>Documentation version v1.1.0</a></li><li>Template by <a href=https://www.zerostatic.io>Robert Austin</a></li></ul></div></div></div></div><script type=text/javascript src=/js/scripts.min.be6fe1294698d6acd837c5182149cd1a24daae9fa1903ce810c264539d254d62.js></script></body></html>
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -11,4 +11,4 @@
|
||||
</code></pre></div><h4 id=def-itimeibminuteb>def <i>time</i>.<b>minute</b></h4><div class=highlight><pre class=chroma><code class=language-go data-lang=go><span class=nx>time</span><span class=p>.</span><span class=nf>minute</span><span class=p>()</span> <span class=kt>int</span>
|
||||
</code></pre></div><h4 id=def-itimeibsecondb>def <i>time</i>.<b>second</b></h4><div class=highlight><pre class=chroma><code class=language-go data-lang=go><span class=nx>time</span><span class=p>.</span><span class=nf>second</span><span class=p>()</span> <span class=kt>int</span>
|
||||
</code></pre></div><h4 id=def-itimeibnanosecondb>def <i>time</i>.<b>nanosecond</b></h4><div class=highlight><pre class=chroma><code class=language-go data-lang=go><span class=nx>time</span><span class=p>.</span><span class=nf>nanosecond</span><span class=p>()</span> <span class=kt>int</span>
|
||||
</code></pre></div></div></div></div></div></div></div><div class=sub-footer><div class=container><div class=row><div class=col-12><div class=sub-footer-inner><ul><li><a href=https://github.com/mcuadros/ascod>Documentation version v1.0.0</a></li><li>Template by <a href=https://www.zerostatic.io>Robert Austin</a></li></ul></div></div></div></div><script type=text/javascript src=/js/scripts.min.be6fe1294698d6acd837c5182149cd1a24daae9fa1903ce810c264539d254d62.js></script></body></html>
|
||||
</code></pre></div></div></div></div></div></div></div><div class=sub-footer><div class=container><div class=row><div class=col-12><div class=sub-footer-inner><ul><li><a href=https://github.com/mcuadros/ascod>Documentation version v1.1.0</a></li><li>Template by <a href=https://www.zerostatic.io>Robert Austin</a></li></ul></div></div></div></div><script type=text/javascript src=/js/scripts.min.be6fe1294698d6acd837c5182149cd1a24daae9fa1903ce810c264539d254d62.js></script></body></html>
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -147,4 +147,4 @@ of the sequences, and so on. The result list is only as long as the
|
||||
shortest of the input sequences.</p><div class=highlight><pre class=chroma><code class=language-python data-lang=python><span class=nb>zip</span><span class=p>()</span> <span class=c1># []</span>
|
||||
<span class=nb>zip</span><span class=p>(</span><span class=nb>range</span><span class=p>(</span><span class=mi>5</span><span class=p>))</span> <span class=c1># [(0,), (1,), (2,), (3,), (4,)]</span>
|
||||
<span class=nb>zip</span><span class=p>(</span><span class=nb>range</span><span class=p>(</span><span class=mi>5</span><span class=p>),</span> <span class=s2>"abc"</span><span class=p>)</span> <span class=c1># [(0, "a"), (1, "b"), (2, "c")]</span>
|
||||
</code></pre></div></div></div></div></div></div></div><div class=sub-footer><div class=container><div class=row><div class=col-12><div class=sub-footer-inner><ul><li><a href=https://github.com/mcuadros/ascod>Documentation version v1.0.0</a></li><li>Template by <a href=https://www.zerostatic.io>Robert Austin</a></li></ul></div></div></div></div><script type=text/javascript src=/js/scripts.min.be6fe1294698d6acd837c5182149cd1a24daae9fa1903ce810c264539d254d62.js></script></body></html>
|
||||
</code></pre></div></div></div></div></div></div></div><div class=sub-footer><div class=container><div class=row><div class=col-12><div class=sub-footer-inner><ul><li><a href=https://github.com/mcuadros/ascod>Documentation version v1.1.0</a></li><li>Template by <a href=https://www.zerostatic.io>Robert Austin</a></li></ul></div></div></div></div><script type=text/javascript src=/js/scripts.min.be6fe1294698d6acd837c5182149cd1a24daae9fa1903ce810c264539d254d62.js></script></body></html>
|
@ -284,4 +284,4 @@ and trailing Unicode code points contained in <code>cutset</code>.</p><div class
|
||||
</code></pre></div><h2 id=stringtitle>string·title</h2><p><code>S.title()</code> returns a copy of the string S with letters converted to title case.</p><p>Letters are converted to upper case at the start of words, lower case elsewhere.</p><div class=highlight><pre class=chroma><code class=language-python data-lang=python><span class=s2>"hElLo, WoRlD!"</span><span class=o>.</span><span class=n>title</span><span class=p>()</span> <span class=c1># "Hello, World!"</span>
|
||||
<span class=s2>"dženan"</span><span class=o>.</span><span class=n>title</span><span class=p>()</span> <span class=c1># "Dženan" ("Dž" is a single Unicode letter)</span>
|
||||
</code></pre></div><h2 id=stringupper>string·upper</h2><p><code>S.upper()</code> returns a copy of the string S with letters converted to uppercase.</p><div class=highlight><pre class=chroma><code class=language-python data-lang=python><span class=s2>"Hello, World!"</span><span class=o>.</span><span class=n>upper</span><span class=p>()</span> <span class=c1># "HELLO, WORLD!"</span>
|
||||
</code></pre></div></div></div></div></div></div></div><div class=sub-footer><div class=container><div class=row><div class=col-12><div class=sub-footer-inner><ul><li><a href=https://github.com/mcuadros/ascod>Documentation version v1.0.0</a></li><li>Template by <a href=https://www.zerostatic.io>Robert Austin</a></li></ul></div></div></div></div><script type=text/javascript src=/js/scripts.min.be6fe1294698d6acd837c5182149cd1a24daae9fa1903ce810c264539d254d62.js></script></body></html>
|
||||
</code></pre></div></div></div></div></div></div></div><div class=sub-footer><div class=container><div class=row><div class=col-12><div class=sub-footer-inner><ul><li><a href=https://github.com/mcuadros/ascod>Documentation version v1.1.0</a></li><li>Template by <a href=https://www.zerostatic.io>Robert Austin</a></li></ul></div></div></div></div><script type=text/javascript src=/js/scripts.min.be6fe1294698d6acd837c5182149cd1a24daae9fa1903ce810c264539d254d62.js></script></body></html>
|
@ -357,4 +357,4 @@ in the environment of a specific module.</p><p>Except where noted, built-in func
|
||||
The parameter names serve merely as documentation.</p><p>Most built-in functions that have a Boolean parameter require its
|
||||
argument to be <code>True</code> or <code>False</code>. Unlike <code>if</code> statements, other values
|
||||
are not implicitly converted to their truth value and instead cause a
|
||||
dynamic error.</p></div></div></div></div></div></div><div class=sub-footer><div class=container><div class=row><div class=col-12><div class=sub-footer-inner><ul><li><a href=https://github.com/mcuadros/ascod>Documentation version v1.0.0</a></li><li>Template by <a href=https://www.zerostatic.io>Robert Austin</a></li></ul></div></div></div></div><script type=text/javascript src=/js/scripts.min.be6fe1294698d6acd837c5182149cd1a24daae9fa1903ce810c264539d254d62.js></script></body></html>
|
||||
dynamic error.</p></div></div></div></div></div></div><div class=sub-footer><div class=container><div class=row><div class=col-12><div class=sub-footer-inner><ul><li><a href=https://github.com/mcuadros/ascod>Documentation version v1.1.0</a></li><li>Template by <a href=https://www.zerostatic.io>Robert Austin</a></li></ul></div></div></div></div><script type=text/javascript src=/js/scripts.min.be6fe1294698d6acd837c5182149cd1a24daae9fa1903ce810c264539d254d62.js></script></body></html>
|
File diff suppressed because one or more lines are too long
@ -474,4 +474,4 @@ function created by the lambda expression is named <code>lambda</code>.</p><div
|
||||
The Go implementation of Starlark requires the <code>-lambda</code> flag
|
||||
to enable support for lambda expressions.
|
||||
The Java implementation does not support them.
|
||||
See Google Issue b/36358844.</p></div></div></div></div></div></div><div class=sub-footer><div class=container><div class=row><div class=col-12><div class=sub-footer-inner><ul><li><a href=https://github.com/mcuadros/ascod>Documentation version v1.0.0</a></li><li>Template by <a href=https://www.zerostatic.io>Robert Austin</a></li></ul></div></div></div></div><script type=text/javascript src=/js/scripts.min.be6fe1294698d6acd837c5182149cd1a24daae9fa1903ce810c264539d254d62.js></script></body></html>
|
||||
See Google Issue b/36358844.</p></div></div></div></div></div></div><div class=sub-footer><div class=container><div class=row><div class=col-12><div class=sub-footer-inner><ul><li><a href=https://github.com/mcuadros/ascod>Documentation version v1.1.0</a></li><li>Template by <a href=https://www.zerostatic.io>Robert Austin</a></li></ul></div></div></div></div><script type=text/javascript src=/js/scripts.min.be6fe1294698d6acd837c5182149cd1a24daae9fa1903ce810c264539d254d62.js></script></body></html>
|
@ -35,4 +35,4 @@ concurrency, and other such features of Python.</p><p>Starlark execution is <em>
|
||||
in the core language produce the same execution each time the program
|
||||
is run; there are no sources of random numbers, clocks, or unspecified
|
||||
iterators. This makes Starlark suitable for use in applications where
|
||||
reproducibility is paramount, such as build tools.</p></div></div></div></div></div><div class=sub-footer><div class=container><div class=row><div class=col-12><div class=sub-footer-inner><ul><li><a href=https://github.com/mcuadros/ascod>Documentation version v1.0.0</a></li><li>Template by <a href=https://www.zerostatic.io>Robert Austin</a></li></ul></div></div></div></div><script type=text/javascript src=/js/scripts.min.be6fe1294698d6acd837c5182149cd1a24daae9fa1903ce810c264539d254d62.js></script></body></html>
|
||||
reproducibility is paramount, such as build tools.</p></div></div></div></div></div><div class=sub-footer><div class=container><div class=row><div class=col-12><div class=sub-footer-inner><ul><li><a href=https://github.com/mcuadros/ascod>Documentation version v1.1.0</a></li><li>Template by <a href=https://www.zerostatic.io>Robert Austin</a></li></ul></div></div></div></div><script type=text/javascript src=/js/scripts.min.be6fe1294698d6acd837c5182149cd1a24daae9fa1903ce810c264539d254d62.js></script></body></html>
|
@ -148,4 +148,4 @@ escaping:</p><div class=highlight><pre class=chroma><code class=language-python
|
||||
<span class=sa>r</span><span class=s2>"a</span><span class=se>\
|
||||
</span><span class=se></span><span class=s2>b"</span> <span class=c1># "a\\\nb"</span>
|
||||
</code></pre></div><p>It is an error for a backslash to appear within a string literal other
|
||||
than as part of one of the escapes described above.</p><p>TODO: define indent, outdent, semicolon, newline, eof</p></div></div></div></div></div></div><div class=sub-footer><div class=container><div class=row><div class=col-12><div class=sub-footer-inner><ul><li><a href=https://github.com/mcuadros/ascod>Documentation version v1.0.0</a></li><li>Template by <a href=https://www.zerostatic.io>Robert Austin</a></li></ul></div></div></div></div><script type=text/javascript src=/js/scripts.min.be6fe1294698d6acd837c5182149cd1a24daae9fa1903ce810c264539d254d62.js></script></body></html>
|
||||
than as part of one of the escapes described above.</p><p>TODO: define indent, outdent, semicolon, newline, eof</p></div></div></div></div></div></div><div class=sub-footer><div class=container><div class=row><div class=col-12><div class=sub-footer-inner><ul><li><a href=https://github.com/mcuadros/ascod>Documentation version v1.1.0</a></li><li>Template by <a href=https://www.zerostatic.io>Robert Austin</a></li></ul></div></div></div></div><script type=text/javascript src=/js/scripts.min.be6fe1294698d6acd837c5182149cd1a24daae9fa1903ce810c264539d254d62.js></script></body></html>
|
@ -26,4 +26,4 @@ stack of active function calls at the time of the error.
|
||||
If an error occurs during initialization of a Starlark module, any
|
||||
active <code>load</code> statements waiting for initialization of the module also
|
||||
fail.</p><p>Starlark provides no mechanism by which errors can be handled within
|
||||
the language.</p></div></div></div></div></div></div><div class=sub-footer><div class=container><div class=row><div class=col-12><div class=sub-footer-inner><ul><li><a href=https://github.com/mcuadros/ascod>Documentation version v1.0.0</a></li><li>Template by <a href=https://www.zerostatic.io>Robert Austin</a></li></ul></div></div></div></div><script type=text/javascript src=/js/scripts.min.be6fe1294698d6acd837c5182149cd1a24daae9fa1903ce810c264539d254d62.js></script></body></html>
|
||||
the language.</p></div></div></div></div></div></div><div class=sub-footer><div class=container><div class=row><div class=col-12><div class=sub-footer-inner><ul><li><a href=https://github.com/mcuadros/ascod>Documentation version v1.1.0</a></li><li>Template by <a href=https://www.zerostatic.io>Robert Austin</a></li></ul></div></div></div></div><script type=text/javascript src=/js/scripts.min.be6fe1294698d6acd837c5182149cd1a24daae9fa1903ce810c264539d254d62.js></script></body></html>
|
@ -116,4 +116,4 @@ declarations, but as the first version of <code>squarer</code> showed, this
|
||||
omission can be worked around by using a list of a single element.)</p><p>A name appearing after a dot, such as <code>split</code> in
|
||||
<code>get_filename().split('/')</code>, is not resolved statically.
|
||||
The <a href=/docs/starlark/expressions/#dot-expressions>dot expression</a> <code>.split</code> is a dynamic operation
|
||||
on the value returned by <code>get_filename()</code>.</p></div></div></div></div></div></div><div class=sub-footer><div class=container><div class=row><div class=col-12><div class=sub-footer-inner><ul><li><a href=https://github.com/mcuadros/ascod>Documentation version v1.0.0</a></li><li>Template by <a href=https://www.zerostatic.io>Robert Austin</a></li></ul></div></div></div></div><script type=text/javascript src=/js/scripts.min.be6fe1294698d6acd837c5182149cd1a24daae9fa1903ce810c264539d254d62.js></script></body></html>
|
||||
on the value returned by <code>get_filename()</code>.</p></div></div></div></div></div></div><div class=sub-footer><div class=container><div class=row><div class=col-12><div class=sub-footer-inner><ul><li><a href=https://github.com/mcuadros/ascod>Documentation version v1.1.0</a></li><li>Template by <a href=https://www.zerostatic.io>Robert Austin</a></li></ul></div></div></div></div><script type=text/javascript src=/js/scripts.min.be6fe1294698d6acd837c5182149cd1a24daae9fa1903ce810c264539d254d62.js></script></body></html>
|
@ -210,4 +210,4 @@ module. In effect, names starting with <code>_</code> are not exported.
|
||||
The name (<code>y</code>) specifies the local name;
|
||||
if no name is given, the local name matches the quoted name.</p><div class=highlight><pre class=chroma><code class=language-python data-lang=python><span class=n>load</span><span class=p>(</span><span class=s2>"module.star"</span><span class=p>,</span> <span class=s2>"x"</span><span class=p>,</span> <span class=s2>"y"</span><span class=p>,</span> <span class=s2>"z"</span><span class=p>)</span> <span class=c1># assigns x, y, and z</span>
|
||||
<span class=n>load</span><span class=p>(</span><span class=s2>"module.star"</span><span class=p>,</span> <span class=s2>"x"</span><span class=p>,</span> <span class=n>y2</span><span class=o>=</span><span class=s2>"y"</span><span class=p>,</span> <span class=s2>"z"</span><span class=p>)</span> <span class=c1># assigns x, y2, and z</span>
|
||||
</code></pre></div><p>A load statement within a function is a static error.</p></div></div></div></div></div></div><div class=sub-footer><div class=container><div class=row><div class=col-12><div class=sub-footer-inner><ul><li><a href=https://github.com/mcuadros/ascod>Documentation version v1.0.0</a></li><li>Template by <a href=https://www.zerostatic.io>Robert Austin</a></li></ul></div></div></div></div><script type=text/javascript src=/js/scripts.min.be6fe1294698d6acd837c5182149cd1a24daae9fa1903ce810c264539d254d62.js></script></body></html>
|
||||
</code></pre></div><p>A load statement within a function is a static error.</p></div></div></div></div></div></div><div class=sub-footer><div class=container><div class=row><div class=col-12><div class=sub-footer-inner><ul><li><a href=https://github.com/mcuadros/ascod>Documentation version v1.1.0</a></li><li>Template by <a href=https://www.zerostatic.io>Robert Austin</a></li></ul></div></div></div></div><script type=text/javascript src=/js/scripts.min.be6fe1294698d6acd837c5182149cd1a24daae9fa1903ce810c264539d254d62.js></script></body></html>
|
@ -120,4 +120,4 @@ the nearest value in the range <code>[0:n]</code>.</p><div class=highlight><pre
|
||||
<span class=s2>"hello"</span><span class=p>[</span><span class=o>-</span><span class=mi>5</span><span class=p>]</span> <span class=c1># "h"</span>
|
||||
<span class=s2>"hello"</span><span class=p>[</span><span class=mi>4</span><span class=p>]</span> <span class=c1># "o"</span>
|
||||
<span class=s2>"hello"</span><span class=p>[</span><span class=mi>5</span><span class=p>]</span> <span class=c1># error: index out of range</span>
|
||||
</code></pre></div></div></div></div></div></div></div><div class=sub-footer><div class=container><div class=row><div class=col-12><div class=sub-footer-inner><ul><li><a href=https://github.com/mcuadros/ascod>Documentation version v1.0.0</a></li><li>Template by <a href=https://www.zerostatic.io>Robert Austin</a></li></ul></div></div></div></div><script type=text/javascript src=/js/scripts.min.be6fe1294698d6acd837c5182149cd1a24daae9fa1903ce810c264539d254d62.js></script></body></html>
|
||||
</code></pre></div></div></div></div></div></div></div><div class=sub-footer><div class=container><div class=row><div class=col-12><div class=sub-footer-inner><ul><li><a href=https://github.com/mcuadros/ascod>Documentation version v1.1.0</a></li><li>Template by <a href=https://www.zerostatic.io>Robert Austin</a></li></ul></div></div></div></div><script type=text/javascript src=/js/scripts.min.be6fe1294698d6acd837c5182149cd1a24daae9fa1903ce810c264539d254d62.js></script></body></html>
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user