binding compiler

This commit is contained in:
Asaki Yuki 2026-01-07 10:46:18 +07:00
parent bb9b300d6f
commit 4d5f81f7e5
8 changed files with 188 additions and 15 deletions

View file

@ -1,13 +1,7 @@
import { Binding, Color, Label, Panel } from ".."
import { BindingTranspiler } from ".."
Panel({
"#test": 123,
[Binding.IS_CREATIVE_LAYOUT]: true,
[Binding.INVENTORY_SELECTED_ITEM_COLOR]: Color(0x00ff00),
}).addChild(
Label({
text: "Hello, World!",
shadow: true,
color: Color("#3b0202"),
})
)
const input = "abcdef + 123456"
const lexer = BindingTranspiler.lexer(input)
console.log(lexer)