jsoftware / jsource

J engine source mirror
Other
650 stars 90 forks source link

Pre-parsed Parenthesized Primitives #55

Open tangentstorm opened 2 years ago

tangentstorm commented 2 years ago

Have a primitive that scans an explicit definition, looking for parenthesized sequences containing only primitives or pre-looked-up names. Such sequences are executed immediately and the result replaces the sequence in the explicit definition. There would need to be a user-specified limit on how big the result can be to be saved.

-- @HenryHRich 19:47, 13 September 2017 (UTC)

tangentstorm commented 2 years ago

This seems to be implemented, but how does it preserve late binding for the pre-looked-up names?

HenryHRich commented 2 years ago

The only names that can be pre-looked-up are ones that use namerefs and do not have late binding.

HenryHRich commented 2 years ago

Whst is left to do is to accept namerefs as well as primitive names