mikaelpatel / Arduino-Shell

RPN Postscript/Forth Command Shell for Arduino

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Info: Case statement

dpharris opened this issue · comments

I found a nice case statement form:

c {+-*+*+}\1- {uX u'+={(add )}i u'-={(minus )}i '*={(times )}i 1+}l

This outputs: "add minus times add times add"

I added a X trap that pops a char onto the stack from the {} list.