<feed xmlns='http://www.w3.org/2005/Atom'>
<title>moon/zygotec/tests/programs/typedef.zc, branch main</title>
<subtitle> work-in-progress programming language.
</subtitle>
<id>https://git.downsta.ir/moon/zygotec/atom?h=main</id>
<link rel='self' href='https://git.downsta.ir/moon/zygotec/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.downsta.ir/moon/zygotec/'/>
<updated>2026-10-14T09:39:22+00:00</updated>
<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>
</feed>
