03 編碼狀態

: S"

 STATE @

 IF

 COMPILE (S")

 ,"

ELSE

((S"))

THEN

; IMMEDIATE

\ comp: ( -<string">- ) run: ( -- addr len )

 Compiletime:

 s" parses the input stream until it finds the next " and compiles it into the current definition.

 Runtime:

 s" leaves the address and the length of the compiled string on the stack.

\ 編譯時 s" 解析輸入流,直到找到下一個“ 並將其編譯為當前定義。

\ 執行時 s" 留下堆棧上的編譯字符串的地址和長度。