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.

16 lines
576B

  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 COMPILE (n) , ;
  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) 1 ( compiled ) C,
  11. BEGIN
  12. WORD FIND
  13. IF ( is word ) DUP IMMED? IF EXECUTE ELSE , THEN
  14. ELSE ( maybe number ) (parse) LITN THEN
  15. AGAIN ;