https://github.com/kosh04/emacs-wandbox.git
git clone 'git://github.com/kosh04/emacs-wandbox.git'
wandbox.el is Wandbox API Library for Emacs.
README : Japanese / English
Wandbox is online compiler/interpreter. Developed by @melponn and @kikairoya.
You can try various programming language sush as C, C++, D, Haskell, Perl, Python, Ruby, PHP, Erlang, Java, JavaScript, CoffeeScript Rust, Common Lisp, and more.
load-path
directory.
or M-x package-install wandbox
if Emacs 24+.(require 'wandbox)
into your .emacs
.wandbox
- Alias of wandbox-compile-buffer
wandbox-compile-file (filename)
- Compile with file contentswandbox-compile-region (from to)
- Compile marked regionwandbox-compile-buffer ()
- Compile with current bufferwandbox
- Alias of wandbox-compile
wandbox-compile (&rest profile &key compiler options code stdin compiler-option runtime-option lang name file save)
Run wandbox compile with detailed options.
arguments compiler
, options
, code
, compiler-option
, runtime-option
,
save
is based on wandbox API.
wandbox-profiles
- List of wandbox compiler options.wandbox-precompiled-hook
- Hook run before post wandbox. Return value will be merged into the old profile.;; Compile code with compiler name and options
(wandbox :compiler "gcc-head" :options "warning" :code "main(){}")
;; Compile as C source code (use wandbox-profiles)
(wandbox :lang "C" :code "main(){}")
;; Compile local file, and generate permalink
(wandbox :lang "C" :file "/path/to/prog.c" :save t)
;; use standard-input
(wandbox :lang "Perl" :code "while (<>) { print uc($_); }" :stdin "hello")
;; Add user-profile
(add-to-list 'wandbox-profiles '(:name "ANSI C" :compiler "clang-head" :options "warning,c89"))
(wandbox :name "ANSI C" :file "/path/to/prog.c")
;; Compile gist snippet
;; sample: https://gist.github.com/219882
(wandbox :name "CLISP" :gist 219882 :stdin "Uryyb Jbeyq!")
;; Compile any url file (add :url keyword)
(defun* wandbox-option-url (&key url &allow-other-keys)
(if url (plist-put nil :code (wandbox-fetch url))))
(add-to-list 'wandbox-precompiled-hook #'wandbox-option-url)
(wandbox :lang "C" :url "http://localhost/prog.c")
This software is licensed under the MIT-License.