binding compiler
This commit is contained in:
parent
bb9b300d6f
commit
4d5f81f7e5
8 changed files with 188 additions and 15 deletions
18
test/app.ts
18
test/app.ts
|
|
@ -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)
|
||||
|
|
|
|||
Reference in a new issue