▲ 6 r/u_AltruisticTie3844+4 crossposts

Cambios axolang

Hice cambios al boceto de mi nuevo lenguaje de programación

Axolang boceto

Axolang boceto 2026

Opción tipado dinamico

#script add <Basic.axo> var foo = 1 var goo = true fun hi = (){ if ((foo == 1) & goo){ print(system, hi) } } #ui //None Tipos var foo = 1 //integer foo = 1.3 //float foo = 2.70DL //decimal foo = true //boolean foo = ‘a’ //char foo = 5 + 7i //complex foo* = &value //pointer

Opción tipado estatico

#script add <Basic.axo> int foo = 1 boo goo = true fun hi = (){ if ((foo == 1) & goo){ print(system, hi) } } #ui //None Tipos int foo = 1 flt foo = 1.3 dec foo = 2.70DL boo foo = true char foo = ‘a’ com foo = 5 + 7i int* foo = &value

Otros tipos

fun foo = (){} // function pkg foo = {} //struct or class auto foo //auto inference void foo //null

Arreglos

var foo[] = «hola mundo» foo[] = ⟨ 3, 4 ⟩ foo[] = ⟨ 4, 4.5, true ⟩ fun hi = ⟨ (){}, (){} ⟩

char foo[] = «hola mundo» int foo[] = ⟨ 3, 4 ⟩ any foo[] = ⟨ 4, 4.5, true ⟩ //en consideración fun hi = ⟨ (){}, (){} ⟩

Estructura

#script add <Basic.axo> fun write = (){ ui(«#text»).text = “hola” } #ui <page id=«pg1»>{ <text id=«text» text=«ok»>; <button on:click=«write»>; }

Objetivo Android, ios y desktop

Tipo Transpilado a c, compilado o bytecode

reddit.com
u/AltruisticTie3844 — 9 days ago
▲ 6 r/u_AltruisticTie3844+3 crossposts

Axolotl lang, mi nuevo proyecto de lenguaje de programacion

(Antes axolang) este lenguaje es de tipado estatico (ya no dinamico) inspirado de ts , jQuery y svelte

add &lt;path/to/lib.axo&gt;
int i1 = 4
float f2 = 2.8
dec d3 = 3.96DL
com c4 = 2 + 6.9i
bool b5 = true
char c6 = 'g'
pkg p7 = {
int var
float varf
func varfn = (){}
}
func f8 = (int a){
printf(«hola mundo»)
}
auto a9 = 7 // auto inferido
any a10 = 6i //dinamico
void

int *p1 = =&gt; i1 //puntero
any arr1 = 「4, true, «string», =&gt;c6」
func arrf = 「(){},(){}」

printf(«permite scripting»)

Diseñado para hacer apps Ahora es mejor transpilado c o compilador de bytecode

reddit.com
u/AltruisticTie3844 — 15 days ago
▲ 2 r/mexicodev+2 crossposts

Mi idea de un futuro lenguaje: Axolang

Hola 👋 🙂

Estoy trabajando en mi nuevo lenguaje de programación se llama axolang es de tipado dinamico y es transpilado a c (c23 específicamente) inspirado de js y jQuery, que recursos me servirían para poder hacerlo realidad.

Ya tengo idea de como se transpilaran ciertas cosas como las variables usando el sistema de union y void* para arreglos con su longitud

Y las variables se quedaran en stack, evitare el heap por razones de velocidad

Aqui un ejemplo

Add &lt;path/a/librería.axo&gt;//librerías
var foo = 2 //es entero 
foo = 2.89 // es coma flotante
foo = 3.60DL //es decimal
foo = «es texto»
foo = 'a' // es un carácter 
foo = 4 + 6.8i //es un complejo 
foo = true // es booleano
foo[] = 「«es arreglo mixto», 3, 5.7DL, false, 6i」

pkg clase = {
var a
var b
func funcion_clase = (){
printf(«Hola desde pkg»)
}
}
func hola = (var a){}

auto goo = 7 //auto inferido 

void // vacio

clase hoo = {.a = 5, .b = false}// constructor
hoo.funcion_clase() //scripting 
reddit.com
u/AltruisticTie3844 — 15 days ago