gilch / hebigo

蛇語(HEH-bee-go): An indentation-based skin for Hissp.
https://github.com/gilch/hissp
Mozilla Public License 2.0
24 stars 3 forks source link

Extra reserved words #12

Open gilch opened 5 years ago

gilch commented 5 years ago

Hebigo will automatically expand Python reserved words to qualified macros. But we'll want some more "reserved" words than this. We also don't want them to conflict with normal Python identifiers. Thus far, Hebigo does not allow special characters in its symbols. So we can special case symbols that start with ! for this purpose.

At minimum, I think we'll need

Perhaps we should think of these as Hebigo's macro "builtins", in which case, we might want a lot more of them than this.

gilch commented 2 years ago

!where from #59 is a possibility.

Hissp has more bundled macros now. Hebigo ought to be at least as capable (except, perhaps, for the reader macros). Nothing is really stopping you from using Hissp's, but some of them are kind of missing features due to the restriction on helper functions. Hebigo could provide more complete alternatives.