<feed xmlns='http://www.w3.org/2005/Atom'>
<title>moon/zygotec/editors/vscode/syntaxes/zc.tmLanguage.json, branch work/defer</title>
<subtitle> work-in-progress programming language.
</subtitle>
<id>https://git.downsta.ir/moon/zygotec/atom?h=work%2Fdefer</id>
<link rel='self' href='https://git.downsta.ir/moon/zygotec/atom?h=work%2Fdefer'/>
<link rel='alternate' type='text/html' href='https://git.downsta.ir/moon/zygotec/'/>
<updated>2026-10-14T12:38:34+00:00</updated>
<entry>
<title>bounds checking: constant loop bound proof works, plain-op fixed-array check, docs (readme, spec 4.15 and friends, server, vscode), conformance and test.sh fixes, todo</title>
<updated>2026-10-14T12:38:34+00:00</updated>
<author>
<name>zinc</name>
<email>zinc@downsta.ir</email>
</author>
<published>2026-10-14T12:38:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.downsta.ir/moon/zygotec/commit/?id=76a4db8ef506e4fb2c3eb530a3d95904a42ca0cb'/>
<id>urn:sha1:76a4db8ef506e4fb2c3eb530a3d95904a42ca0cb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>zc: add the defer statement</title>
<updated>2026-10-14T10:39:47+00:00</updated>
<author>
<name>zinc</name>
<email>zinc@downsta.ir</email>
</author>
<published>2026-10-14T10:39:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.downsta.ir/moon/zygotec/commit/?id=54b8a8918bb63c98a8f58e823033232243647562'/>
<id>urn:sha1:54b8a8918bb63c98a8f58e823033232243647562</id>
<content type='text'>
defer expr; and defer { ... } register code that runs when the enclosing
block ends: at the end of the block, and at return, break and continue
that leave it. the tokens are kept at the defer and compiled again at each
exit (block_close, body, kw_return, kw_break, kw_continue), newest first,
before the block's variables are released, so the analyzer sees a deferred
rt.free(p) as the transfer of p where it runs. names mean what they meant
at the defer; values are read when it runs. return, break and continue
inside a deferred statement are errors, reported once. works in unchecked
code and closures (own base per function context).
</content>
</entry>
<entry>
<title>add c-style typedef and a built-in string alias</title>
<updated>2026-10-14T09:39:22+00:00</updated>
<author>
<name>zinc</name>
<email>zinc@downsta.ir</email>
</author>
<published>2026-10-14T09:39:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.downsta.ir/moon/zygotec/commit/?id=6bb3d79cbd853601623095b497a1807489c3ef6e'/>
<id>urn:sha1:6bb3d79cbd853601623095b497a1807489c3ef6e</id>
<content type='text'>
typedef T name; binds name to the type record of T, at the top level or
in a function (scoped to its block). string is a built-in alias for char*.
A type name straight before , or ) in a parameter list is the parameter's
name, so fn f(string) still works. The language server shows typedef T
name; on hover and highlights typedef as a keyword.
</content>
</entry>
<entry>
<title>embed: tests, editor support and docs; js vm file access; test fixes</title>
<updated>2026-10-14T07:55:08+00:00</updated>
<author>
<name>zinc</name>
<email>zinc@downsta.ir</email>
</author>
<published>2026-10-14T07:55:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.downsta.ir/moon/zygotec/commit/?id=d8da21a406f449d277c42b91d4c9bf8b20bd0dcc'/>
<id>urn:sha1:d8da21a406f449d277c42b91d4c9bf8b20bd0dcc</id>
<content type='text'>
embed declarations get accept and reject fixtures, a run-only image check
through zc0, an lsp keyword hover and the grammar keyword. errors point at
the declaration and still declare the name, so its uses are not reported
again. zc0 tracks byte-string globals and lays embedded arrays out one word
per element, the way its own indexing reads them.

the command-line javascript vm reaches node's file system for the file
syscalls, so include and embed work there; other embedders opt in.

the web build is self-contained in build/web with its examples. README,
BORROW and BOOTSTRAP-OWNERSHIP describe the new build and ownership rules,
and ONBOARD.md is a reading and verification order for the code.

the suite passes the map header to mklayout, the wasm fuzz program uses
the include format, and lsp drivers scale their deadlines on hosts
without the arm64 jit (ZC_TEST_TIMEOUT_SCALE). LLVM_CONFIG selects an
llvm with headers for the llvm section.
</content>
</entry>
<entry>
<title>a</title>
<updated>2026-10-12T05:16:23+00:00</updated>
<author>
<name>Moon Flower</name>
<email>moonflower@elhenney.local</email>
</author>
<published>2026-10-12T05:16:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.downsta.ir/moon/zygotec/commit/?id=ecc350ca5c2eb50be8309c5f14f8bf0d87db9a02'/>
<id>urn:sha1:ecc350ca5c2eb50be8309c5f14f8bf0d87db9a02</id>
<content type='text'>
</content>
</entry>
</feed>
