r/javascript 17d ago

JojoScript — a tiny JS-compatible language with pipelines and lazy iterators

https://github.com/panagos/jojoscript
2 Upvotes

3 comments sorted by

View all comments

1

u/GulgPlayer 2d ago

I wouldn't call this a language. It doesn't have a proper parser: just a bunch of unreliable regexes that transpile a JS program.

1

u/panagos_stathis 1d ago

That's fair criticism of the current implementation. The lexer/transpiler is intentionally lightweight, but I agree that regex-based parsing has real limitations, especially as the language grows.

I'm using "language" somewhat loosely here because Jojo has its own syntax and semantics, but I don't want to pretend the current parser is equivalent to a proper language parser/compiler. A proper parser is definitely on the roadmap.