<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: RobEst</title>
    <description>The latest articles on DEV Community by RobEst (@robest0906).</description>
    <link>https://dev.to/robest0906</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3955721%2F73b5fd26-813c-44ad-849b-89507a72936a.jpg</url>
      <title>DEV Community: RobEst</title>
      <link>https://dev.to/robest0906</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/robest0906"/>
    <language>en</language>
    <item>
      <title>I built a compiler for my own language. Took way longer than expected, but it works</title>
      <dc:creator>RobEst</dc:creator>
      <pubDate>Thu, 28 May 2026 04:48:27 +0000</pubDate>
      <link>https://dev.to/robest0906/i-built-a-compiler-for-my-own-language-took-way-longer-than-expected-but-it-works-46ik</link>
      <guid>https://dev.to/robest0906/i-built-a-compiler-for-my-own-language-took-way-longer-than-expected-but-it-works-46ik</guid>
      <description>&lt;p&gt;Started this like a month ago, wanted to understand how compilers actually work under the hood. Picked LLVM because everyone says it's the way to go. Did not expect it to be this painful.&lt;br&gt;
The language is called tTek. The idea is instead of writing event loops you just declare rules — describe when something should happen and it runs:&lt;/p&gt;

&lt;p&gt;mem temperature: i32 = 22;&lt;br&gt;
mem ac_on: i32 = 0;&lt;/p&gt;

&lt;p&gt;rule too_hot when temperature &amp;gt; 25 &amp;amp;&amp;amp; ac_on == 0 {&lt;br&gt;
    ac_on = 1;&lt;br&gt;
    print("AC on\n");&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;rule shutdown when temperature &amp;gt; 40 {&lt;br&gt;
    halt;&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;Spent way too long on the linker throwing undefined reference to WinMain for no obvious reason, object files coming out 0 bytes, segfaults in codegen that had no error message at all. Good times.&lt;br&gt;
Eventually got it working. Compiles to a real native exe through LLVM, no C in between. Functions, if/else, while, sleep, halt — all working.&lt;br&gt;
Repo: &lt;a href="https://github.com/RobEst0906/tTek-language" rel="noopener noreferrer"&gt;https://github.com/RobEst0906/tTek-language&lt;/a&gt;&lt;br&gt;
Still a lot missing (timers, preprocessor, proper pointer support) but the core works. Curious what people think of the rule-based approach, and also what I probably did wrong in the compiler lol.&lt;/p&gt;

</description>
      <category>cpp</category>
      <category>language</category>
      <category>compiling</category>
      <category>development</category>
    </item>
  </channel>
</rss>
