tiny-svelte
tiny-svelte copied to clipboard
π Tiny svelte implement
π Why
Very interest in svelte, and i want to know how svelte worksοΌi found that svelte is just a compiler, so i write this tiny svelte to learn it.
π Features
WIP!!!
- [x] parse
- [x] parseFragments
- [x] parseScript
- [x] parseElement
- [x] parseAttributeList
- [x] parseAttribute
- [x] parseExpression
- [x] parseText
- [x] parseJavaScript
- [x] match
- [x] eat
- [x] analyse
- [x] generate
π¦ How to use
- cd src dir && node index.js to compile svelte to js
- then you will get app.js which is compiled by index.js
- serve index.html then you can see the result
π¦ Author
sudongyuer email:[email protected]
π License
MIT License Β© 2022 SuDongYu