{"id":29,"date":"2025-10-03T08:46:17","date_gmt":"2025-10-03T06:46:17","guid":{"rendered":"https:\/\/silver-boards.com\/?page_id=29"},"modified":"2025-10-03T09:02:09","modified_gmt":"2025-10-03T07:02:09","slug":"zeus-programming-language","status":"publish","type":"page","link":"https:\/\/silver-boards.com\/index.php\/zeus-programming-language\/","title":{"rendered":"Zeus Programming Language"},"content":{"rendered":"<h1>Compiler<\/h1>\n<p>The compiler is based on llvm and will generate a native binary for the target plattform.\nFor now only <code>linux-x86-64<\/code> and <code>win64<\/code> are supported.<\/p>\n<h2>Usage<\/h2>\n<pre><code class=\"lang-sh language-sh sh\">zeus examples\/helloworld.zeus<\/code><\/pre>\n<h2>Executing the compiler<\/h2>\n<p>The compiler will generate a native executable based on the program name defined in the program unit.<\/p>\n<pre><code class=\"lang-sh language-sh sh\">zeus -c testfiles\/hello.zeus<\/code><\/pre>\n<h1>Examples<\/h1>\n<h2>Hello World<\/h2>\n<pre><code class=\"lang-rust language-rust rust\">fn main() : i32 {\n    println(&quot;Hello, World!&quot;);\n    return 0;\n}<\/code><\/pre>\n<h2>Functions<\/h2>\n<pre><code class=\"lang-rust language-rust rust\">fn min(a : i32, b : i32) : i32 {\n    if a &lt; b {\n        return a;\n    } else {\n        return b;\n    }\n}<\/code><\/pre>\n<h2>Variables<\/h2>\n<pre><code class=\"lang-rust language-rust rust\">fn main() : i32 {\n    let x : i32 = 10;\n    let y : i32 = 20;\n    let z : i32 = x + y;\n    println(&quot;The sum value is: &quot;);\n    println(z);\n    return 0;\n} <\/code><\/pre>\n<h2>Control Flow<\/h2>\n<pre><code class=\"lang-rust language-rust rust\">fn main() : i32 {\n    let mut i : i32 = 0;\n    while i &lt; 10 {\n        println(i);\n        i = i + 1;\n    }\n    return 0;   \n}<\/code><\/pre>","protected":false},"excerpt":{"rendered":"<p>Compiler The compiler is based on llvm and will generate a native binary for the target plattform. For now only [&hellip;]<\/p>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"class_list":["post-29","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/silver-boards.com\/index.php\/wp-json\/wp\/v2\/pages\/29","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/silver-boards.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/silver-boards.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/silver-boards.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/silver-boards.com\/index.php\/wp-json\/wp\/v2\/comments?post=29"}],"version-history":[{"count":2,"href":"https:\/\/silver-boards.com\/index.php\/wp-json\/wp\/v2\/pages\/29\/revisions"}],"predecessor-version":[{"id":35,"href":"https:\/\/silver-boards.com\/index.php\/wp-json\/wp\/v2\/pages\/29\/revisions\/35"}],"wp:attachment":[{"href":"https:\/\/silver-boards.com\/index.php\/wp-json\/wp\/v2\/media?parent=29"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}