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