← 都来码 / Dolaima← 例程索引forth/test/parserexp_demo.fs原文

forth/test/parserexp_demo.fs · 258 字节 · 下载原文

\ parserexp_demo.fs — 调用共享库 parserexp 解析表达式
\ parserexp_demo.fs — call the shared library parserexp to parse expressions
: DEMO
    S" 2+3*4" parserexp . CR
    S" (10-3)*2" parserexp . CR
    S" 100/4+5" parserexp . CR ;
DEMO