adesutherland / CREXX

REXX Language implementation
Other
13 stars 3 forks source link

Symbol() BIF is missing #333

Closed rvjansen closed 1 year ago

rvjansen commented 1 year ago

We are missing the symbol() bif.

Peter-Jacob commented 1 year ago

There are indeed commands I've never used, nor heard: SYMBOL. I think I must re-activate/re-sync my CREXX environment.

rvjansen commented 1 year ago

"returns the state of the symbol named by name. Returns BAD if name is not a valid REXX symbol. Returns VAR if it is the name of a variable (that is, a symbol that has been assigned a value). Otherwise returns LIT, indicating that it is either a constant symbol or a symbol that has not yet been assigned a value (that is, a literal)." I sometimes use it in combination with DROP.

Peter-Jacob commented 1 year ago

@adesutherland can you please guide me to a procedure/array/stack/etc. where I can check current defined variables?

Peter-Jacob commented 1 year ago

I found the value BIF. I can work from there.

Peter-Jacob commented 1 year ago

SYMBOL BIF added to f046, please verify it!

rvjansen commented 1 year ago

SYMBOL passed the test cases!