<?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: Callebe Josué Cantú</title>
    <description>The latest articles on DEV Community by Callebe Josué Cantú (@callebe_josuecantu).</description>
    <link>https://dev.to/callebe_josuecantu</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3958590%2F7ec35fae-97ab-4d37-95ab-39b5c897c42d.jpg</url>
      <title>DEV Community: Callebe Josué Cantú</title>
      <link>https://dev.to/callebe_josuecantu</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/callebe_josuecantu"/>
    <language>en</language>
    <item>
      <title>Estou criando minha própria linguagem de programação em Python</title>
      <dc:creator>Callebe Josué Cantú</dc:creator>
      <pubDate>Thu, 04 Jun 2026 22:16:35 +0000</pubDate>
      <link>https://dev.to/callebe_josuecantu/estou-criando-minha-propria-linguagem-de-programacao-em-python-57e2</link>
      <guid>https://dev.to/callebe_josuecantu/estou-criando-minha-propria-linguagem-de-programacao-em-python-57e2</guid>
      <description>&lt;p&gt;Há algum tempo comecei um projeto chamado Exper.&lt;/p&gt;

&lt;p&gt;A ideia era simples: aprender mais sobre interpretadores e design de linguagens criando minha própria linguagem de programação.&lt;/p&gt;

&lt;p&gt;No início ela era extremamente simples, mas aos poucos foi ganhando recursos como:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Variáveis&lt;/li&gt;
&lt;li&gt;Funções&lt;/li&gt;
&lt;li&gt;Structs&lt;/li&gt;
&lt;li&gt;Loops&lt;/li&gt;
&lt;li&gt;Condicionais&lt;/li&gt;
&lt;li&gt;Listas&lt;/li&gt;
&lt;li&gt;Interpolação de strings&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Hoje a Exper já consegue executar programas relativamente grandes.&lt;/p&gt;

&lt;p&gt;O que mais tem me ajudado no desenvolvimento não são exemplos pequenos, mas sim um RPG de texto que estou criando para testar a linguagem.&lt;/p&gt;

&lt;p&gt;Esse RPG força a implementação de recursos reais:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Inventário&lt;/li&gt;
&lt;li&gt;Objetos&lt;/li&gt;
&lt;li&gt;Combate&lt;/li&gt;
&lt;li&gt;Estruturas de dados&lt;/li&gt;
&lt;li&gt;Passagem por referência&lt;/li&gt;
&lt;li&gt;Manipulação de listas&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Curiosamente, a maior parte dos bugs aparece apenas quando tentamos construir algo real.&lt;/p&gt;

&lt;p&gt;Por exemplo, recentemente descobri problemas relacionados a passagem por referência e mutabilidade ao implementar um sistema de inventário para poções.&lt;/p&gt;

&lt;p&gt;Esse tipo de problema dificilmente apareceria em exemplos simples de calculadora.&lt;/p&gt;

&lt;h2&gt;
  
  
  Exemplo da linguagem
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;struct Player {
    name,
    hp = 100
}

player = Player()
player.name = "Callebe"

console.log("{player.name} possui {player.hp} HP")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  O que aprendi até agora
&lt;/h2&gt;

&lt;p&gt;Criar uma linguagem é muito mais difícil do que parece.&lt;/p&gt;

&lt;p&gt;Quando você acredita que terminou:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Surge um problema de escopo.&lt;/li&gt;
&lt;li&gt;Depois um problema de mutabilidade.&lt;/li&gt;
&lt;li&gt;Depois um problema de parsing.&lt;/li&gt;
&lt;li&gt;Depois um problema de listas.&lt;/li&gt;
&lt;li&gt;Depois um problema de referências.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Mas é justamente isso que torna o projeto interessante.&lt;/p&gt;

&lt;h2&gt;
  
  
  Próximos passos
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Melhorar suporte a métodos&lt;/li&gt;
&lt;li&gt;Operadores compostos&lt;/li&gt;
&lt;li&gt;Sistema de módulos&lt;/li&gt;
&lt;li&gt;Classes&lt;/li&gt;
&lt;li&gt;Exceções&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;O objetivo não é criar um concorrente para Python ou JavaScript.&lt;/p&gt;

&lt;p&gt;O objetivo é aprender como essas linguagens funcionam internamente.&lt;/p&gt;

&lt;p&gt;E, até agora, a Exper tem sido uma excelente professora.&lt;/p&gt;

&lt;p&gt;Código completo &lt;strong&gt;&lt;a href="https://github.com/callebecantu2-png/exper-language-0.1.2" rel="noopener noreferrer"&gt;aqui&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>programming</category>
      <category>interpreters</category>
      <category>opensource</category>
    </item>
    <item>
      <title>I built my own programming language in Python (Exper Language)</title>
      <dc:creator>Callebe Josué Cantú</dc:creator>
      <pubDate>Fri, 29 May 2026 14:12:49 +0000</pubDate>
      <link>https://dev.to/callebe_josuecantu/i-built-my-own-programming-language-in-python-exper-language-3mi8</link>
      <guid>https://dev.to/callebe_josuecantu/i-built-my-own-programming-language-in-python-exper-language-3mi8</guid>
      <description>&lt;p&gt;🧠 Introduction&lt;/p&gt;

&lt;p&gt;I’ve been building my own programming language called Exper, written from scratch in Python.&lt;/p&gt;

&lt;p&gt;The goal is to understand how interpreters work internally and experiment with language design (functions, loops, expressions, and control flow).&lt;/p&gt;

&lt;p&gt;Right now, Exper is already a working mini-language capable of executing real programs.&lt;/p&gt;

&lt;p&gt;⚙️ What Exper can do so far&lt;/p&gt;

&lt;p&gt;The language already supports:&lt;/p&gt;

&lt;p&gt;Variables&lt;br&gt;
Functions (with default and named parameters)&lt;br&gt;
If / elif / else conditionals&lt;br&gt;
While and for loops&lt;br&gt;
Return, break and continue&lt;br&gt;
String interpolation using {expression}&lt;br&gt;
Lists and basic methods (append, pop, remove, insert)&lt;br&gt;
Console input/output&lt;br&gt;
Expression evaluation (including function calls inside expressions)&lt;/p&gt;

&lt;p&gt;💻 Example code in Exper&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;fn soma(a, b=10) {
    return a + b
}

console.log(soma(5))
console.log(soma(5, 20))
console.log(soma(a=7, b=3))

nome = "Callebe"
idade = 12

if (idade &amp;gt; 17) {
    console.log("{nome} is an adult.")
} else {
    console.log("{nome} is not an adult.")
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;⚙️ How it works&lt;/p&gt;

&lt;p&gt;Exper is interpreted using a custom Python engine that:&lt;/p&gt;

&lt;p&gt;Parses line-by-line execution&lt;br&gt;
Evaluates expressions using a safe evaluator&lt;br&gt;
Handles function calls with local scope simulation&lt;br&gt;
Supports nested expression evaluation&lt;br&gt;
Implements control flow using exceptions (break/continue/return)&lt;/p&gt;

&lt;p&gt;⚠️ Current challenges&lt;/p&gt;

&lt;p&gt;This project is still evolving. Some known challenges:&lt;/p&gt;

&lt;p&gt;Expression evaluation still relies partially on eval&lt;br&gt;
Function parsing and argument handling is improving&lt;br&gt;
Scope system is currently simulated (not fully isolated)&lt;br&gt;
Error messages are basic and need improvement&lt;br&gt;
String interpolation and edge cases still being refined&lt;/p&gt;

&lt;p&gt;🚀 What I want to improve next&lt;/p&gt;

&lt;p&gt;Better parser (possibly AST-based instead of eval)&lt;br&gt;
Real scope system (local/global separation)&lt;br&gt;
Better error handling system&lt;br&gt;
More operators (like XOR, increment, assignment operators)&lt;br&gt;
Structs / objects / macro-like features&lt;br&gt;
Standard library system&lt;/p&gt;

&lt;p&gt;📌 Final note&lt;/p&gt;

&lt;p&gt;This started as a small experiment and turned into a full mini interpreter.&lt;br&gt;
I’m learning a lot about how programming languages actually work under the hood.&lt;/p&gt;

&lt;p&gt;Any feedback on interpreter design, architecture or performance improvements is welcome.&lt;/p&gt;

&lt;p&gt;full source code &lt;a href="https://github.com/callebecantu2-png/exper-language-0.1.0" rel="noopener noreferrer"&gt;here&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>programming</category>
      <category>interpreters</category>
      <category>opensource</category>
    </item>
    <item>
      <title>I built my own programming language in Python (Exper Language)</title>
      <dc:creator>Callebe Josué Cantú</dc:creator>
      <pubDate>Fri, 29 May 2026 14:12:49 +0000</pubDate>
      <link>https://dev.to/callebe_josuecantu/i-built-my-own-programming-language-in-python-exper-language-2682</link>
      <guid>https://dev.to/callebe_josuecantu/i-built-my-own-programming-language-in-python-exper-language-2682</guid>
      <description>&lt;p&gt;A while ago, I started a project called Exper.&lt;/p&gt;

&lt;p&gt;The idea was simple: learn more about interpreters and language design by building my own programming language.&lt;/p&gt;

&lt;p&gt;At first, it was extremely simple. Over time, it gained features such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Variables&lt;/li&gt;
&lt;li&gt;Functions&lt;/li&gt;
&lt;li&gt;Structs&lt;/li&gt;
&lt;li&gt;Loops&lt;/li&gt;
&lt;li&gt;Conditionals&lt;/li&gt;
&lt;li&gt;Lists&lt;/li&gt;
&lt;li&gt;String interpolation&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Today, Exper can already run relatively large programs.&lt;/p&gt;

&lt;p&gt;What has helped me the most is not small examples, but a text-based RPG that I am building to test the language.&lt;/p&gt;

&lt;p&gt;The RPG forces the implementation of real-world features:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Inventory systems&lt;/li&gt;
&lt;li&gt;Objects&lt;/li&gt;
&lt;li&gt;Combat mechanics&lt;/li&gt;
&lt;li&gt;Data structures&lt;/li&gt;
&lt;li&gt;Reference passing&lt;/li&gt;
&lt;li&gt;List manipulation&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Interestingly, most bugs only appear when you try to build something real.&lt;/p&gt;

&lt;p&gt;For example, I recently discovered several issues involving reference passing and mutability while implementing an inventory system for potions.&lt;/p&gt;

&lt;p&gt;Those problems would probably never appear in simple calculator examples.&lt;/p&gt;

&lt;h2&gt;
  
  
  Example
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;struct Player {
    name,
    hp = 100
}

player = Player()
player.name = "Callebe"

console.log("{player.name} has {player.hp} HP")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  What I've Learned
&lt;/h2&gt;

&lt;p&gt;Building a programming language is much harder than it seems.&lt;/p&gt;

&lt;p&gt;Every time you think you're done:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A scope bug appears.&lt;/li&gt;
&lt;li&gt;Then a mutability bug.&lt;/li&gt;
&lt;li&gt;Then a parser bug.&lt;/li&gt;
&lt;li&gt;Then a list bug.&lt;/li&gt;
&lt;li&gt;Then a reference bug.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;But that's exactly what makes the project interesting.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's Next
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Better method support&lt;/li&gt;
&lt;li&gt;Compound operators&lt;/li&gt;
&lt;li&gt;Module system&lt;/li&gt;
&lt;li&gt;Classes&lt;/li&gt;
&lt;li&gt;Exceptions&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The goal is not to compete with Python or JavaScript.&lt;/p&gt;

&lt;p&gt;The goal is to understand how they work internally.&lt;/p&gt;

&lt;p&gt;So far, Exper has been an amazing teacher.&lt;/p&gt;

&lt;p&gt;full source code &lt;a href="https://github.com/callebecantu2-png/exper-language-0.1.2" rel="noopener noreferrer"&gt;here&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>programming</category>
      <category>interpreters</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
