Advertisement
Guest User

Untitled

a guest
Nov 19th, 2019
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. > (ql:quickload :com.informatimago.languages.linc)
  2. To load "com.informatimago.languages.linc":
  3. Load 1 ASDF system:
  4. com.informatimago.languages.linc
  5. ; Loading "com.informatimago.languages.linc"
  6.  
  7. > (with-open-file (src "/tmp/t.sexpc" :direction :output :if-does-not-exist :create :if-exists :supersede)
  8. (let ((*print-case* :downcase))
  9. (pprint '(define-function example ((x int)) int (return (* 3 x x))) src)))
  10. (define-function example ((x int)) int (return (* 3 x x)))
  11.  
  12. > (com.informatimago.languages.linc:translate-linc-file "/tmp/t.sexpc" :print t :verbose t)
  13.  
  14. ;; int example(int x)
  15. ;; {
  16. ;; return 3 * x * x;
  17. ;; }
  18. ;;
  19. ;;
  20. #P"/private/tmp/t.c"
  21. nil
  22. nil
  23. > (cd "/tmp/")
  24. #P"/private/tmp/"
  25. > (cc "t.c" :options '("-c"))
  26. nil
  27. nil
  28. 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement