chemoelectric

Pure and Python embedded in Guile

Jan 16th, 2013
575
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. (import (sortsmillff pure)
  2. (sortsmillff python))
  3.  
  4. (pure-eval
  5. #«
  6. using system;
  7. fprintf stderr "This is a test\nof embedded Pure code.\n" ();
  8. »#)
  9.  
  10. (PyRun_SimpleString
  11. (string->pointer
  12. #«
  13. import sys
  14. print "This is a test\nof embedded Python code."
  15. print globals ()
  16. »#
  17. ))
Advertisement
Add Comment
Please, Sign In to add comment