Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@sunilnandihalli
Created September 13, 2010 10:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sunilnandihalli/577118 to your computer and use it in GitHub Desktop.
Save sunilnandihalli/577118 to your computer and use it in GitHub Desktop.
(ns giws-clj.core
(:require [clojure.contrib.lazy-xml :as xml])
(:use [clojure.contrib.trace :as trace]))
(defn emit-giws-xml [c]
(let [package (.getPackage c)
methods (map #(hash-map :name (.getName %)
:returnType (str (.getName (.getReturnType %)))
:params (map (fn [p] {:name (.getName %)})
(.getParameterTypes %)))
(.getMethods c))]
methods))
(definterface giws-clj.core.Ihello
[(^String tailoff [])
(tail1 [^String a ^Integer b])])
(gen-class giws-clj.core.Myhello)
(def s 10)
(defn prefix->postfix [expr]
(if (coll? expr)
(let [[op & rest] expr]
(conj (vec (map prefix->postfix rest)) op))
expr))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment