typestache
tarsec

typestache | tarsec | |
---|---|---|
1 | 2 | |
1 | 23 | |
- | - | |
8.3 | 4.3 | |
about 1 month ago | about 1 month ago | |
TypeScript | TypeScript | |
- | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
typestache
-
How do you prototype a nice language?
I wrote a parser combinator library for TypeScript that I have been having a lot of fun with [1]. It has limitations, I wouldn't use it to write a full language programming language like Gleam, but for "language-ish projects", parser combinators can be lovely to use. I used it to build a typed version of Mustache [2].
> Rather, I’m after a particular kind of software hygge: Loads instantly, doesn’t crash, and fits nicely in the hand.
The author is talking about the language, but this is what parser combinators feel like to me, and could be another option. Tarsec is probably the most fun side project I have built in a while.
[1] https://github.com/egonSchiele/tarsec
[2] https://github.com/egonSchiele/typestache
tarsec
-
How do you prototype a nice language?
I wrote a parser combinator library for TypeScript that I have been having a lot of fun with [1]. It has limitations, I wouldn't use it to write a full language programming language like Gleam, but for "language-ish projects", parser combinators can be lovely to use. I used it to build a typed version of Mustache [2].
> Rather, I’m after a particular kind of software hygge: Loads instantly, doesn’t crash, and fits nicely in the hand.
The author is talking about the language, but this is what parser combinators feel like to me, and could be another option. Tarsec is probably the most fun side project I have built in a while.
[1] https://github.com/egonSchiele/tarsec
[2] https://github.com/egonSchiele/typestache
-
Parser Combinators Beat Regexes
https://github.com/egonSchiele/tarsec
I have a short and a long intro, both illustrated: https://github.com/egonSchiele/tarsec/blob/main/tutorials/5-... and https://github.com/egonSchiele/tarsec/blob/main/tutorials/th...
It also has a neat debug mode, and a way to benchmark performance. I've loved using it, hopefully someone reading will use it too! Use this as a chance to learn something cool (parser combinators)!
What are some alternatives?
shi - a Simple Hackable Interpreter
haskell-parsing-benchmarks
gleam - ⭐️ A friendly language for building type-safe, scalable systems!
Sprache - A tiny, friendly, C# parser construction library
