endojs / Jessie

Tiny subset of JavaScript for ocap-safe universal mobile code
Apache License 2.0
279 stars 16 forks source link

Clarify parser grammar inheritance #72

Open michaelfig opened 2 years ago

michaelfig commented 2 years ago

I find it strange that it is the caller of, for example, makeJustin that need to know that Justin inherits from JSON. Clearly, the actual contents of makeJustin strongly rely on this assumption. Applies to all grammar inheritance cases. Can this be refactored well? Would it have a non-obvious cost?

Originally posted by @erights in https://github.com/endojs/Jessie/pull/71#pullrequestreview-985456806