Skip to content

whalesink/tiny-svelte

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

31 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ‘€ 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!!!

  • parse
    • parseFragments
    • parseScript
    • parseElement
    • parseAttributeList
    • parseAttribute
    • parseExpression
    • parseText
    • parseJavaScript
    • match
    • eat
  • analyse
  • 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:976499226@qq.com

๐Ÿ“„ License

MIT License ยฉ 2022 SuDongYu

About

๐Ÿˆ Tiny svelte implement

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 98.2%
  • Svelte 1.2%
  • HTML 0.6%