Mirror of CollapseOS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
607B

  1. ( Now we have "as late as possible" stuff )
  2. : _bchk DUP 0x7f + 0xff > IF LIT< br-ovfl (print) ABORT THEN ;
  3. : DO COMPILE 2>R H@ ; IMMEDIATE
  4. : LOOP COMPILE (loop) H@ - _bchk , ; IMMEDIATE
  5. ( LEAVE is implemented in low xcomp )
  6. : LITN 32 , , ( 32 == NUMBER ) ;
  7. ( gets its name at the very end. can't comment afterwards )
  8. : _ BEGIN LIT< ) WORD S= UNTIL ; IMMEDIATE
  9. : _ ( : will get its name almost at the very end )
  10. (entry)
  11. [ 14 ( == compiledWord ) LITN ] C,
  12. BEGIN
  13. WORD FIND
  14. IF ( is word ) DUP IMMED? IF EXECUTE ELSE , THEN
  15. ELSE ( maybe number ) (parse) LITN THEN
  16. AGAIN ;