top | item 29257231

(no title)

a_lost_needle | 4 years ago

It does not. Easily implemented with combinators the whole way down.

discuss

order

SavantIdiot|4 years ago

Correct, but the very beginning of the original article proposes running JSON through JSMin to support comments. So in this context, a "compiler" is being proposed (or transpiler to more modern). My comment isn't clear.

a_lost_needle|4 years ago

Still easily implemented with combinators the whole way down. It’s building an ast, that’s it. Once you have a tree, you can do whatever you want with the result before passing it to a compiler for a language. Here though, just serialization stuff.

Zababa|4 years ago

That's one proposed solution but not the only one. You could just ignore comments, like most programming languages do.