This repository was archived by the owner on Mar 7, 2025. It is now read-only.
Simplifying the parsing #52
Unanswered
pintariching
asked this question in
Q&A
Replies: 2 comments 8 replies
-
I think this what the svelte compiler already does but instead of |
Beta Was this translation helpful? Give feedback.
4 replies
-
I made a branch rustify-parsing where I followed the awesome video from Tan Li Hau called Build your own Svelte. He goes into detail on how it works and I think I now get it how it works. He also released a followup on implementing more features. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I think the original compiler goes in a big roundabout way when parsing. Couldn't we simplify it?
I think we can start by splitting the
.svelte
file into three parts. Extract the script and style and the remainder is svelte flavored HTML, where all the parts between curly braces get thrown through the swc parser.Beta Was this translation helpful? Give feedback.
All reactions