#svelte #compiler #mind #recovery #error #reporting #parse

svelters

Svelte parser written in Rust with error recovery and handling in mind

1 unstable release

0.0.1 Apr 19, 2023

#15 in #svelte

Download history 4/week @ 2024-02-21 10/week @ 2024-02-28 3/week @ 2024-03-20 60/week @ 2024-03-27 6/week @ 2024-04-03

67 downloads per month

MIT/Apache

30KB
824 lines

Svelte(rs)

A WIP parser for svelte files that is designed with error recovery and reporting in mind. This is mostly a toy project for now, with some vague intention of improving editor tooling if I ever get around to it. I am not intending to rewrite the svelte compiler in rust, though a project attempting to do that might want to use this parser as a starting point.

This is very work-in-progress and can't parse most svelte code right now (it can't event parse elements yet!).


lib.rs:

WIP svelte parser. Not ready for use yet.

Dependencies

~7–14MB
~191K SLoC