mikaelpatel / Arduino-Shell

RPN Postscript/Forth Command Shell for Arduino
19 stars 5 forks source link

Info: General comments #14

Closed dpharris closed 8 years ago

dpharris commented 8 years ago

Great work. I have often played with doing something like this. Can you add a comment on how to use variables?
Do you have a compiler / decompiler to go between the expanded forms to compressed forms?

mikaelpatel commented 8 years ago

Can you add a comment on how to use variables?

Quick comment here. I will add to the README later. The variables are a vector of int's (0..VEC_MAX-1). The address to fetch and store are the index in that vector.

Do you have a compiler / decompiler to go between the expanded forms to compressed forms?

No. Nothing I would like to publish yet. This should actually be on the "issue" list.

dpharris commented 8 years ago

Why is there two 'no ops' chars: ',' and 'N'?

mikaelpatel commented 8 years ago

',' is for compacting number sequences and N is to hide handling of carriage-return :). There are actually more such as white-space.