rebcabin / masr

Meta ASR: replacement for aging ASDL
MIT License
4 stars 0 forks source link

Request unambiguous and explicit outputs in `--show-asr` #22

Open rebcabin opened 1 year ago

rebcabin commented 1 year ago

Issue #21 brings up the requirement that --show-asr really must be completely unambiguous. = might mean Eq or it might mean Eqv or Assignment? Any kind of operator notation like that must be replaced with either a symbol like Assignment or must be explicitly written in ASR.asdl.

Secret sugar like operator synonyms or multinyms hidden in the C++ implementation of ASR make MASR's ADSL back-channel really difficult!

As we move toward greater formality for MASR, it's important that --show-asr be unambiguous, explicitly written in full in ASR.asdl, and context-free. Leave the sugar to MASR! Don't make MASR do dispatch-on-type or lookahead on the printouts from --show-asr!