fix: nested lexer
This commit is contained in:
parent
3719a3f6b3
commit
e7ac672470
2 changed files with 87 additions and 15 deletions
17
test/app.ts
17
test/app.ts
|
|
@ -1,10 +1,11 @@
|
|||
import { Panel } from ".."
|
||||
|
||||
const panel = Panel()
|
||||
|
||||
panel.addBindings({
|
||||
source_property_name: `[ $abc ]`,
|
||||
target_property_name: "#text",
|
||||
})
|
||||
|
||||
console.log(panel)
|
||||
const now = performance.now()
|
||||
for (let index = 0; index < 1e4; index++) {
|
||||
Panel().addBindings({
|
||||
source_property_name: `[ f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{abs(-(#a + #b)) + 'abc'}'}'}'}'}'}'}'}'}'}'}'}'}'}'}'}'}'}'}'}#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{abs(-(#a + #b))}'}'}'}'}'}'}'}'}'}'}'}'}'}'}'}'}'}'}'}#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{abs(-(#a + #b))}'}'}'}'}'}'}'}'}'}'}'}'}'}'}'}'}'}'}'}#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{abs(-(#a + #b))}'}'}'}'}'}'}'}'}'}'}'}'}'}'}'}'}'}'}'}#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{f'#{abs(-(#a + #b))}'}'}'}'}'}'}'}'}'}'}'}'}'}'}'}'}'}'}'}' ]`,
|
||||
target_property_name: "#test",
|
||||
})
|
||||
}
|
||||
const end = performance.now()
|
||||
console.log(end - now)
|
||||
|
|
|
|||
Reference in a new issue