Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (import (sortsmillff pure)
- (sortsmillff python))
- (define pure-result
- (pure-eval
- #«
- using system;
- fprintf stderr "This is a test\nof embedded Pure code.\n" ();
- reverse [1, 2, 3, 4, 5];
- »#))
- (format (current-error-port) "pure-result = ~a\n" pure-result)
- (format (current-error-port) "1 + 2/3 = ~a\n"
- (pure-expr->number
- (pure-eval #« using math; 1 + 2%3 »#)))
- (PyRun_SimpleString
- (string->pointer
- #«
- import sys
- print "This is a test\nof embedded Python code."
- print globals ()
- »#
- ))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement